Documentation
¶
Index ¶
- type Client
- func (c Client) BindRunningSecGroupToSpace(secGroupGUID, spaceGUID string, endpoint string) error
- func (c Client) BindSecurityGroup(secGroupGUID, spaceGUID string, endpoint string) error
- func (c Client) BindStagingSecGroupToSpace(secGroupGUID, spaceGUID string, endpoint string) error
- func (c Client) CurrentUserIsAdmin() (bool, error)
- func (c Client) EntitleSecurityGroup(secGroupGUID, orgGUID string) error
- func (c *Client) GetAccessToken() *string
- func (c Client) GetApiUrl() string
- func (c Client) GetEndpoint() string
- func (c Client) GetInfo() (model.Info, error)
- func (c Client) GetOrgByGuid(guid string) (Organization, error)
- func (c Client) GetSecGroupByGuid(guid string) (SecurityGroup, error)
- func (c Client) GetSecGroupByName(name string) (SecurityGroup, error)
- func (c Client) GetSecGroupSpaces(guid string) (Spaces, error)
- func (c Client) GetSpaceByGuid(guid string) (Space, error)
- func (c Client) GetTransport() http.Transport
- func (c Client) ListOrgManagers(orgGuid string) (User, error)
- func (c Client) ListSecGroupEntitlements() ([]model.EntitlementSecGroup, error)
- func (c Client) ListSecGroups(query ...ccv3.Query) (SecurityGroups, error)
- func (c Client) ListSpaceResources(secGroup SecurityGroup) (SecurityGroup, error)
- func (c Client) ListUserManagedOrgs(userGuid string) (UserRoles, error)
- func (c Client) OrgGUIDFromSpaceGUID(spaceGuid string) (string, error)
- func (c Client) RevokeSecurityGroup(secGroupGUID, orgGUID string) error
- func (c *Client) SetAccessToken(accessToken string)
- func (c Client) UnBindRunningSecGroupToSpace(secGroupGUID, spaceGUID string, endpoint string) error
- func (c Client) UnBindSecurityGroup(secGroupGUID, spaceGUID string, endpoint string) error
- func (c Client) UnBindStagingSecGroupToSpace(secGroupGUID, spaceGUID string, endpoint string) error
- type CloudFoundryError
- type CloudFoundryErrorV3
- type CloudFoundryErrorsV3
- type CloudFoundryHTTPError
- type Data
- type Organization
- type Rule
- type SecurityGroup
- type SecurityGroups
- type Space
- type Spaces
- type User
- type UserRoles
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (Client) BindRunningSecGroupToSpace ¶
func (Client) BindSecurityGroup ¶
func (Client) BindStagingSecGroupToSpace ¶
func (Client) CurrentUserIsAdmin ¶
func (Client) EntitleSecurityGroup ¶
func (*Client) GetAccessToken ¶
func (Client) GetEndpoint ¶
func (Client) GetOrgByGuid ¶
func (c Client) GetOrgByGuid(guid string) (Organization, error)
func (Client) GetSecGroupByGuid ¶
func (c Client) GetSecGroupByGuid(guid string) (SecurityGroup, error)
func (Client) GetSecGroupByName ¶
func (c Client) GetSecGroupByName(name string) (SecurityGroup, error)
func (Client) GetSecGroupSpaces ¶ added in v0.29.0
func (Client) GetTransport ¶
func (Client) ListSecGroupEntitlements ¶
func (c Client) ListSecGroupEntitlements() ([]model.EntitlementSecGroup, error)
func (Client) ListSecGroups ¶
func (c Client) ListSecGroups(query ...ccv3.Query) (SecurityGroups, error)
func (Client) ListSpaceResources ¶
func (c Client) ListSpaceResources(secGroup SecurityGroup) (SecurityGroup, error)
func (Client) ListUserManagedOrgs ¶
func (Client) OrgGUIDFromSpaceGUID ¶
func (Client) RevokeSecurityGroup ¶
func (*Client) SetAccessToken ¶
func (Client) UnBindRunningSecGroupToSpace ¶
func (Client) UnBindSecurityGroup ¶
type CloudFoundryError ¶
type CloudFoundryError struct {
Code int `json:"code"`
ErrorCode string `json:"error_code"`
Description string `json:"description"`
}
func (CloudFoundryError) Error ¶
func (cfErr CloudFoundryError) Error() string
type CloudFoundryErrorV3 ¶
type CloudFoundryErrorV3 struct {
Code int `json:"code"`
Title string `json:"title"`
Detail string `json:"detail"`
}
func NewCloudFoundryErrorFromV3Errors ¶
func NewCloudFoundryErrorFromV3Errors(cfErrorsV3 CloudFoundryErrorsV3) CloudFoundryErrorV3
CF APIs v3 can return multiple errors, we take the first one and convert it into a V2 model
func (CloudFoundryErrorV3) Error ¶
func (cfErrV3 CloudFoundryErrorV3) Error() string
type CloudFoundryErrorsV3 ¶
type CloudFoundryErrorsV3 struct {
Errors []CloudFoundryErrorV3 `json:"errors"`
}
type CloudFoundryHTTPError ¶
func (CloudFoundryHTTPError) Error ¶
func (e CloudFoundryHTTPError) Error() string
type Organization ¶
type SecurityGroup ¶
type SecurityGroup struct {
Name string `jsonry:"name,omitempty"`
GUID string `jsonry:"guid,omitempty"`
CreatedAt string `json:"created_at"`
UpdatedAt string `json:"updated_at"`
Rules []Rule `jsonry:"rules,omitempty"`
Globally_Enabled struct {
Running bool `json:"running"`
Staging bool `json:"staging"`
}
Relationships struct {
Running_spaces struct {
Data []Data
}
Staging_spaces struct {
Data []Data
}
}
}
type SecurityGroups ¶
type SecurityGroups struct {
Resources []SecurityGroup `jsonry:"resources,omitempty"`
}
type UserRoles ¶
type UserRoles struct {
Resources []struct {
GUID string `jsonry:"guid,omitempty"`
CreatedAt string `json:"created_at"`
UpdatedAt string `json:"updated_at"`
Type string `jsonry:"type,omitempty"`
Relationships struct {
User struct {
Data struct {
GUID string `json:"guid"`
}
}
Space struct {
Data struct {
GUID string `json:"guid"`
}
}
Organization struct {
Data struct {
GUID string `json:"guid"`
}
}
}
}
}
Click to show internal directories.
Click to hide internal directories.