Documentation ¶
Index ¶
- Constants
- type Chunker
- type ExternalClient
- func (c *ExternalClient) AddPolicies(token string, policies []api.Policy) error
- func (c *ExternalClient) AddPoliciesV0(token string, policies []api_v0.Policy) error
- func (c *ExternalClient) DeletePolicies(token string, policies []api.Policy) error
- func (c *ExternalClient) DeletePoliciesV0(token string, policies []api_v0.Policy) error
- func (c *ExternalClient) GetPolicies(token string) ([]api.Policy, error)
- func (c *ExternalClient) GetPoliciesByID(token string, ids ...string) ([]api.Policy, error)
- func (c *ExternalClient) GetPoliciesV0(token string) ([]api_v0.Policy, error)
- func (c *ExternalClient) GetPoliciesV0ByID(token string, ids ...string) ([]api_v0.Policy, error)
- type ExternalPolicyClient
- type InternalClient
- type SimpleChunker
Constants ¶
View Source
const DefaultMaxPolicies = 100
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ExternalClient ¶ added in v0.3.0
type ExternalClient struct { JsonClient json_client.JsonClient Chunker Chunker }
func NewExternal ¶ added in v0.3.0
func NewExternal(logger lager.Logger, httpClient json_client.HttpClient, baseURL string) *ExternalClient
func (*ExternalClient) AddPolicies ¶ added in v0.3.0
func (c *ExternalClient) AddPolicies(token string, policies []api.Policy) error
func (*ExternalClient) AddPoliciesV0 ¶ added in v1.4.0
func (c *ExternalClient) AddPoliciesV0(token string, policies []api_v0.Policy) error
func (*ExternalClient) DeletePolicies ¶ added in v0.3.0
func (c *ExternalClient) DeletePolicies(token string, policies []api.Policy) error
func (*ExternalClient) DeletePoliciesV0 ¶ added in v1.4.0
func (c *ExternalClient) DeletePoliciesV0(token string, policies []api_v0.Policy) error
func (*ExternalClient) GetPolicies ¶ added in v0.3.0
func (c *ExternalClient) GetPolicies(token string) ([]api.Policy, error)
func (*ExternalClient) GetPoliciesByID ¶ added in v0.3.0
func (*ExternalClient) GetPoliciesV0 ¶ added in v1.4.0
func (c *ExternalClient) GetPoliciesV0(token string) ([]api_v0.Policy, error)
func (*ExternalClient) GetPoliciesV0ByID ¶ added in v1.4.0
type ExternalPolicyClient ¶ added in v0.3.0
type ExternalPolicyClient interface { GetPolicies(token string) ([]api.Policy, error) GetPoliciesByID(token string, ids ...string) ([]api.Policy, error) GetPoliciesV0(token string) ([]api_v0.Policy, error) GetPoliciesV0ByID(token string, ids ...string) ([]api_v0.Policy, error) DeletePolicies(token string, policies []api.Policy) error DeletePoliciesV0(token string, policies []api_v0.Policy) error AddPolicies(token string, policies []api.Policy) error AddPoliciesV0(token string, policies []api_v0.Policy) error }
type InternalClient ¶ added in v0.3.0
type InternalClient struct {
JsonClient json_client.JsonClient
}
func NewInternal ¶ added in v0.3.0
func NewInternal(logger lager.Logger, httpClient json_client.HttpClient, baseURL string) *InternalClient
func (*InternalClient) GetPolicies ¶ added in v0.3.0
func (c *InternalClient) GetPolicies() ([]api.Policy, error)
func (*InternalClient) GetPoliciesByID ¶ added in v0.15.0
func (c *InternalClient) GetPoliciesByID(ids ...string) ([]api.Policy, error)
func (*InternalClient) HealthCheck ¶ added in v0.25.0
func (c *InternalClient) HealthCheck() (bool, error)
type SimpleChunker ¶ added in v0.17.0
type SimpleChunker struct {
ChunkSize int
}
Click to show internal directories.
Click to hide internal directories.