securitygroup

package
v1.0.106 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2025 License: Apache-2.0 Imports: 12 Imported by: 3

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 CFSecurityGroupClient added in v1.0.61

type CFSecurityGroupClient interface {
	ListAll(ctx context.Context, opts *cfclient.SecurityGroupListOptions) ([]*resource.SecurityGroup, error)
	Create(ctx context.Context, r *resource.SecurityGroupCreate) (*resource.SecurityGroup, error)
	Update(ctx context.Context, guid string, r *resource.SecurityGroupUpdate) (*resource.SecurityGroup, error)
	BindRunningSecurityGroup(ctx context.Context, guid string, spaceGUIDs []string) ([]string, error)
	BindStagingSecurityGroup(ctx context.Context, guid string, spaceGUIDs []string) ([]string, error)
	UnBindRunningSecurityGroup(ctx context.Context, guid string, spaceGUID string) error
	UnBindStagingSecurityGroup(ctx context.Context, guid string, spaceGUID string) error
	Get(ctx context.Context, guid string) (*resource.SecurityGroup, error)
	ListRunningForSpaceAll(ctx context.Context, spaceGUID string, opts *cfclient.SecurityGroupSpaceListOptions) ([]*resource.SecurityGroup, error)
}

type DefaultManager added in v1.0.0

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

DefaultSecurityGroupManager -

func (*DefaultManager) AssignDefaultSecurityGroups added in v1.0.0

func (m *DefaultManager) AssignDefaultSecurityGroups() error

AssignDefaultSecurityGroups -

func (*DefaultManager) AssignSecurityGroupGlobalRunning added in v1.0.61

func (m *DefaultManager) AssignSecurityGroupGlobalRunning(sg *resource.SecurityGroup) error

func (*DefaultManager) AssignSecurityGroupGlobalStaging added in v1.0.61

func (m *DefaultManager) AssignSecurityGroupGlobalStaging(sg *resource.SecurityGroup) error

func (*DefaultManager) AssignSecurityGroupToSpace added in v1.0.0

func (m *DefaultManager) AssignSecurityGroupToSpace(space *resource.Space, secGroup *resource.SecurityGroup) 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) (*resource.SecurityGroup, 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]*resource.SecurityGroup, error)

func (*DefaultManager) ListNonDefaultSecurityGroups added in v1.0.0

func (m *DefaultManager) ListNonDefaultSecurityGroups() (map[string]*resource.SecurityGroup, error)

func (*DefaultManager) ListSecurityGroups added in v1.0.0

func (m *DefaultManager) ListSecurityGroups() (map[string]*resource.SecurityGroup, error)

func (*DefaultManager) ListSpaceSecurityGroups added in v1.0.0

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

func (*DefaultManager) UnassignSecurityGroupGlobalRunning added in v1.0.61

func (m *DefaultManager) UnassignSecurityGroupGlobalRunning(sg *resource.SecurityGroup) error

func (*DefaultManager) UnassignSecurityGroupGlobalStaging added in v1.0.61

func (m *DefaultManager) UnassignSecurityGroupGlobalStaging(sg *resource.SecurityGroup) error

func (*DefaultManager) UnassignSecurityGroupToSpace added in v1.0.26

func (m *DefaultManager) UnassignSecurityGroupToSpace(space *resource.Space, secGroup *resource.SecurityGroup) error

func (*DefaultManager) UpdateSecurityGroup added in v1.0.0

func (m *DefaultManager) UpdateSecurityGroup(sg *resource.SecurityGroup, contents string) error

type Manager added in v0.0.68

type Manager interface {
	ListNonDefaultSecurityGroups() (map[string]*resource.SecurityGroup, error)
	ListDefaultSecurityGroups() (map[string]*resource.SecurityGroup, 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 CFSecurityGroupClient, 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