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
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ExternalClient ¶
type ExternalClient struct {
JsonClient json_client.JsonClient
}
func NewExternal ¶
func NewExternal(logger lager.Logger, httpClient json_client.HttpClient, baseURL string) *ExternalClient
func (*ExternalClient) AddPolicies ¶
func (c *ExternalClient) AddPolicies(token string, policies []models.Policy) error
func (*ExternalClient) DeletePolicies ¶
func (c *ExternalClient) DeletePolicies(token string, policies []models.Policy) error
func (*ExternalClient) GetPolicies ¶
func (c *ExternalClient) GetPolicies(token string) ([]models.Policy, error)
func (*ExternalClient) GetPoliciesByID ¶
type ExternalPolicyClient ¶
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() ([]models.Policy, error)
Click to show internal directories.
Click to hide internal directories.