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 ¶
ShowCluster shows a full cluster configuration for a configuration path.
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.
Click to show internal directories.
Click to hide internal directories.