phpapi

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2020 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewPHPAPI

func NewPHPAPI(apitoken string) (datastore.Datastore, error)

Types

type PHPAPI

type PHPAPI struct {
	sync.Mutex
	Proto    string
	Server   string
	APIToken string
}

func (*PHPAPI) GetCluster

func (p *PHPAPI) GetCluster(clusterID string) (*types.SubmarinerCluster, error)

func (*PHPAPI) GetClusters

func (p *PHPAPI) GetClusters(colorCodes []string) ([]types.SubmarinerCluster, error)

func (*PHPAPI) GetEndpoints

func (p *PHPAPI) GetEndpoints(clusterID string) ([]types.SubmarinerEndpoint, error)

func (*PHPAPI) RemoveEndpoint

func (p *PHPAPI) RemoveEndpoint(clusterID, cableName string) error

func (*PHPAPI) SetCluster

func (p *PHPAPI) SetCluster(cluster *types.SubmarinerCluster) error

func (*PHPAPI) SetEndpoint

func (p *PHPAPI) SetEndpoint(endpoint *types.SubmarinerEndpoint) error

func (*PHPAPI) WatchClusters

func (p *PHPAPI) WatchClusters(ctx context.Context, selfClusterID string, colorCodes []string, onChange datastore.OnClusterChange) error

func (*PHPAPI) WatchEndpoints

func (p *PHPAPI) WatchEndpoints(ctx context.Context, selfClusterID string, colorCodes []string, onChange datastore.OnEndpointChange) error

type Specification added in v0.0.2

type Specification struct {
	Proto  string
	Server string
}

Jump to

Keyboard shortcuts

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