Documentation
¶
Index ¶
- type CFClient
- type Manager
- type Updater
- func (u *Updater) Apply() error
- func (u *Updater) Create() error
- func (u *Updater) Entitle() error
- func (m *Updater) ListIsolationSegments() ([]cfclient.IsolationSegment, error)
- func (u *Updater) Remove() error
- func (u *Updater) Unentitle() error
- func (u *Updater) UpdateOrgs() error
- func (u *Updater) UpdateSpaces() error
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 {
ListIsolationSegments() ([]cfclient.IsolationSegment, error)
ListIsolationSegmentsByQuery(query url.Values) ([]cfclient.IsolationSegment, error)
CreateIsolationSegment(name string) (*cfclient.IsolationSegment, error)
DeleteIsolationSegmentByGUID(guid string) error
GetIsolationSegmentByGUID(guid string) (*cfclient.IsolationSegment, error)
AddIsolationSegmentToOrg(isolationSegmentGUID, orgGUID string) error
RemoveIsolationSegmentFromOrg(isolationSegmentGUID, orgGUID string) error
AddIsolationSegmentToSpace(isolationSegmentGUID, spaceGUID string) error
RemoveIsolationSegmentFromSpace(isolationSegmentGUID, spaceGUID string) error
DefaultIsolationSegmentForOrg(orgGUID, isolationSegmentGUID string) error
ResetDefaultIsolationSegmentForOrg(orgGUID string) error
IsolationSegmentForSpace(spaceGUID, isolationSegmentGUID string) error
ResetIsolationSegmentForSpace(spaceGUID string) error
}
type Manager ¶ added in v1.0.0
type Updater ¶
type Updater struct {
Cfg config.Reader
Client CFClient
OrgReader organizationreader.Reader
SpaceManager space.Manager
Peek bool
CleanUp bool
}
Updater performs the required updates to acheive the desired state wrt isolation segments. Updaters should always be created with NewUpdater. It is save to modify Updater's exported fields after creation.
func (*Updater) Create ¶ added in v1.0.0
Create creates any isolation segments that do not yet exist,
func (*Updater) Entitle ¶
Entitle ensures that each org is entitled to the isolation segments it needs to use.
func (*Updater) ListIsolationSegments ¶ added in v1.0.0
func (m *Updater) ListIsolationSegments() ([]cfclient.IsolationSegment, error)
func (*Updater) Remove ¶ added in v1.0.0
Create creates any isolation segments that do not yet exist,
func (*Updater) UpdateOrgs ¶
UpdateOrgs sets the default isolation segment for each org, as specified in the cf-mgmt config.
func (*Updater) UpdateSpaces ¶
UpdateSpaces sets the isolation segment for each space, as specified in the cf-mgmt config.
Click to show internal directories.
Click to hide internal directories.