policy_client

package
v0.11.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 23, 2016 License: Apache-2.0 Imports: 10 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

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

func (c *ExternalClient) GetPoliciesByID(token string, ids ...string) ([]models.Policy, error)

type ExternalPolicyClient added in v0.3.0

type ExternalPolicyClient interface {
	GetPolicies(token string) ([]models.Policy, error)
	GetPoliciesByID(token string, ids ...string) ([]models.Policy, error)
	DeletePolicies(token string, policies []models.Policy) error
	AddPolicies(token string, policies []models.Policy) error
}

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

type JsonClient struct {
	Logger      lager.Logger
	HttpClient  httpClient
	Url         string
	Marshaler   marshal.Marshaler
	Unmarshaler marshal.Unmarshaler
}

func (*JsonClient) Do added in v0.3.0

func (c *JsonClient) Do(method, route string, reqData, respData interface{}, token string) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL