client

package
v0.1.11 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2018 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Core

type Core interface {
	Policy() Policy
	Endpoints() Endpoints
	Revision() Revision
	State() State
	User() User
	Version() Version
}

Core is the Core API client interface

type Endpoints

type Endpoints interface {
	Show() (*api.Endpoints, error)
}

Endpoints is the interface for getting info about endpoints

type Policy

type Policy interface {
	Show(gen runtime.Generation) (*engine.PolicyData, error)
	Apply([]runtime.Object) (*api.PolicyUpdateResult, error)
	Delete([]runtime.Object) (*api.PolicyUpdateResult, error)
}

Policy is the interface for managing Policy

type Revision

type Revision interface {
	Show(gen runtime.Generation) (*engine.Revision, error)
	ShowByPolicy(policyGen runtime.Generation) (*engine.Revision, error)
}

Revision is the interface for getting Revisions

type State added in v0.1.8

type State interface {
	Reset() (*engine.Revision, error)
}

State is the interface for resetting Actual State

type User added in v0.1.8

type User interface {
	Login(username, password string) (*api.AuthSuccess, error)
}

User is the interface for auth and user management

type Version

type Version interface {
	Show() (*version.BuildInfo, error)
}

Version is the interface for getting current server version

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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