space

package
v1.0.46 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2020 License: Apache-2.0 Imports: 9 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

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 -

Directories

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

Jump to

Keyboard shortcuts

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