Documentation
¶
Index ¶
- func BoolPtr(boolean bool) *bool
- func IntPtr(integer int) *int
- func StringPtr(str string) *string
- type Application
- type ApplicationsList
- type ApplicationsService
- func (service ApplicationsService) Create(application Application, token string) (Application, error)
- func (service ApplicationsService) Delete(guid, token string) error
- func (service ApplicationsService) Get(guid, token string) (Application, error)
- func (service ApplicationsService) List(token string) (ApplicationsList, error)
- type Buildpack
- type BuildpacksService
- func (b BuildpacksService) Create(name string, token string, options *CreateBuildpackOptions) (Buildpack, error)
- func (b BuildpacksService) Delete(guid, token string) error
- func (b BuildpacksService) Get(guid string, token string) (Buildpack, error)
- func (b BuildpacksService) Update(buildpack Buildpack, token string) (Buildpack, error)
- type Client
- type Config
- type CreateBuildpackOptions
- type Error
- type NotFoundError
- type Organization
- type OrganizationsList
- type OrganizationsService
- func (service OrganizationsService) Create(name string, token string) (Organization, error)
- func (service OrganizationsService) Delete(guid, token string) error
- func (service OrganizationsService) Get(guid, token string) (Organization, error)
- func (service OrganizationsService) List(token string) (OrganizationsList, error)
- func (service OrganizationsService) ListAuditors(guid, token string) (UsersList, error)
- func (service OrganizationsService) ListBillingManagers(guid, token string) (UsersList, error)
- func (service OrganizationsService) ListManagers(guid, token string) (UsersList, error)
- func (service OrganizationsService) ListSpaces(guid, token string) (SpacesList, error)
- func (service OrganizationsService) ListUsers(guid, token string) (UsersList, error)
- func (service OrganizationsService) Update(org Organization, token string) (Organization, error)
- type Page
- type ServiceInstance
- type ServiceInstancesService
- type Space
- type SpacesList
- func (list SpacesList) Create(space Space, token string) (Space, error)
- func (list *SpacesList) Fetch(token string) error
- func (list SpacesList) HasNextPage() bool
- func (list SpacesList) HasPrevPage() bool
- func (list SpacesList) Next(token string) (SpacesList, error)
- func (list SpacesList) Prev(token string) (SpacesList, error)
- type SpacesService
- func (service SpacesService) Create(name, orgGUID, token string) (Space, error)
- func (service SpacesService) Delete(guid, token string) error
- func (service SpacesService) Get(guid, token string) (Space, error)
- func (service SpacesService) List(token string) (SpacesList, error)
- func (service SpacesService) ListUsers(guid, token string) (UsersList, error)
- type User
- type UsersList
- func (list UsersList) Associate(userGUID, token string) error
- func (list UsersList) Create(user User, token string) (User, error)
- func (list *UsersList) Fetch(token string) error
- func (list UsersList) HasNextPage() bool
- func (list UsersList) HasPrevPage() bool
- func (list UsersList) Next(token string) (UsersList, error)
- func (list UsersList) Prev(token string) (UsersList, error)
- type UsersService
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Application ¶
type Application struct {
GUID string
Name string
SpaceGUID string
Diego bool
// contains filtered or unexported fields
}
func NewApplication ¶
func NewApplication(config Config, guid string) Application
type ApplicationsList ¶
type ApplicationsList struct {
TotalResults int
TotalPages int
NextURL string
PrevURL string
Applications []Application
// contains filtered or unexported fields
}
func NewApplicationsList ¶
func NewApplicationsList(config Config, plan requestPlan) ApplicationsList
func (*ApplicationsList) Fetch ¶
func (list *ApplicationsList) Fetch(token string) error
func (ApplicationsList) HasNextPage ¶
func (list ApplicationsList) HasNextPage() bool
func (ApplicationsList) HasPrevPage ¶
func (list ApplicationsList) HasPrevPage() bool
func (ApplicationsList) Next ¶
func (list ApplicationsList) Next(token string) (ApplicationsList, error)
func (ApplicationsList) Prev ¶
func (list ApplicationsList) Prev(token string) (ApplicationsList, error)
type ApplicationsService ¶
type ApplicationsService struct {
// contains filtered or unexported fields
}
func NewApplicationsService ¶
func NewApplicationsService(config Config) ApplicationsService
func (ApplicationsService) Create ¶
func (service ApplicationsService) Create(application Application, token string) (Application, error)
func (ApplicationsService) Delete ¶
func (service ApplicationsService) Delete(guid, token string) error
func (ApplicationsService) Get ¶
func (service ApplicationsService) Get(guid, token string) (Application, error)
func (ApplicationsService) List ¶
func (service ApplicationsService) List(token string) (ApplicationsList, error)
type BuildpacksService ¶
type BuildpacksService struct {
// contains filtered or unexported fields
}
func NewBuildpacksService ¶
func NewBuildpacksService(config Config) BuildpacksService
func (BuildpacksService) Create ¶
func (b BuildpacksService) Create(name string, token string, options *CreateBuildpackOptions) (Buildpack, error)
func (BuildpacksService) Delete ¶
func (b BuildpacksService) Delete(guid, token string) error
type Client ¶
type Client struct {
Organizations OrganizationsService
Spaces SpacesService
Applications ApplicationsService
Users UsersService
ServiceInstances ServiceInstancesService
Buildpacks BuildpacksService
// contains filtered or unexported fields
}
type CreateBuildpackOptions ¶
type NotFoundError ¶
type NotFoundError struct {
Err error
}
func (NotFoundError) Error ¶
func (e NotFoundError) Error() string
type Organization ¶
type Organization struct {
GUID string
Name string
URL string
BillingEnabled bool
Status string
QuotaDefinitionGUID string
QuotaDefinitionURL string
SpacesURL string
DomainsURL string
PrivateDomainsURL string
UsersURL string
ManagersURL string
BillingManagersURL string
AuditorsURL string
AppEventsURL string
SpaceQuotaDefinitionsURL string
CreatedAt time.Time
UpdatedAt time.Time
Users UsersList
BillingManagers UsersList
Auditors UsersList
Managers UsersList
// contains filtered or unexported fields
}
func NewOrganization ¶
func NewOrganization(config Config, guid string) Organization
type OrganizationsList ¶
type OrganizationsList struct {
Page
Organizations []Organization
// contains filtered or unexported fields
}
func NewOrganizationsList ¶
func NewOrganizationsList(config Config, plan requestPlan) OrganizationsList
func (OrganizationsList) Create ¶
func (list OrganizationsList) Create(org Organization, token string) (Organization, error)
func (*OrganizationsList) Fetch ¶
func (list *OrganizationsList) Fetch(token string) error
func (OrganizationsList) Next ¶
func (list OrganizationsList) Next(token string) (OrganizationsList, error)
func (OrganizationsList) Prev ¶
func (list OrganizationsList) Prev(token string) (OrganizationsList, error)
type OrganizationsService ¶
type OrganizationsService struct {
// contains filtered or unexported fields
}
func NewOrganizationsService ¶
func NewOrganizationsService(config Config) OrganizationsService
func (OrganizationsService) Create ¶
func (service OrganizationsService) Create(name string, token string) (Organization, error)
func (OrganizationsService) Delete ¶
func (service OrganizationsService) Delete(guid, token string) error
func (OrganizationsService) Get ¶
func (service OrganizationsService) Get(guid, token string) (Organization, error)
func (OrganizationsService) List ¶
func (service OrganizationsService) List(token string) (OrganizationsList, error)
func (OrganizationsService) ListAuditors ¶
func (service OrganizationsService) ListAuditors(guid, token string) (UsersList, error)
func (OrganizationsService) ListBillingManagers ¶
func (service OrganizationsService) ListBillingManagers(guid, token string) (UsersList, error)
func (OrganizationsService) ListManagers ¶
func (service OrganizationsService) ListManagers(guid, token string) (UsersList, error)
func (OrganizationsService) ListSpaces ¶
func (service OrganizationsService) ListSpaces(guid, token string) (SpacesList, error)
func (OrganizationsService) ListUsers ¶
func (service OrganizationsService) ListUsers(guid, token string) (UsersList, error)
func (OrganizationsService) Update ¶
func (service OrganizationsService) Update(org Organization, token string) (Organization, error)
type Page ¶
type Page struct {
TotalResults int
TotalPages int
NextURL string
PrevURL string
Resources []json.RawMessage
// contains filtered or unexported fields
}
func (Page) HasNextPage ¶
func (Page) HasPrevPage ¶
type ServiceInstance ¶
type ServiceInstancesService ¶
type ServiceInstancesService struct {
// contains filtered or unexported fields
}
func NewServiceInstancesService ¶
func NewServiceInstancesService(config Config) ServiceInstancesService
func (*ServiceInstancesService) Create ¶
func (service *ServiceInstancesService) Create(name, planGUID, spaceGUID, token string) (ServiceInstance, error)
func (*ServiceInstancesService) Get ¶
func (service *ServiceInstancesService) Get(guid, token string) (ServiceInstance, error)
type Space ¶
type Space struct {
GUID string
URL string
CreatedAt time.Time
UpdatedAt time.Time
Name string
OrganizationGUID string `json:"organization_guid"` // TODO: why is this here?
SpaceQuotaDefinitionGUID string
OrganizationURL string
DevelopersURL string
ManagersURL string
AuditorsURL string
AppsURL string
RoutesURL string
DomainsURL string
ServiceInstancesURL string
AppEventsURL string
EventsURL string
SecurityGroupsURL string
Developers UsersList
// contains filtered or unexported fields
}
type SpacesList ¶
type SpacesList struct {
TotalResults int
TotalPages int
NextURL string
PrevURL string
Spaces []Space
// contains filtered or unexported fields
}
func NewSpacesList ¶
func NewSpacesList(config Config, plan requestPlan) SpacesList
func (*SpacesList) Fetch ¶
func (list *SpacesList) Fetch(token string) error
func (SpacesList) HasNextPage ¶
func (list SpacesList) HasNextPage() bool
func (SpacesList) HasPrevPage ¶
func (list SpacesList) HasPrevPage() bool
func (SpacesList) Next ¶
func (list SpacesList) Next(token string) (SpacesList, error)
func (SpacesList) Prev ¶
func (list SpacesList) Prev(token string) (SpacesList, error)
type SpacesService ¶
type SpacesService struct {
// contains filtered or unexported fields
}
func NewSpacesService ¶
func NewSpacesService(config Config) SpacesService
func (SpacesService) Create ¶
func (service SpacesService) Create(name, orgGUID, token string) (Space, error)
func (SpacesService) Delete ¶
func (service SpacesService) Delete(guid, token string) error
func (SpacesService) List ¶
func (service SpacesService) List(token string) (SpacesList, error)
type User ¶
type User struct {
GUID string
URL string
CreatedAt time.Time
UpdatedAt time.Time
Admin bool
Active bool
DefaultSpaceGUID string
SpacesURL string
OrganizationsURL string
ManagedOrganizationsURL string
BillingManagedOrganizationsURL string
AuditedOrganizationsURL string
ManagedSpacesURL string
AuditedSpacesURL string
// contains filtered or unexported fields
}
type UsersList ¶
type UsersList struct {
TotalResults int
TotalPages int
NextURL string
PrevURL string
Users []User
// contains filtered or unexported fields
}
func NewUsersList ¶
func (UsersList) HasNextPage ¶
func (UsersList) HasPrevPage ¶
type UsersService ¶
type UsersService struct {
// contains filtered or unexported fields
}
func NewUsersService ¶
func NewUsersService(config Config) UsersService
Source Files
¶
- application.go
- application_service.go
- applications_list.go
- buildpack.go
- buildpacks_service.go
- client.go
- errors.go
- organization.go
- organizations_list.go
- organizations_service.go
- page.go
- pointers.go
- request_plan.go
- service_instance.go
- service_instances_service.go
- space.go
- spaces_list.go
- spaces_service.go
- user.go
- users_list.go
- users_service.go
Directories
¶
| Path | Synopsis |
|---|---|
|
internal
|
|
|
network
Package network provides an HTTP network abstraction that is bound to the request/response cycle of commands to the UAA service.
|
Package network provides an HTTP network abstraction that is bound to the request/response cycle of commands to the UAA service. |
Click to show internal directories.
Click to hide internal directories.