keyupdater

package
v0.0.0-...-8ff1004 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2019 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type State

type State struct {
	// contains filtered or unexported fields
}

State provides access to a worker's view of the state.

func NewState

func NewState(caller base.APICaller) *State

NewState returns a version of the state that provides functionality required by the worker.

func (*State) AuthorisedKeys

func (st *State) AuthorisedKeys(tag names.MachineTag) ([]string, error)

AuthorisedKeys returns the authorised ssh keys for the machine specified by machineTag.

func (*State) WatchAuthorisedKeys

func (st *State) WatchAuthorisedKeys(tag names.MachineTag) (watcher.NotifyWatcher, error)

WatchAuthorisedKeys returns a notify watcher that looks for changes in the authorised ssh keys for the machine specified by machineTag.

Jump to

Keyboard shortcuts

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