Documentation ¶
Index ¶
- type AccessPolicies
- func (s *AccessPolicies) Create(policy *AccessPolicy) error
- func (s *AccessPolicies) Delete(name string) (*AccessPolicy, error)
- func (s *AccessPolicies) Get(name string) *AccessPolicy
- func (s *AccessPolicies) GetAll() []*AccessPolicy
- func (s *AccessPolicies) Len() int
- func (s *AccessPolicies) Update(name string, mutator func(*AccessPolicy) *AccessPolicy) error
- type AccessPolicy
- type Export
- type Exports
- type Import
- type Imports
- type Peer
- type Peers
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccessPolicies ¶
type AccessPolicies struct {
// contains filtered or unexported fields
}
AccessPolicies is a cached persistent store of Access Policies.
func NewAccessPolicies ¶
func NewAccessPolicies(manager store.Manager) (*AccessPolicies, error)
NewAccessPolicies returns a new cached store of access policies.
func (*AccessPolicies) Create ¶
func (s *AccessPolicies) Create(policy *AccessPolicy) error
Create an AccessPolicy.
func (*AccessPolicies) Delete ¶
func (s *AccessPolicies) Delete(name string) (*AccessPolicy, error)
Delete an access policy.
func (*AccessPolicies) Get ¶
func (s *AccessPolicies) Get(name string) *AccessPolicy
Get an access policy.
func (*AccessPolicies) GetAll ¶
func (s *AccessPolicies) GetAll() []*AccessPolicy
GetAll returns all access policies in the cache.
func (*AccessPolicies) Len ¶
func (s *AccessPolicies) Len() int
Len returns the number of cached access policies.
func (*AccessPolicies) Update ¶
func (s *AccessPolicies) Update(name string, mutator func(*AccessPolicy) *AccessPolicy) error
Update an access policy.
type AccessPolicy ¶
type AccessPolicy struct { v1alpha1.AccessPolicySpec // Name of access policy. Name string // Version of the struct when object was created. Version uint32 }
AccessPolicy to allow/deny specific connections.
func NewAccessPolicy ¶
func NewAccessPolicy(policy *v1alpha1.AccessPolicy) *AccessPolicy
NewAccessPolicy creates a new access policy.
type Export ¶
type Export struct { v1alpha1.ExportSpec // Name of the export. Name string // Version of the struct when object was created. Version uint32 }
Export represents a local service that may be exported.
type Exports ¶
type Exports struct {
// contains filtered or unexported fields
}
Exports is a cached persistent store of exports.
func NewExports ¶
NewExports returns a new cached store of exports.
type Import ¶
type Import struct { v1alpha1.ImportSpec // Name of import. Name string // Labels defined for the import Labels map[string]string // Version of the struct when object was created. Version uint32 }
Import represents an external service that can be bound to (multiple) exported services of remote peers.
type Imports ¶
type Imports struct {
// contains filtered or unexported fields
}
Imports is a cached persistent store of imports.
func NewImports ¶
NewImports returns a new cached store of imports.
type Peer ¶
type Peer struct { v1alpha1.PeerSpec // Name of the peer. Name string // Version of the struct when object was created. Version uint32 }
Peer represents a remote peer.