config

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2026 License: EPL-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CertCommandLong

func CertCommandLong() string

CertCommandLong returns help for config cert.

func CommandExamples

func CommandExamples() string

CommandExamples returns config command examples for Cobra.

func CommandLong

func CommandLong() string

CommandLong returns the config command introduction shown before Cobra flags.

func HasRejections

func HasRejections(data map[string]any) bool

HasRejections reports whether a config PATCH response includes rejected keys.

func Patch

func Patch(client run.EdgeletAPIClient, setMap map[string]any) (human string, data map[string]any, err error)

Patch GETs current config, PATCHes keys, and formats the mutation output.

Types

type CertResult

type CertResult struct {
	Human string
	Data  map[string]any
}

CertResult carries controller cert install outcome.

func ApplyCert

func ApplyCert(client run.EdgeletAPIClient, base64Cert string) (*CertResult, error)

ApplyCert decodes and installs a base64-encoded controller certificate.

type FlagSet

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

FlagSet registers and collects config patch flags for the config command.

func NewFlagSet

func NewFlagSet() *FlagSet

NewFlagSet builds flag bindings from configKeyRules.

func (*FlagSet) Collect

func (fs *FlagSet) Collect(flags *pflag.FlagSet) (map[string]any, error)

Collect reads changed flags into a validated set map.

func (*FlagSet) Register

func (fs *FlagSet) Register(cmd *cobra.Command)

Register adds long and short alias flags to cmd.

type Result

type Result struct {
	Human string
	Data  map[string]any
}

Result carries config patch outcome.

func ApplySetMap

func ApplySetMap(client run.EdgeletAPIClient, setMap map[string]any) (*Result, error)

ApplySetMap validates and PATCHes the provided config keys.

type SwitchResult

type SwitchResult struct {
	Human string
	Data  map[string]any
}

SwitchResult carries profile switch outcome.

func SwitchProfile

func SwitchProfile(client run.EdgeletAPIClient, profile string) (*SwitchResult, error)

SwitchProfile validates and switches the active configuration profile.

Jump to

Keyboard shortcuts

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