Documentation ¶
Index ¶
- type API
- type HTTPClient
- func (c *HTTPClient) CreateJob(j *job.Job) error
- func (c *HTTPClient) DestroyJob(name string) error
- func (c *HTTPClient) Job(name string) (*job.Job, error)
- func (c *HTTPClient) Jobs() ([]job.Job, error)
- func (c *HTTPClient) LatestVersion() (*semver.Version, error)
- func (c *HTTPClient) Machines() ([]machine.MachineState, error)
- func (c *HTTPClient) SetJobTargetState(name string, state job.JobState) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type API ¶
type API interface { CreateJob(*job.Job) error CreateSignatureSet(*sign.SignatureSet) error DestroyJob(string) error Job(string) (*job.Job, error) Jobs() ([]job.Job, error) JobSignatureSet(string) (*sign.SignatureSet, error) LatestVersion() (*semver.Version, error) Machines() ([]machine.MachineState, error) SetJobTargetState(string, job.JobState) error }
type HTTPClient ¶
type HTTPClient struct { //NOTE(bcwaldon): This is only necessary until the API interface // is fully implemented by HTTPClient API // contains filtered or unexported fields }
func (*HTTPClient) DestroyJob ¶
func (c *HTTPClient) DestroyJob(name string) error
func (*HTTPClient) LatestVersion ¶
func (c *HTTPClient) LatestVersion() (*semver.Version, error)
NOTE(bcwaldon): This is only temporary until a better version negotiation mechanism is in place
func (*HTTPClient) Machines ¶
func (c *HTTPClient) Machines() ([]machine.MachineState, error)
func (*HTTPClient) SetJobTargetState ¶
func (c *HTTPClient) SetJobTargetState(name string, state job.JobState) error
Click to show internal directories.
Click to hide internal directories.