juju: github.com/juju/juju/apiserver/facades/agent/machine Index | Files

package machine

import "github.com/juju/juju/apiserver/facades/agent/machine"

The machiner package implements the API interface used by the machiner worker.

Index

Package Files

machiner.go

type MachinerAPI Uses

type MachinerAPI struct {
    *common.LifeGetter
    *common.StatusSetter
    *common.DeadEnsurer
    *common.AgentEntityWatcher
    *common.APIAddresser
    *networkingcommon.NetworkConfigAPI
    // contains filtered or unexported fields
}

MachinerAPI implements the API used by the machiner worker.

func NewMachinerAPI Uses

func NewMachinerAPI(st *state.State, resources facade.Resources, authorizer facade.Authorizer) (*MachinerAPI, error)

NewMachinerAPI creates a new instance of the V2 Machiner API.

func (*MachinerAPI) Jobs Uses

func (api *MachinerAPI) Jobs(args params.Entities) (params.JobsResults, error)

Jobs returns the jobs assigned to the given entities.

func (*MachinerAPI) RecordAgentStartTime Uses

func (api *MachinerAPI) RecordAgentStartTime(args params.Entities) (params.ErrorResults, error)

RecordAgentStartTime updates the agent start time field in the machine doc.

func (*MachinerAPI) SetMachineAddresses Uses

func (api *MachinerAPI) SetMachineAddresses(args params.SetMachinesAddresses) (params.ErrorResults, error)

type MachinerAPIV1 Uses

type MachinerAPIV1 struct {
    *MachinerAPI
}

MachinerAPIV1 implements the V1 API used by the machiner worker. Compared to V2, it lacks the RecordAgentStartTime method.

func NewMachinerAPIV1 Uses

func NewMachinerAPIV1(st *state.State, resources facade.Resources, authorizer facade.Authorizer) (*MachinerAPIV1, error)

NewMachinerAPIV1 creates a new instance of the V1 Machiner API.

func (*MachinerAPIV1) RecordAgentStartTime Uses

func (api *MachinerAPIV1) RecordAgentStartTime(_, _ struct{})

RecordAgentStartTime is not available in V1.

Package machine imports 8 packages (graph) and is imported by 4 packages. Updated 2020-01-15. Refresh now. Tools for package owners.