control

package
v1.0.9 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	// Configures the permission of caretakerctl to control caretakerd remotely
	// and how to obtain the credentials for it.
	//
	// For details see {@ref github.com/echocat/caretakerd/access.Config}.
	Access access.Config `json:"access" yaml:"access,omitempty"`
}

Description

Defines the access rights of caretakerctl to caretakerd.

func NewConfigFor added in v0.2.0

func NewConfigFor(platform string) Config

NewConfigFor creates a new instance of Config.

func (*Config) UnmarshalYAML added in v1.0.0

func (instance *Config) UnmarshalYAML(unmarshal func(interface{}) error) error

UnmarshalYAML is used until yaml unmarshalling. Do not call this method directly.

func (Config) Validate

func (instance Config) Validate() error

Validate validates the action on this object and returns an error object if there are any.

type Control

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

Control indicates how a remote caretakerctl/control process is able to control the current caretakerd instance.

func NewControl

func NewControl(conf Config, ks *keyStore.KeyStore) (*Control, error)

NewControl creates a new instance of Control with the given config.

func (*Control) Access

func (instance *Control) Access() *access.Access

Access returns the enclosed Access instance.

func (*Control) ConfigObject

func (instance *Control) ConfigObject() interface{}

ConfigObject returns the Config object this control was created with.

Jump to

Keyboard shortcuts

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