securitygroup

package
v1.0.48 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2020 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DoesJsonMatch added in v0.0.74

func DoesJsonMatch(val1, val2 string) (bool, error)

Types

type CFClient added in v1.0.0

type CFClient interface {
	ListSecGroups() ([]cfclient.SecGroup, error)
	CreateSecGroup(name string, rules []cfclient.SecGroupRule, spaceGuids []string) (*cfclient.SecGroup, error)
	UpdateSecGroup(guid, name string, rules []cfclient.SecGroupRule, spaceGuids []string) (*cfclient.SecGroup, error)
	BindSecGroup(secGUID, spaceGUID string) error
	UnbindSecGroup(secGUID, spaceGUID string) error
	BindRunningSecGroup(secGUID string) error
	BindStagingSecGroup(secGUID string) error
	UnbindRunningSecGroup(secGUID string) error
	UnbindStagingSecGroup(secGUID string) error
	GetSecGroup(guid string) (*cfclient.SecGroup, error)
	ListSpaceSecGroups(spaceGUID string) ([]cfclient.SecGroup, error)
}

type DefaultManager added in v1.0.0

type DefaultManager struct {
	Cfg          config.Reader
	SpaceManager space.Manager
	Client       CFClient
	Peek         bool
}

DefaultSecurityGroupManager -

func (*DefaultManager) AssignDefaultSecurityGroups added in v1.0.0

func (m *DefaultManager) AssignDefaultSecurityGroups() error

AssignDefaultSecurityGroups -

func (*DefaultManager) AssignRunningSecurityGroup added in v1.0.0

func (m *DefaultManager) AssignRunningSecurityGroup(sg cfclient.SecGroup) error

func (*DefaultManager) AssignSecurityGroupToSpace added in v1.0.0

func (m *DefaultManager) AssignSecurityGroupToSpace(space cfclient.Space, secGroup cfclient.SecGroup) error

func (*DefaultManager) AssignStagingSecurityGroup added in v1.0.0

func (m *DefaultManager) AssignStagingSecurityGroup(sg cfclient.SecGroup) error

func (*DefaultManager) CreateApplicationSecurityGroups added in v1.0.0

func (m *DefaultManager) CreateApplicationSecurityGroups() error

CreateApplicationSecurityGroups -

func (*DefaultManager) CreateGlobalSecurityGroups added in v1.0.0

func (m *DefaultManager) CreateGlobalSecurityGroups() error

CreateGlobalSecurityGroups -

func (*DefaultManager) CreateSecurityGroup added in v1.0.0

func (m *DefaultManager) CreateSecurityGroup(sgName, contents string) (*cfclient.SecGroup, error)

func (*DefaultManager) GetSecurityGroupRules added in v1.0.0

func (m *DefaultManager) GetSecurityGroupRules(sgGUID string) ([]byte, error)

func (*DefaultManager) ListDefaultSecurityGroups added in v1.0.0

func (m *DefaultManager) ListDefaultSecurityGroups() (map[string]cfclient.SecGroup, error)

func (*DefaultManager) ListNonDefaultSecurityGroups added in v1.0.0

func (m *DefaultManager) ListNonDefaultSecurityGroups() (map[string]cfclient.SecGroup, error)

func (*DefaultManager) ListSecurityGroups added in v1.0.0

func (m *DefaultManager) ListSecurityGroups() (map[string]cfclient.SecGroup, error)

func (*DefaultManager) ListSpaceSecurityGroups added in v1.0.0

func (m *DefaultManager) ListSpaceSecurityGroups(spaceGUID string) (map[string]string, error)

func (*DefaultManager) UnassignRunningSecurityGroup added in v1.0.0

func (m *DefaultManager) UnassignRunningSecurityGroup(sg cfclient.SecGroup) error

func (*DefaultManager) UnassignSecurityGroupToSpace added in v1.0.26

func (m *DefaultManager) UnassignSecurityGroupToSpace(space cfclient.Space, secGroup cfclient.SecGroup) error

func (*DefaultManager) UnassignStagingSecurityGroup added in v1.0.0

func (m *DefaultManager) UnassignStagingSecurityGroup(sg cfclient.SecGroup) error

func (*DefaultManager) UpdateSecurityGroup added in v1.0.0

func (m *DefaultManager) UpdateSecurityGroup(sg cfclient.SecGroup, contents string) error

type Manager added in v0.0.68

type Manager interface {
	ListNonDefaultSecurityGroups() (map[string]cfclient.SecGroup, error)
	ListDefaultSecurityGroups() (map[string]cfclient.SecGroup, error)
	ListSpaceSecurityGroups(spaceGUID string) (map[string]string, error)
	GetSecurityGroupRules(sgGUID string) ([]byte, error)
	CreateApplicationSecurityGroups() error
	CreateGlobalSecurityGroups() error
	AssignDefaultSecurityGroups() error
}

func NewManager added in v0.0.68

func NewManager(client CFClient, spaceMgr space.Manager, cfg config.Reader, peek bool) Manager

NewManager -

type UnmarshalledDeepMatcher added in v0.0.74

type UnmarshalledDeepMatcher struct {
	Ordered            bool
	InvertOrderingKeys map[string]bool
	Subset             bool
}

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