isosegment

package
v0.0.89 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2018 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Segment

type Segment struct {
	Name string
	GUID string
}

Segment represents a Cloud Foundry isolation segment.

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

func NewUpdater(cfmgmtVersion, systemDomain, uaaToken, clientID, clientSecret string, cfg config.Manager) (*Updater, error)

NewUpdater creates an updater that runs against the specified CF endpoint.

func (*Updater) Ensure

func (u *Updater) Ensure() error

Ensure creates any isolation segments that do not yet exist, and optionally removes unneeded isolation segments.

func (*Updater) Entitle

func (u *Updater) Entitle() error

Entitle ensures that each org is entitled to the isolation segments it needs to use.

func (*Updater) UpdateOrgs

func (u *Updater) UpdateOrgs() error

UpdateOrgs sets the default isolation segment for each org, as specified in the cf-mgmt config.

func (*Updater) UpdateSpaces

func (u *Updater) UpdateSpaces() error

UpdateSpaces sets the isolation segment for each space, as specified in the cf-mgmt config.

Jump to

Keyboard shortcuts

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