param

package
v1.4.1 Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2026 License: MIT Imports: 19 Imported by: 0

Documentation

Overview

Package param provides CLI commands for Azure App Configuration, exposed as the "suve azure param <op>" command group.

Azure App Configuration is UNVERSIONED — the abstraction's acid test. Version specifiers (#VERSION, ~SHIFT, :LABEL) are rejected at parse time with a clear error, and "log" reports that version history is unsupported instead of crashing. The group otherwise reuses the generic command scaffolding (show, list, diff, create, update, delete, tag, untag) via App Configuration presenters and the shared internal/usecase/azure use cases.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Command

func Command() *cli.Command

Command returns the "azure param" subcommand group.

func CreateCommand

func CreateCommand() *cli.Command

CreateCommand returns the Azure App Configuration create command.

func DeleteCommand

func DeleteCommand() *cli.Command

DeleteCommand returns the Azure App Configuration delete command.

func DiffCommand

func DiffCommand() *cli.Command

DiffCommand returns the Azure App Configuration diff command.

func ListCommand

func ListCommand() *cli.Command

ListCommand returns the Azure App Configuration list command.

func LogCommand

func LogCommand() *cli.Command

LogCommand returns the Azure App Configuration log command. Because App Configuration is unversioned, running it produces a clear error (it never crashes).

func NewDiffPresenter

func NewDiffPresenter(reader provider.Reader, spec1, spec2 *azureappconfigversion.Spec) genericdiff.Presenter

NewDiffPresenter builds an Azure App Configuration diff presenter over the given reader and specs.

func NewLogPresenter

func NewLogPresenter(reader provider.Reader, req genericlog.Request) genericlog.Presenter

NewLogPresenter builds an Azure App Configuration log presenter over the given reader and request.

func NewShowPresenter

func NewShowPresenter(reader provider.Reader, spec *azureappconfigversion.Spec) genericshow.Presenter

NewShowPresenter builds an Azure App Configuration show presenter over the given reader and spec.

func ShowCommand

func ShowCommand() *cli.Command

ShowCommand returns the Azure App Configuration show command.

func TagCommand

func TagCommand() *cli.Command

TagCommand returns the Azure App Configuration tag command.

func UntagCommand

func UntagCommand() *cli.Command

UntagCommand returns the Azure App Configuration untag command.

func UpdateCommand

func UpdateCommand() *cli.Command

UpdateCommand returns the Azure App Configuration update command.

Types

type CreateOptions

type CreateOptions struct {
	Name  string
	Value string
}

CreateOptions holds the options for the create command.

type CreateRunner

type CreateRunner struct {
	UseCase *azure.CreateUseCase
	Stdout  io.Writer
	Stderr  io.Writer
}

CreateRunner executes the create command.

func (*CreateRunner) Run

func (r *CreateRunner) Run(ctx context.Context, opts CreateOptions) error

Run executes the create command.

type DeleteOptions

type DeleteOptions struct {
	Name string
}

DeleteOptions holds the options for the delete command.

type DeleteRunner

type DeleteRunner struct {
	UseCase *azure.DeleteUseCase
	Stdout  io.Writer
	Stderr  io.Writer
}

DeleteRunner executes the delete command.

func (*DeleteRunner) Run

func (r *DeleteRunner) Run(ctx context.Context, opts DeleteOptions) error

Run executes the delete command.

type UpdateOptions

type UpdateOptions struct {
	Name  string
	Value string
}

UpdateOptions holds the options for the update command.

type UpdateRunner

type UpdateRunner struct {
	UseCase *azure.UpdateUseCase
	Stdout  io.Writer
	Stderr  io.Writer
}

UpdateRunner executes the update command.

func (*UpdateRunner) Run

func (r *UpdateRunner) Run(ctx context.Context, opts UpdateOptions) error

Run executes the update command.

Jump to

Keyboard shortcuts

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