Skip to content

Commit

Permalink
Rename cloudfoundry-community to cloudfoundry
Browse files Browse the repository at this point in the history
  • Loading branch information
sneal committed Apr 30, 2024
1 parent 556aa43 commit 0598422
Show file tree
Hide file tree
Showing 107 changed files with 286 additions and 242 deletions.
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# go-cfclient

[![build workflow](https://github.com/cloudfoundry-community/go-cfclient/actions/workflows/build.yml/badge.svg?branch=main)](https://github.com/cloudfoundry-community/go-cfclient/actions/workflows/build.yml)
[![GoDoc](https://godoc.org/github.com/cloudfoundry-community/go-cfclient/v3?status.svg)](http://godoc.org/github.com/cloudfoundry-community/go-cfclient/v3)
[![Report card](https://goreportcard.com/badge/github.com/cloudfoundry-community/go-cfclient/v3)](https://goreportcard.com/report/github.com/cloudfoundry-community/go-cfclient/v3)
[![build workflow](https://github.com/cloudfoundry/go-cfclient/actions/workflows/build.yml/badge.svg?branch=main)](https://github.com/cloudfoundry/go-cfclient/actions/workflows/build.yml)
[![GoDoc](https://godoc.org/github.com/cloudfoundry/go-cfclient/v3?status.svg)](http://godoc.org/github.com/cloudfoundry/go-cfclient/v3)
[![Report card](https://goreportcard.com/badge/github.com/cloudfoundry/go-cfclient/v3)](https://goreportcard.com/report/github.com/cloudfoundry/go-cfclient/v3)

## Overview
`go-cfclient` is a go module library to assist you in writing apps that need to interact the [Cloud Foundry](http://cloudfoundry.org)
Expand All @@ -15,7 +15,7 @@ __NOTE__ - The v3 version in the main branch is currently under development and
## Installation
go-cfclient is compatible with modern Go releases in module mode, with Go installed:
```
go get github.com/cloudfoundry-community/go-cfclient/v3
go get github.com/cloudfoundry/go-cfclient/v3
```
Will resolve and add the package to the current development module, along with its dependencies. Eventually this
library will cut releases that will be tagged with v3.0.0, v3.0.1 etc, see the Versioning section below.
Expand All @@ -31,9 +31,9 @@ library will cut releases that will be tagged with v3.0.0, v3.0.1 etc, see the V
Using go modules import the client, config and resource packages:
```go
import (
"github.com/cloudfoundry-community/go-cfclient/v3/client"
"github.com/cloudfoundry-community/go-cfclient/v3/config"
"github.com/cloudfoundry-community/go-cfclient/v3/resource"
"github.com/cloudfoundry/go-cfclient/v3/client"
"github.com/cloudfoundry/go-cfclient/v3/config"
"github.com/cloudfoundry/go-cfclient/v3/resource"
)
```

Expand Down
3 changes: 2 additions & 1 deletion client/admin_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@ package client

import (
"context"
"github.com/cloudfoundry-community/go-cfclient/v3/testutil"
"net/http"
"testing"

"github.com/cloudfoundry/go-cfclient/v3/testutil"
)

func TestAdmin(t *testing.T) {
Expand Down
5 changes: 2 additions & 3 deletions client/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,8 @@ import (
"context"
"net/url"

"github.com/cloudfoundry-community/go-cfclient/v3/internal/path"

"github.com/cloudfoundry-community/go-cfclient/v3/resource"
"github.com/cloudfoundry/go-cfclient/v3/internal/path"
"github.com/cloudfoundry/go-cfclient/v3/resource"
)

type AppClient commonClient
Expand Down
5 changes: 3 additions & 2 deletions client/app_features.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@ package client

import (
"context"
"github.com/cloudfoundry-community/go-cfclient/v3/internal/path"
"github.com/cloudfoundry-community/go-cfclient/v3/resource"

"github.com/cloudfoundry/go-cfclient/v3/internal/path"
"github.com/cloudfoundry/go-cfclient/v3/resource"
)

type AppFeatureClient commonClient
Expand Down
3 changes: 2 additions & 1 deletion client/app_features_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@ package client

import (
"context"
"github.com/cloudfoundry-community/go-cfclient/v3/testutil"
"net/http"
"testing"

"github.com/cloudfoundry/go-cfclient/v3/testutil"
)

func TestAppFeatures(t *testing.T) {
Expand Down
8 changes: 5 additions & 3 deletions client/app_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,13 @@ package client

import (
"context"
"github.com/cloudfoundry-community/go-cfclient/v3/resource"
"github.com/cloudfoundry-community/go-cfclient/v3/testutil"
"github.com/stretchr/testify/require"
"net/http"
"testing"

"github.com/cloudfoundry/go-cfclient/v3/resource"
"github.com/cloudfoundry/go-cfclient/v3/testutil"

"github.com/stretchr/testify/require"
)

func TestApps(t *testing.T) {
Expand Down
4 changes: 2 additions & 2 deletions client/app_usage.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
"context"
"net/url"

"github.com/cloudfoundry-community/go-cfclient/v3/internal/path"
"github.com/cloudfoundry-community/go-cfclient/v3/resource"
"github.com/cloudfoundry/go-cfclient/v3/internal/path"
"github.com/cloudfoundry/go-cfclient/v3/resource"
)

type AppUsageClient commonClient
Expand Down
3 changes: 2 additions & 1 deletion client/app_usage_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@ package client

import (
"context"
"github.com/cloudfoundry-community/go-cfclient/v3/testutil"
"net/http"
"testing"

"github.com/cloudfoundry/go-cfclient/v3/testutil"
)

func TestAppUsages(t *testing.T) {
Expand Down
4 changes: 2 additions & 2 deletions client/audit_event.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
"context"
"net/url"

"github.com/cloudfoundry-community/go-cfclient/v3/internal/path"
"github.com/cloudfoundry-community/go-cfclient/v3/resource"
"github.com/cloudfoundry/go-cfclient/v3/internal/path"
"github.com/cloudfoundry/go-cfclient/v3/resource"
)

type AuditEventClient commonClient
Expand Down
3 changes: 2 additions & 1 deletion client/audit_event_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@ package client

import (
"context"
"github.com/cloudfoundry-community/go-cfclient/v3/testutil"
"net/http"
"testing"

"github.com/cloudfoundry/go-cfclient/v3/testutil"
)

func TestAuditEvents(t *testing.T) {
Expand Down
4 changes: 2 additions & 2 deletions client/build.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
"context"
"net/url"

"github.com/cloudfoundry-community/go-cfclient/v3/internal/path"
"github.com/cloudfoundry-community/go-cfclient/v3/resource"
"github.com/cloudfoundry/go-cfclient/v3/internal/path"
"github.com/cloudfoundry/go-cfclient/v3/resource"
)

type BuildClient commonClient
Expand Down
5 changes: 3 additions & 2 deletions client/build_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,11 @@ package client

import (
"context"
"github.com/cloudfoundry-community/go-cfclient/v3/resource"
"github.com/cloudfoundry-community/go-cfclient/v3/testutil"
"net/http"
"testing"

"github.com/cloudfoundry/go-cfclient/v3/resource"
"github.com/cloudfoundry/go-cfclient/v3/testutil"
)

func TestBuilds(t *testing.T) {
Expand Down
4 changes: 2 additions & 2 deletions client/buildpack.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import (
"io"
"net/url"

"github.com/cloudfoundry-community/go-cfclient/v3/internal/path"
"github.com/cloudfoundry-community/go-cfclient/v3/resource"
"github.com/cloudfoundry/go-cfclient/v3/internal/path"
"github.com/cloudfoundry/go-cfclient/v3/resource"
)

type BuildpackClient commonClient
Expand Down
5 changes: 3 additions & 2 deletions client/buildpack_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,12 @@ package client

import (
"context"
"github.com/cloudfoundry-community/go-cfclient/v3/resource"
"github.com/cloudfoundry-community/go-cfclient/v3/testutil"
"net/http"
"strings"
"testing"

"github.com/cloudfoundry/go-cfclient/v3/resource"
"github.com/cloudfoundry/go-cfclient/v3/testutil"
)

func TestBuildpacks(t *testing.T) {
Expand Down
10 changes: 5 additions & 5 deletions client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@ import (
"path/filepath"
"strings"

"github.com/cloudfoundry-community/go-cfclient/v3/config"
"github.com/cloudfoundry-community/go-cfclient/v3/internal/check"
internal "github.com/cloudfoundry-community/go-cfclient/v3/internal/http"
"github.com/cloudfoundry-community/go-cfclient/v3/internal/ios"
"github.com/cloudfoundry-community/go-cfclient/v3/internal/path"
"github.com/cloudfoundry/go-cfclient/v3/config"
"github.com/cloudfoundry/go-cfclient/v3/internal/check"
internal "github.com/cloudfoundry/go-cfclient/v3/internal/http"
"github.com/cloudfoundry/go-cfclient/v3/internal/ios"
"github.com/cloudfoundry/go-cfclient/v3/internal/path"
)

// Client used to communicate with Cloud Foundry
Expand Down
8 changes: 5 additions & 3 deletions client/client_test.go
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
package client_test

import (
"github.com/cloudfoundry-community/go-cfclient/v3/client"
"github.com/cloudfoundry-community/go-cfclient/v3/config"
"github.com/stretchr/testify/require"
"testing"

"github.com/cloudfoundry/go-cfclient/v3/client"
"github.com/cloudfoundry/go-cfclient/v3/config"

"github.com/stretchr/testify/require"
)

func TestClientWithInvalidConfig(t *testing.T) {
Expand Down
4 changes: 2 additions & 2 deletions client/deployment.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import (
"errors"
"net/url"

"github.com/cloudfoundry-community/go-cfclient/v3/internal/path"
"github.com/cloudfoundry-community/go-cfclient/v3/resource"
"github.com/cloudfoundry/go-cfclient/v3/internal/path"
"github.com/cloudfoundry/go-cfclient/v3/resource"
)

type DeploymentClient commonClient
Expand Down
8 changes: 5 additions & 3 deletions client/deployment_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,13 @@ package client

import (
"context"
"github.com/cloudfoundry-community/go-cfclient/v3/resource"
"github.com/cloudfoundry-community/go-cfclient/v3/testutil"
"github.com/stretchr/testify/require"
"net/http"
"testing"

"github.com/cloudfoundry/go-cfclient/v3/resource"
"github.com/cloudfoundry/go-cfclient/v3/testutil"

"github.com/stretchr/testify/require"
)

func TestDeployments(t *testing.T) {
Expand Down
4 changes: 2 additions & 2 deletions client/domain.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
"context"
"net/url"

"github.com/cloudfoundry-community/go-cfclient/v3/internal/path"
"github.com/cloudfoundry-community/go-cfclient/v3/resource"
"github.com/cloudfoundry/go-cfclient/v3/internal/path"
"github.com/cloudfoundry/go-cfclient/v3/resource"
)

type DomainClient commonClient
Expand Down
5 changes: 3 additions & 2 deletions client/domain_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,11 @@ package client

import (
"context"
"github.com/cloudfoundry-community/go-cfclient/v3/resource"
"github.com/cloudfoundry-community/go-cfclient/v3/testutil"
"net/http"
"testing"

"github.com/cloudfoundry/go-cfclient/v3/resource"
"github.com/cloudfoundry/go-cfclient/v3/testutil"
)

func TestDomains(t *testing.T) {
Expand Down
4 changes: 2 additions & 2 deletions client/droplet.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import (
"io"
"net/url"

"github.com/cloudfoundry-community/go-cfclient/v3/internal/path"
"github.com/cloudfoundry-community/go-cfclient/v3/resource"
"github.com/cloudfoundry/go-cfclient/v3/internal/path"
"github.com/cloudfoundry/go-cfclient/v3/resource"
)

type DropletClient commonClient
Expand Down
8 changes: 5 additions & 3 deletions client/droplet_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,16 @@ package client

import (
"context"
"github.com/cloudfoundry-community/go-cfclient/v3/resource"
"github.com/cloudfoundry-community/go-cfclient/v3/testutil"
"github.com/stretchr/testify/require"
"io"
"net/http"
"net/http/httptest"
"strings"
"testing"

"github.com/cloudfoundry/go-cfclient/v3/resource"
"github.com/cloudfoundry/go-cfclient/v3/testutil"

"github.com/stretchr/testify/require"
)

func TestDroplets(t *testing.T) {
Expand Down
5 changes: 3 additions & 2 deletions client/envar_group.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@ package client

import (
"context"
"github.com/cloudfoundry-community/go-cfclient/v3/internal/path"
"github.com/cloudfoundry-community/go-cfclient/v3/resource"

"github.com/cloudfoundry/go-cfclient/v3/internal/path"
"github.com/cloudfoundry/go-cfclient/v3/resource"
)

type EnvVarGroupClient commonClient
Expand Down
5 changes: 3 additions & 2 deletions client/envar_group_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,11 @@ package client

import (
"context"
"github.com/cloudfoundry-community/go-cfclient/v3/resource"
"github.com/cloudfoundry-community/go-cfclient/v3/testutil"
"net/http"
"testing"

"github.com/cloudfoundry/go-cfclient/v3/resource"
"github.com/cloudfoundry/go-cfclient/v3/testutil"
)

func TestEnvVarGroups(t *testing.T) {
Expand Down
4 changes: 2 additions & 2 deletions client/feature_flag.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
"context"
"net/url"

"github.com/cloudfoundry-community/go-cfclient/v3/internal/path"
"github.com/cloudfoundry-community/go-cfclient/v3/resource"
"github.com/cloudfoundry/go-cfclient/v3/internal/path"
"github.com/cloudfoundry/go-cfclient/v3/resource"
)

type FeatureFlagClient commonClient
Expand Down
5 changes: 3 additions & 2 deletions client/feature_flag_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,11 @@ package client

import (
"context"
"github.com/cloudfoundry-community/go-cfclient/v3/resource"
"github.com/cloudfoundry-community/go-cfclient/v3/testutil"
"net/http"
"testing"

"github.com/cloudfoundry/go-cfclient/v3/resource"
"github.com/cloudfoundry/go-cfclient/v3/testutil"
)

func TestFeatureFlags(t *testing.T) {
Expand Down
5 changes: 2 additions & 3 deletions client/isolation_segment.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,8 @@ import (
"context"
"net/url"

"github.com/cloudfoundry-community/go-cfclient/v3/internal/path"

"github.com/cloudfoundry-community/go-cfclient/v3/resource"
"github.com/cloudfoundry/go-cfclient/v3/internal/path"
"github.com/cloudfoundry/go-cfclient/v3/resource"
)

type IsolationSegmentClient commonClient
Expand Down
5 changes: 3 additions & 2 deletions client/isolation_segment_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,11 @@ package client

import (
"context"
"github.com/cloudfoundry-community/go-cfclient/v3/resource"
"github.com/cloudfoundry-community/go-cfclient/v3/testutil"
"net/http"
"testing"

"github.com/cloudfoundry/go-cfclient/v3/resource"
"github.com/cloudfoundry/go-cfclient/v3/testutil"
)

func TestIsolationSegments(t *testing.T) {
Expand Down
Loading

0 comments on commit 0598422

Please sign in to comment.