Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Updater ¶
type Updater struct {
Cfg config.Reader
DryRun bool // print the actions that would be taken, make no changes
CleanUp bool // delete/restrict access to any iso segments not identified in the config
// contains filtered or unexported fields
}
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 NewUpdater ¶
NewUpdater creates an updater that runs against the specified CF endpoint.
func (*Updater) Ensure ¶
Ensure creates any isolation segments that do not yet exist, and optionally removes unneeded isolation segments.
func (*Updater) Entitle ¶
Entitle ensures that each org is entitled to the isolation segments it needs to use.
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.