space

package
v0.0.14 Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2016 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DefaultSpaceManager

type DefaultSpaceManager struct {
	Token       string
	UAACToken   string
	SysDomain   string
	Spaces      []Resource
	FilePattern string
	FilePaths   []string
}

DefaultSpaceManager -

func (*DefaultSpaceManager) CreateSpace

func (m *DefaultSpaceManager) CreateSpace(orgName, spaceName string) (space Resource, err error)

CreateSpace -

func (*DefaultSpaceManager) CreateSpaces

func (m *DefaultSpaceManager) CreateSpaces(configDir string) (err error)

CreateSpaces -

func (*DefaultSpaceManager) FindSpace

func (m *DefaultSpaceManager) FindSpace(orgName, spaceName string) (space Resource, err error)

FindSpace -

func (*DefaultSpaceManager) UpdateSpaceUsers added in v0.0.13

func (m *DefaultSpaceManager) UpdateSpaceUsers(configDir string) (err error)

UpdateSpaceUsers -

func (*DefaultSpaceManager) UpdateSpaces added in v0.0.9

func (m *DefaultSpaceManager) UpdateSpaces(configDir string) (err error)

UpdateSpaces -

type Entity

type Entity struct {
	Name           string                   `json:"name"`
	AllowSSH       bool                     `json:"allow_ssh"`
	SecurityGroups []securitygroup.Resource `json:"security_groups"`
	OrgGUID        string                   `json:"organization_guid"`
	Org            Org                      `json:"organization"`
}

Entity -

type InputCreateSpaces added in v0.0.9

type InputCreateSpaces struct {
	Org    string   `yaml:"org"`
	Spaces []string `yaml:"spaces"`
}

InputCreateSpaces -

func (*InputCreateSpaces) Contains added in v0.0.14

func (s *InputCreateSpaces) Contains(spaceName string) bool

Contains -

type InputUpdateSpaces added in v0.0.9

type InputUpdateSpaces struct {
	Org            string `yaml:"org"`
	Space          string `yaml:"space"`
	DeveloperGroup string `yaml:"space-developer-group"`
	ManagerGroup   string `yaml:"space-manager-group"`
	AuditorGroup   string `yaml:"space-auditor-group"`
	AllowSSH       bool   `yaml:"allow-ssh"`
}

InputUpdateSpaces -

type Manager

type Manager interface {
	CreateSpace(orgName, spaceName string) (space Resource, err error)
	FindSpace(orgName, spaceName string) (space Resource, err error)
	CreateSpaces(configDir string) (err error)
	UpdateSpaces(configDir string) (err error)
	UpdateSpaceUsers(configDir string) (err error)
}

Manager -

func NewManager

func NewManager(sysDomain, token, uaacToken string) (mgr Manager)

NewManager -

type MetaData

type MetaData struct {
	GUID string `json:"guid"`
	URL  string `json:"url"`
}

MetaData -

type Org added in v0.0.9

type Org struct {
	OrgEntity OrgEntity `json:"entity"`
}

Org -

type OrgEntity added in v0.0.9

type OrgEntity struct {
	Name string `json:"name"`
}

OrgEntity -

type Resource

type Resource struct {
	MetaData MetaData `json:"metadata"`
	Entity   Entity   `json:"entity"`
}

Resource -

type Resources

type Resources struct {
	Resource []Resource `json:"resources"`
}

Resources -

Jump to

Keyboard shortcuts

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