Documentation ¶
Index ¶
- type HTTPClient
- func (c HTTPClient) AssignPolicy(policyID string, channelID string) error
- func (c HTTPClient) AuthInit() error
- func (c HTTPClient) CreateChannel(name string, description string) (*enterprisetypes.Channel, error)
- func (c HTTPClient) CreatePolicy(name string, description string, policy string) (*enterprisetypes.Policy, error)
- func (c HTTPClient) ListChannels() ([]*enterprisetypes.Channel, error)
- func (c HTTPClient) ListPolicies() ([]*enterprisetypes.Policy, error)
- func (c HTTPClient) RemovePolicy(id string) error
- func (c HTTPClient) UnassignPolicy(policyID string, channelID string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HTTPClient ¶
type HTTPClient struct {
// contains filtered or unexported fields
}
An HTTPClient communicates with the Replicated Enterprise HTTP API.
func NewHTTPClient ¶
func NewHTTPClient(origin string, privateKeyContents []byte) *HTTPClient
func (HTTPClient) AssignPolicy ¶
func (c HTTPClient) AssignPolicy(policyID string, channelID string) error
func (HTTPClient) AuthInit ¶
func (c HTTPClient) AuthInit() error
func (HTTPClient) CreateChannel ¶
func (c HTTPClient) CreateChannel(name string, description string) (*enterprisetypes.Channel, error)
func (HTTPClient) CreatePolicy ¶
func (c HTTPClient) CreatePolicy(name string, description string, policy string) (*enterprisetypes.Policy, error)
func (HTTPClient) ListChannels ¶
func (c HTTPClient) ListChannels() ([]*enterprisetypes.Channel, error)
func (HTTPClient) ListPolicies ¶
func (c HTTPClient) ListPolicies() ([]*enterprisetypes.Policy, error)
func (HTTPClient) RemovePolicy ¶
func (c HTTPClient) RemovePolicy(id string) error
func (HTTPClient) UnassignPolicy ¶
func (c HTTPClient) UnassignPolicy(policyID string, channelID string) error
Click to show internal directories.
Click to hide internal directories.