provisiond

package module
v0.0.0-...-ed5057c Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2021 License: GPL-2.0 Imports: 17 Imported by: 0

README

provisiond

Overview

'provisiond' is the legacy provisioning daemon for Configd that handles all legacy configuration that is not owned by individual VCI components.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewRPCMap

func NewRPCMap() map[string]interface{}

NewRPCMap - return map of RPCs indexed by DBUS-compatible name

Provisiond owns all RPCs in the default component. As we cannot (and should not) know what these are at compile time, we don't use the standard VCI mechanism of introspection on an RPC object, and instead return a map of functions to call the script for each RPC, indexed using the DBUS-compatible method name (as opposed to YANG name)

Types

type Config

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

Config is the object that holds the current running configuration It provides update, validation and retrieval of the configuration

func NewConfig

func NewConfig(state *State) *Config

func (*Config) Check

func (c *Config) Check(cfg string) error

func (*Config) Get

func (c *Config) Get() string

func (*Config) Set

func (c *Config) Set(cfg string) error

func (*Config) String

func (c *Config) String() string

type Settings

type Settings struct{}

type State

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

State provides access to the state of the spaceteam instance.

func NewState

func NewState() *State

func (*State) Get

func (s *State) Get() *Settings

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

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