commands

package
v0.0.86 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 30, 2018 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AddOrgToConfigurationCommand added in v0.0.71

type AddOrgToConfigurationCommand struct {
	BaseConfigCommand
	OrgName            string `long:"org" env:"ORG" description:"Org name to add" required:"true"`
	OrgBillingMgrGroup string `long:"org-billing-mgr-grp" env:"ORG_BILLING_MGR_GRP" description:"LDAP group for Org Billing Manager"`
	OrgMgrGroup        string `long:"org-mgr-grp" env:"ORG_MGR_GRP" description:"LDAP group for Org Manager"`
	OrgAuditorGroup    string `long:"org-auditor-grp" env:"ORG_AUDITOR_GRP" description:"LDAP group for Org Auditor"`
}

func (*AddOrgToConfigurationCommand) Execute added in v0.0.71

Execute - adds a named org to the configuration

type AddSpaceToConfigurationCommand added in v0.0.71

type AddSpaceToConfigurationCommand struct {
	BaseConfigCommand
	OrgName             string `long:"org" env:"ORG" description:"Org name to add" required:"true"`
	SpaceName           string `long:"space" env:"space" description:"Space name to add" required:"true"`
	SpaceDeveloperGroup string `long:"space-dev-grp" env:"SPACE_DEV_GRP" description:"LDAP group for Space Developer"`
	SpaceMgrGroup       string `long:"space-mgr-grp" env:"SPACE_MGR_GRP" description:"LDAP group for Space Manager"`
	SpaceAuditorGroup   string `long:"space-auditor-grp" env:"SPACE_AUDITOR_GRP" description:"LDAP group for Space Auditor"`
}

func (*AddSpaceToConfigurationCommand) Execute added in v0.0.71

Execute - adds a named space to the configuration

type AssignDefaultSecurityGroups added in v0.0.84

type AssignDefaultSecurityGroups struct {
	BaseCFConfigCommand
	BasePeekCommand
}

func (*AssignDefaultSecurityGroups) Execute added in v0.0.84

Execute - creates security groups

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 change without modifying"`
}

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
	CloudController         cloudcontroller.Manager
	SecurityGroupManager    securitygroup.Manager
	IsolationSegmentUpdater *isosegment.Updater
}

func InitializeManagers

func InitializeManagers(baseCommand BaseCFConfigCommand) (*CFMgmt, error)

func InitializePeekManagers added in v0.0.80

func InitializePeekManagers(baseCommand BaseCFConfigCommand, peek bool) (*CFMgmt, error)

type CfMgmtCommand

type CfMgmtCommand struct {
	Version                          configcommands.VersionCommand    `command:"version" description:"Print version information and exit"`
	InitConfigurationCommand         InitConfigurationCommand         `command:"init-config" description:"Initializes folder structure for configuration"`
	AddOrgToConfigurationCommand     AddOrgToConfigurationCommand     `command:"add-org-to-config" description:"Adds specified org to configuration"`
	AddSpaceToConfigurationCommand   AddSpaceToConfigurationCommand   `command:"add-space-to-config" description:"Adds specified space to configuration for org"`
	GenerateConcoursePipelineCommand 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"`
	AssignDefaultSecurityGroups      AssignDefaultSecurityGroups      `command:"assign-default-security-groups" description:"assigns security groups to default running or default staging"`
	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"`
	SharePrivateDomainsCommand       SharePrivateDomainsCommand       `command:"share-org-private-domains" description:"shares an existing private domain with the specified org"`
}
var CfMgmt CfMgmtCommand

type CreateOrgsCommand

type CreateOrgsCommand struct {
	BaseCFConfigCommand
	BasePeekCommand
}

func (*CreateOrgsCommand) Execute

func (c *CreateOrgsCommand) Execute([]string) error

Execute - creates organizations

type CreatePrivateDomainsCommand

type CreatePrivateDomainsCommand struct {
	BaseCFConfigCommand
	BasePeekCommand
}

func (*CreatePrivateDomainsCommand) Execute

Execute - creates private domains

type CreateSecurityGroupsCommand

type CreateSecurityGroupsCommand struct {
	BaseCFConfigCommand
	BasePeekCommand
}

func (*CreateSecurityGroupsCommand) Execute

Execute - creates security groups

type CreateSpaceSecurityGroupsCommand

type CreateSpaceSecurityGroupsCommand struct {
	BaseCFConfigCommand
	BasePeekCommand
}

func (*CreateSpaceSecurityGroupsCommand) Execute

Execute - creates space specific security groups

type CreateSpacesCommand

type CreateSpacesCommand struct {
	BaseCFConfigCommand
	BaseLDAPCommand
	BasePeekCommand
}

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 GenerateConcoursePipelineCommand added in v0.0.71

type GenerateConcoursePipelineCommand struct {
}

func (*GenerateConcoursePipelineCommand) Execute added in v0.0.71

Execute - generates concourse pipeline and tasks

type InitConfigurationCommand added in v0.0.71

type InitConfigurationCommand struct {
	BaseConfigCommand
}

func (*InitConfigurationCommand) Execute added in v0.0.71

func (c *InitConfigurationCommand) Execute([]string) error

Execute - initializes cf-mgmt configuration

type Initialize

type Initialize struct {
	ConfigDir, SystemDomain, UserID, Password, ClientSecret, LdapPwd string
	Peek                                                             bool
}

type IsolationSegmentsCommand

type IsolationSegmentsCommand struct {
	BaseCFConfigCommand
}

func (*IsolationSegmentsCommand) Execute

func (c *IsolationSegmentsCommand) Execute([]string) error

Execute - updates spaces

type SharePrivateDomainsCommand added in v0.0.74

type SharePrivateDomainsCommand struct {
	BaseCFConfigCommand
	BasePeekCommand
}

func (*SharePrivateDomainsCommand) Execute added in v0.0.74

func (c *SharePrivateDomainsCommand) Execute([]string) error

Execute - creates private domains

type UpdateOrgQuotasCommand

type UpdateOrgQuotasCommand struct {
	BaseCFConfigCommand
	BasePeekCommand
}

func (*UpdateOrgQuotasCommand) Execute

func (c *UpdateOrgQuotasCommand) Execute([]string) error

Execute - updates orgs quotas

type UpdateOrgUsersCommand

type UpdateOrgUsersCommand struct {
	BaseCFConfigCommand
	BaseLDAPCommand
	BasePeekCommand
}

func (*UpdateOrgUsersCommand) Execute

func (c *UpdateOrgUsersCommand) Execute([]string) error

Execute - updates orgs quotas

type UpdateSpaceQuotasCommand

type UpdateSpaceQuotasCommand struct {
	BaseCFConfigCommand
	BasePeekCommand
}

func (*UpdateSpaceQuotasCommand) Execute

func (c *UpdateSpaceQuotasCommand) Execute([]string) error

Execute - updates space quotas

type UpdateSpaceUsersCommand

type UpdateSpaceUsersCommand struct {
	BaseCFConfigCommand
	BaseLDAPCommand
	BasePeekCommand
}

func (*UpdateSpaceUsersCommand) Execute

func (c *UpdateSpaceUsersCommand) Execute([]string) error

Execute - updates space users

type UpdateSpacesCommand

type UpdateSpacesCommand struct {
	BaseCFConfigCommand
	BasePeekCommand
}

func (*UpdateSpacesCommand) Execute

func (c *UpdateSpacesCommand) Execute([]string) error

Execute - updates spaces

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL