cmd

package
v1.0.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewLocalCommands

func NewLocalCommands() []*cobra.Command

func NewRootCommand

func NewRootCommand() *cobra.Command

func NewStoreCommand

func NewStoreCommand(opts StoreCommandOptions) *cobra.Command

func NewStoreCommands

func NewStoreCommands(opts StoreCommandOptions) []*cobra.Command

Types

type CheckRequest

type CheckRequest struct{}

type CheckResult

type CheckResult struct {
	Message string
}

type LocalStoreClient

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

func NewLocalStoreClient

func NewLocalStoreClient(options LocalStoreOptions) *LocalStoreClient

func (*LocalStoreClient) Check

func (*LocalStoreClient) Snapshot

func (*LocalStoreClient) Source

type LocalStoreOptions

type LocalStoreOptions struct {
	EnvFiles  []string
	SpecFiles []string
}

type SnapshotEnv

type SnapshotEnv struct {
	Name          string
	OriginalValue string
	ResolvedValue string
	Description   string
	Spec          string
	Origin        string
	Status        string
	UpdateTime    string
}

type SnapshotRequest

type SnapshotRequest struct {
	Limit  int
	Reveal bool
	All    bool
}

type SnapshotResult

type SnapshotResult struct {
	Envs []SnapshotEnv
}

type SourceRequest

type SourceRequest struct {
	Export   bool
	Insecure bool
}

type SourceResult

type SourceResult struct {
	Envs []string
}

type StoreCommandOptions

type StoreCommandOptions struct {
	ClientFactory            func(*cobra.Command) (StoreClient, error)
	ConfigureSnapshotCommand func(*cobra.Command)
	ConfigureSourceCommand   func(*cobra.Command)
	ConfigureCheckCommand    func(*cobra.Command)
	Hidden                   bool
	InsecureAllowed          func() bool
}

Jump to

Keyboard shortcuts

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