Documentation
¶
Index ¶
- Constants
- type Chunker
- type Destination
- type DestinationV0
- type EgressDestination
- type EgressPolicy
- type EgressPolicySlice
- type EgressSource
- type IPRange
- type InternalClient
- type InternalPolicyClient
- type Policies
- type PoliciesV0
- type Policy
- type PolicySlice
- type PolicyV0
- type Ports
- type SimpleChunker
- type Source
- type SourceV0
- type Space
- type SpaceV0
- type Tag
- type TagRequest
- type TagV0
Constants ¶
View Source
const DefaultMaxPolicies = 100
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Destination ¶
type DestinationV0 ¶
type EgressDestination ¶
type EgressPolicy ¶
type EgressPolicy struct { Source *EgressSource `json:"source"` Destination *EgressDestination `json:"destination"` AppLifecycle string `json:"app_lifecycle"` }
type EgressPolicySlice ¶
type EgressPolicySlice []EgressPolicy
func (EgressPolicySlice) Len ¶
func (s EgressPolicySlice) Len() int
func (EgressPolicySlice) Less ¶
func (s EgressPolicySlice) Less(i, j int) bool
func (EgressPolicySlice) Swap ¶
func (s EgressPolicySlice) Swap(i, j int)
type EgressSource ¶
type InternalClient ¶
type InternalClient struct {
JsonClient json_client.JsonClient
}
func NewInternal ¶
func NewInternal(logger lager.Logger, httpClient json_client.HttpClient, baseURL string) *InternalClient
func (*InternalClient) CreateOrGetTag ¶
func (c *InternalClient) CreateOrGetTag(id, groupType string) (string, error)
func (*InternalClient) GetPolicies ¶
func (c *InternalClient) GetPolicies() ([]*Policy, []*EgressPolicy, error)
func (*InternalClient) GetPoliciesByID ¶
func (c *InternalClient) GetPoliciesByID(ids ...string) ([]Policy, []EgressPolicy, error)
func (*InternalClient) HealthCheck ¶
func (c *InternalClient) HealthCheck() (bool, error)
type InternalPolicyClient ¶
type InternalPolicyClient interface {
GetPolicies() ([]*Policy, []*EgressPolicy, error)
}
type PoliciesV0 ¶
type Policy ¶
type Policy struct { Source Source `json:"source"` Destination Destination `json:"destination"` }
type PolicySlice ¶
type PolicySlice []Policy
func (PolicySlice) Len ¶
func (s PolicySlice) Len() int
func (PolicySlice) Less ¶
func (s PolicySlice) Less(i, j int) bool
func (PolicySlice) Swap ¶
func (s PolicySlice) Swap(i, j int)
type PolicyV0 ¶
type PolicyV0 struct { Source SourceV0 `json:"source"` Destination DestinationV0 `json:"destination"` }
type SimpleChunker ¶
type SimpleChunker struct {
ChunkSize int
}
func (*SimpleChunker) Chunk ¶
func (c *SimpleChunker) Chunk(allPolicies []PolicyV0) [][]PolicyV0
type TagRequest ¶
Source Files
¶
Click to show internal directories.
Click to hide internal directories.