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 LBPolicies
- func (s *LBPolicies) Create(policy *LBPolicy) error
- func (s *LBPolicies) Delete(name string) (*LBPolicy, error)
- func (s *LBPolicies) Get(name string) *LBPolicy
- func (s *LBPolicies) GetAll() []*LBPolicy
- func (s *LBPolicies) Len() int
- func (s *LBPolicies) Update(name string, mutator func(*LBPolicy) *LBPolicy) error
- type LBPolicy
- 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 { api.Policy // Version of the struct when object was created. Version uint32 }
AccessPolicy to allow/deny specific connections.
func NewAccessPolicy ¶
func NewAccessPolicy(policy *api.Policy) *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 // 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 LBPolicies ¶
type LBPolicies struct {
// contains filtered or unexported fields
}
LBPolicies is a cached persistent store of Load-Balancing Policies.
func NewLBPolicies ¶
func NewLBPolicies(manager store.Manager) (*LBPolicies, error)
NewLBPolicies returns a new cached store of load-balancing policies.
func (*LBPolicies) Create ¶
func (s *LBPolicies) Create(policy *LBPolicy) error
Create a Load-Balancing Policy.
func (*LBPolicies) Delete ¶
func (s *LBPolicies) Delete(name string) (*LBPolicy, error)
Delete a load-balancing policy.
func (*LBPolicies) Get ¶
func (s *LBPolicies) Get(name string) *LBPolicy
Get a load-balancing policy.
func (*LBPolicies) GetAll ¶
func (s *LBPolicies) GetAll() []*LBPolicy
GetAll returns all load-balancing policies in the cache.
func (*LBPolicies) Len ¶
func (s *LBPolicies) Len() int
Len returns the number of cached load-balancing policies.
type LBPolicy ¶
type LBPolicy struct { api.Policy // Version of the struct when object was created. Version uint32 }
LBPolicy specifies the load-balancing scheme for specific connections.
func NewLBPolicy ¶
NewLBPolicy creates a new load-balancing policy.
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.