Documentation
¶
Index ¶
- type BaseCFConfigCommand
- type BaseConfigCommand
- type BaseLDAPCommand
- type BasePeekCommand
- type CFMgmt
- type CfMgmtCommand
- type CreateOrgsCommand
- type CreatePrivateDomainsCommand
- type CreateSecurityGroupsCommand
- type CreateSpaceSecurityGroupsCommand
- type CreateSpacesCommand
- type DeleteOrgsCommand
- type DeleteSpacesCommand
- type ExportConfigurationCommand
- type Initialize
- type IsolationSegmentsCommand
- type UpdateOrgQuotasCommand
- type UpdateOrgUsersCommand
- type UpdateSpaceQuotasCommand
- type UpdateSpaceUsersCommand
- type UpdateSpacesCommand
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BaseCFConfigCommand ¶
type BaseCFConfigCommand struct {
BaseConfigCommand
SystemDomain string `long:"system-domain" env:"SYSTEM_DOMAIN" description:"system domain"`
UserID string `long:"user-id" env:"USER_ID" description:"user id that has privileges to create/update/delete users, orgs and spaces"`
Password string `long:"password" env:"PASSWORD" description:"password for user account [optional if client secret is provided]"`
ClientSecret string `` /* 157-byte string literal not displayed */
}
BaseCFConfigCommand - base command that has details to connect to cloud foundry instance
type BaseConfigCommand ¶
type BaseConfigCommand struct {
ConfigDirectory string `long:"config-dir" env:"CONFIG_DIR" default:"config" description:"Name of the config directory"`
}
BaseConfigCommand - commmand that specifies config-dir
type BaseLDAPCommand ¶
type BaseLDAPCommand struct {
LdapPassword string `long:"ldap-password" env:"LDAP_PASSWORD" description:"LDAP password for binding"`
}
BaseLDAPCommand - base command that has ldap password
type BasePeekCommand ¶
type BasePeekCommand struct {
Peek bool `long:"peek" env:"PEEK" description:"Preview entities to delete without deleting them."`
}
BasePeekCommand - base command for non read-only operations
type CFMgmt ¶
type CFMgmt struct {
UAAManager uaa.Manager
OrgManager organization.Manager
SpaceManager space.Manager
ConfigManager config.Updater
ConfigDirectory string
UaacToken string
SystemDomain string
UAACManager uaac.Manager
CloudController cloudcontroller.Manager
SecurityGroupManager securitygroup.Manager
IsolationSegmentUpdater *isosegment.Updater
}
func InitializeManagers ¶
func InitializeManagers(baseCommand BaseCFConfigCommand) (*CFMgmt, error)
type CfMgmtCommand ¶
type CfMgmtCommand struct {
Version configcommands.VersionCommand `command:"version" description:"Print version information and exit"`
InitConfigurationCommand configcommands.InitConfigurationCommand `command:"init-config" description:"Initializes folder structure for configuration"`
AddOrgToConfigurationCommand configcommands.AddOrgToConfigurationCommand `command:"add-org-to-config" description:"Adds specified org to configuration"`
AddSpaceToConfigurationCommand configcommands.AddSpaceToConfigurationCommand `command:"add-space-to-config" description:"Adds specified space to configuration for org"`
GenerateConcoursePipelineCommand configcommands.GenerateConcoursePipelineCommand `command:"generate-concourse-pipeline" description:"generates a concourse pipline to be used to drive cf-mgmt"`
ExportConfigurationCommand ExportConfigurationCommand `` /* 176-byte string literal not displayed */
CreateOrgsCommand CreateOrgsCommand `command:"create-orgs" description:"creates organizations for each orgConfig.yml"`
CreateSecurityGroupsCommand CreateSecurityGroupsCommand `command:"create-security-groups" description:"creates named security groups that can be assigned to spaces"`
CreatePrivateDomainsCommand CreatePrivateDomainsCommand `command:"create-org-private-domains" description:"creates private domains for an org"`
DeleteOrgsCommand DeleteOrgsCommand `command:"delete-orgs" description:"deletes orgs not in the configuration"`
UpdateOrgQuotasCommand UpdateOrgQuotasCommand `command:"update-org-quotas" description:"updates org quotas"`
UpdateOrgUsersCommand UpdateOrgUsersCommand `command:"update-org-users" description:"update org user roles"`
CreateSpacesCommand CreateSpacesCommand `command:"create-spaces" description:"creates spaces in configuration"`
DeleteSpacesCommand DeleteSpacesCommand `command:"delete-spaces" description:"deletes spaces not in configurtion"`
UpdateSpacesCommand UpdateSpacesCommand `command:"update-spaces" description:"enables/disables ssh access at space level"`
UpdateSpaceQuotasCommand UpdateSpaceQuotasCommand `command:"update-space-quotas" description:"updates spaces quotas"`
UpdateSpaceUsersCommand UpdateSpaceUsersCommand `command:"update-space-users" description:"update space user roles"`
CreateSpaceSecurityGroupsCommand CreateSpaceSecurityGroupsCommand `command:"update-space-security-groups" description:"updates space specific security groups"`
IsolationSegmentsCommand IsolationSegmentsCommand `command:"isolation-segments" description:"assigns isolations segments to orgs and spaces"`
}
var CfMgmt CfMgmtCommand
type CreateOrgsCommand ¶
type CreateOrgsCommand struct {
BaseCFConfigCommand
}
func (*CreateOrgsCommand) Execute ¶
func (c *CreateOrgsCommand) Execute([]string) error
Execute - creates organizations
type CreatePrivateDomainsCommand ¶
type CreatePrivateDomainsCommand struct {
BaseCFConfigCommand
}
func (*CreatePrivateDomainsCommand) Execute ¶
func (c *CreatePrivateDomainsCommand) Execute([]string) error
Execute - creates private domains
type CreateSecurityGroupsCommand ¶
type CreateSecurityGroupsCommand struct {
BaseCFConfigCommand
}
func (*CreateSecurityGroupsCommand) Execute ¶
func (c *CreateSecurityGroupsCommand) Execute([]string) error
Execute - creates security groups
type CreateSpaceSecurityGroupsCommand ¶
type CreateSpaceSecurityGroupsCommand struct {
BaseCFConfigCommand
}
func (*CreateSpaceSecurityGroupsCommand) Execute ¶
func (c *CreateSpaceSecurityGroupsCommand) Execute([]string) error
Execute - creates space specific security groups
type CreateSpacesCommand ¶
type CreateSpacesCommand struct {
BaseCFConfigCommand
BaseLDAPCommand
}
func (*CreateSpacesCommand) Execute ¶
func (c *CreateSpacesCommand) Execute([]string) error
Execute - creates spaces
type DeleteOrgsCommand ¶
type DeleteOrgsCommand struct {
BaseCFConfigCommand
BasePeekCommand
}
func (*DeleteOrgsCommand) Execute ¶
func (c *DeleteOrgsCommand) Execute([]string) error
Execute - deletes orgs
type DeleteSpacesCommand ¶
type DeleteSpacesCommand struct {
BaseCFConfigCommand
BasePeekCommand
}
func (*DeleteSpacesCommand) Execute ¶
func (c *DeleteSpacesCommand) Execute([]string) error
Execute - deletes spaces
type ExportConfigurationCommand ¶
type ExportConfigurationCommand struct {
BaseCFConfigCommand
ExcludedOrgs []string `long:"excluded-org" description:"Org to be excluded from export. Repeat the flag to specify multiple orgs"`
ExcludedSpaces []string `long:"excluded-space" description:"Space to be excluded from export. Repeat the flag to specify multiple spaces"`
}
func (*ExportConfigurationCommand) Execute ¶
func (c *ExportConfigurationCommand) Execute([]string) error
Execute - initializes cf-mgmt configuration
type Initialize ¶
type IsolationSegmentsCommand ¶
type IsolationSegmentsCommand struct {
BaseCFConfigCommand
}
func (*IsolationSegmentsCommand) Execute ¶
func (c *IsolationSegmentsCommand) Execute([]string) error
Execute - updates spaces
type UpdateOrgQuotasCommand ¶
type UpdateOrgQuotasCommand struct {
BaseCFConfigCommand
}
func (*UpdateOrgQuotasCommand) Execute ¶
func (c *UpdateOrgQuotasCommand) Execute([]string) error
Execute - updates orgs quotas
type UpdateOrgUsersCommand ¶
type UpdateOrgUsersCommand struct {
BaseCFConfigCommand
BaseLDAPCommand
}
func (*UpdateOrgUsersCommand) Execute ¶
func (c *UpdateOrgUsersCommand) Execute([]string) error
Execute - updates orgs quotas
type UpdateSpaceQuotasCommand ¶
type UpdateSpaceQuotasCommand struct {
BaseCFConfigCommand
}
func (*UpdateSpaceQuotasCommand) Execute ¶
func (c *UpdateSpaceQuotasCommand) Execute([]string) error
Execute - updates space quotas
type UpdateSpaceUsersCommand ¶
type UpdateSpaceUsersCommand struct {
BaseCFConfigCommand
BaseLDAPCommand
}
func (*UpdateSpaceUsersCommand) Execute ¶
func (c *UpdateSpaceUsersCommand) Execute([]string) error
Execute - updates space users
type UpdateSpacesCommand ¶
type UpdateSpacesCommand struct {
BaseCFConfigCommand
}
func (*UpdateSpacesCommand) Execute ¶
func (c *UpdateSpacesCommand) Execute([]string) error
Execute - updates spaces
Source Files
¶
- cf_mgmt.go
- command.go
- create_orgs.go
- create_private_domains.go
- create_security_groups.go
- create_space_security_groups.go
- create_spaces.go
- delete_orgs.go
- delete_spaces.go
- export_config.go
- initialize.go
- isolation_segments.go
- update_org_quota.go
- update_org_users.go
- update_space_quota.go
- update_space_users.go
- update_spaces.go