Documentation ¶
Index ¶
- type ExternalClient
- func (c *ExternalClient) AddPolicies(token string, policies []models.Policy) error
- func (c *ExternalClient) DeletePolicies(token string, policies []models.Policy) error
- func (c *ExternalClient) GetPolicies(token string) ([]models.Policy, error)
- func (c *ExternalClient) GetPoliciesByID(token string, ids ...string) ([]models.Policy, error)
- type ExternalPolicyClient
- type InternalClient
- type JsonClient
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ExternalClient ¶ added in v0.3.0
type ExternalClient struct {
JsonClient jsonClient
}
func NewExternal ¶ added in v0.3.0
func NewExternal(logger lager.Logger, httpClient httpClient, url string) *ExternalClient
func (*ExternalClient) AddPolicies ¶ added in v0.3.0
func (c *ExternalClient) AddPolicies(token string, policies []models.Policy) error
func (*ExternalClient) DeletePolicies ¶ added in v0.3.0
func (c *ExternalClient) DeletePolicies(token string, policies []models.Policy) error
func (*ExternalClient) GetPolicies ¶ added in v0.3.0
func (c *ExternalClient) GetPolicies(token string) ([]models.Policy, error)
func (*ExternalClient) GetPoliciesByID ¶ added in v0.3.0
type ExternalPolicyClient ¶ added in v0.3.0
type InternalClient ¶ added in v0.3.0
type InternalClient struct {
JsonClient jsonClient
}
func NewInternal ¶ added in v0.3.0
func NewInternal(logger lager.Logger, httpClient httpClient, url string) *InternalClient
func (*InternalClient) GetPolicies ¶ added in v0.3.0
func (c *InternalClient) GetPolicies() ([]models.Policy, error)
type JsonClient ¶ added in v0.3.0
Click to show internal directories.
Click to hide internal directories.