Documentation
¶
Index ¶
Constants ¶
View Source
const DefaultMaxPolicies = 100
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Destination ¶
type DestinationV0 ¶
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) GetPolicies ¶
func (c *InternalClient) GetPolicies() ([]Policy, error)
func (*InternalClient) GetPoliciesByID ¶
func (c *InternalClient) GetPoliciesByID(ids ...string) ([]Policy, error)
func (*InternalClient) HealthCheck ¶
func (c *InternalClient) HealthCheck() (bool, 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
Click to show internal directories.
Click to hide internal directories.