space

package
v1.0.106 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2025 License: Apache-2.0 Imports: 12 Imported by: 8

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CFSpaceClient added in v1.0.68

type CFSpaceClient interface {
	ListAll(ctx context.Context, opts *v3cfclient.SpaceListOptions) ([]*resource.Space, error)
	Create(ctx context.Context, r *resource.SpaceCreate) (*resource.Space, error)
	Update(ctx context.Context, guid string, r *resource.SpaceUpdate) (*resource.Space, error)
	Delete(ctx context.Context, guid string) (string, error)
	GetAssignedIsolationSegment(ctx context.Context, guid string) (string, error)
}

type CFSpaceFeatureClient added in v1.0.68

type CFSpaceFeatureClient interface {
	IsSSHEnabled(ctx context.Context, spaceGUID string) (bool, error)
	EnableSSH(ctx context.Context, spaceGUID string, enable bool) error
}

type DefaultManager added in v1.0.0

type DefaultManager struct {
	Cfg                config.Reader
	SpaceClient        CFSpaceClient
	SpaceFeatureClient CFSpaceFeatureClient
	UAAMgr             uaa.Manager
	OrgReader          organizationreader.Reader
	Peek               bool
	// contains filtered or unexported fields
}

DefaultManager -

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 *resource.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) (*resource.Space, error)

FindSpace -

func (*DefaultManager) GetSpaceIsolationSegmentGUID added in v1.0.68

func (m *DefaultManager) GetSpaceIsolationSegmentGUID(space *resource.Space) (string, error)

func (*DefaultManager) IsSSHEnabled added in v1.0.68

func (m *DefaultManager) IsSSHEnabled(space *resource.Space) (bool, error)

func (*DefaultManager) ListSpaces added in v1.0.0

func (m *DefaultManager) ListSpaces(orgGUID string) ([]*resource.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 *resource.Space) error

func (*DefaultManager) UpdateSpaceSSH added in v1.0.0

func (m *DefaultManager) UpdateSpaceSSH(sshAllowed bool, space *resource.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) (*resource.Space, error)
	CreateSpaces() error
	UpdateSpaces() (err error)
	DeleteSpaces() (err error)
	DeleteSpacesForOrg(orgGUID, orgName string) (err error)
	ListSpaces(orgGUID string) ([]*resource.Space, error)
	IsSSHEnabled(*resource.Space) (bool, error)
	UpdateSpacesMetadata() error
	GetSpaceIsolationSegmentGUID(*resource.Space) (string, error)
}

Manager -

func NewManager

func NewManager(spaceClient CFSpaceClient, spaceFeatureClient CFSpaceFeatureClient, 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