cmd

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2023 License: BSD-2-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PublishCluster

func PublishCluster(publishCtx PublishCtx, path, instance string) error

PublishCluster publishes a configuration to the configuration path.

func PublishEtcd

func PublishEtcd(publishCtx PublishCtx, uri *url.URL) error

PublishEtcd publishes a configuration to etcd.

func ShowCluster

func ShowCluster(showCtx ShowCtx, path, name string) error

ShowCluster shows a full cluster configuration for a configuration path.

func ShowEtcd

func ShowEtcd(showCtx ShowCtx, uri *url.URL) error

ShowEtcd shows a configuration from etcd.

Types

type PublishCtx

type PublishCtx struct {
	// Force defines whether the publish should be forced and a validation step
	// is omitted.
	Force bool
	// Src is a raw data to publish.
	Src []byte
	// Config is a parsed raw data configuration to publish.
	Config *cluster.Config
}

PublishCtx contains information abould cluster publish command execution context.

type ShowCtx

type ShowCtx struct {
	// Validate defines whether the command will check the showed
	// configuration.
	Validate bool
}

ShowCtx contains information about cluster show command execution context.

Jump to

Keyboard shortcuts

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