enterpriseclient

package
v0.22.0 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2020 License: MIT Imports: 14 Imported by: 0

Documentation

Index

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 New

func New(privateKeyContents []byte) *HTTPClient

New returns a new HTTP client.

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

Jump to

Keyboard shortcuts

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