Version: v1.0.48 Latest Latest

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

Go to latest
Published: Nov 23, 2020 License: Apache-2.0 Imports: 9 Imported by: 0




This section is empty.


This section is empty.


This section is empty.


type CFClient added in v1.0.0

type CFClient interface {
	GetSpaceByGuid(spaceGUID string) (cfclient.Space, error)
	UpdateSpace(spaceGUID string, req cfclient.SpaceRequest) (cfclient.Space, error)
	CreateSpace(req cfclient.SpaceRequest) (cfclient.Space, error)
	DeleteSpace(guid string, recursive, async bool) error
	ListSpaces() ([]cfclient.Space, error)
	SupportsMetadataAPI() (bool, error)
	UpdateSpaceMetadata(spaceGUID string, metadata cfclient.Metadata) error
	SpaceMetadata(spaceGUID string) (*cfclient.Metadata, error)
	RemoveSpaceMetadata(spaceGUID string) error
	ListOrgs() ([]cfclient.Org, error)

type DefaultManager added in v1.0.0

type DefaultManager struct {
	Cfg       config.Reader
	Client    CFClient
	UAAMgr    uaa.Manager
	OrgReader organizationreader.Reader
	Peek      bool
	// contains filtered or unexported fields

DefaultManager -

func (*DefaultManager) ClearMetadata added in v1.0.41

func (m *DefaultManager) ClearMetadata(space cfclient.Space, orgName string) error

func (*DefaultManager) CreateSpace added in v1.0.0

func (m *DefaultManager) CreateSpace(spaceName, orgName, orgGUID string) error

func (*DefaultManager) CreateSpaces added in v1.0.0

func (m *DefaultManager) CreateSpaces() error

CreateSpaces -

func (*DefaultManager) DeleteSpace added in v1.0.0

func (m *DefaultManager) DeleteSpace(space cfclient.Space, orgName string) error

DeleteSpace - deletes a space based on GUID

func (*DefaultManager) DeleteSpaces added in v1.0.0

func (m *DefaultManager) DeleteSpaces() error

func (*DefaultManager) DeleteSpacesForOrg added in v1.0.41

func (m *DefaultManager) DeleteSpacesForOrg(orgGUID, orgName string) (err error)

func (*DefaultManager) FindSpace added in v1.0.0

func (m *DefaultManager) FindSpace(orgName, spaceName string) (cfclient.Space, error)

FindSpace -

func (*DefaultManager) ListSpaces added in v1.0.0

func (m *DefaultManager) ListSpaces(orgGUID string) ([]cfclient.Space, error)

func (*DefaultManager) RenameSpace added in v1.0.9

func (m *DefaultManager) RenameSpace(originalSpaceName, spaceName, orgName string) error

func (*DefaultManager) UpdateSpaceMetadata added in v1.0.26

func (m *DefaultManager) UpdateSpaceMetadata(org string, space cfclient.Space, metadata cfclient.Metadata) error

func (*DefaultManager) UpdateSpaceSSH added in v1.0.0

func (m *DefaultManager) UpdateSpaceSSH(sshAllowed bool, space cfclient.Space, orgName string) error

func (*DefaultManager) UpdateSpaces added in v1.0.0

func (m *DefaultManager) UpdateSpaces() error

UpdateSpaces -

func (*DefaultManager) UpdateSpacesMetadata added in v1.0.26

func (m *DefaultManager) UpdateSpacesMetadata() error

type Manager

type Manager interface {
	FindSpace(orgName, spaceName string) (cfclient.Space, error)
	CreateSpaces() error
	UpdateSpaces() (err error)
	DeleteSpaces() (err error)
	DeleteSpacesForOrg(orgGUID, orgName string) (err error)
	ListSpaces(orgGUID string) ([]cfclient.Space, error)
	UpdateSpacesMetadata() error

Manager -

func NewManager

func NewManager(client CFClient, uaaMgr uaa.Manager,
	orgReader organizationreader.Reader,
	cfg config.Reader, peek bool) Manager

NewManager -


Path Synopsis
Code generated by counterfeiter.
Code generated by counterfeiter.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL