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 ¶
- func Command() *cli.Command
- func CreateCommand() *cli.Command
- func DeleteCommand() *cli.Command
- func DiffCommand() *cli.Command
- func ListCommand() *cli.Command
- func LogCommand() *cli.Command
- func NewDiffPresenter(reader provider.Reader, spec1, spec2 *azureappconfigversion.Spec) genericdiff.Presenter
- func NewLogPresenter(reader provider.Reader, req genericlog.Request) genericlog.Presenter
- func NewShowPresenter(reader provider.Reader, spec *azureappconfigversion.Spec) genericshow.Presenter
- func ShowCommand() *cli.Command
- func TagCommand() *cli.Command
- func UntagCommand() *cli.Command
- func UpdateCommand() *cli.Command
- type CreateOptions
- type CreateRunner
- type DeleteOptions
- type DeleteRunner
- type UpdateOptions
- type UpdateRunner
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateCommand ¶
CreateCommand returns the Azure App Configuration create command.
func DeleteCommand ¶
DeleteCommand returns the Azure App Configuration delete command.
func DiffCommand ¶
DiffCommand returns the Azure App Configuration diff command.
func ListCommand ¶
ListCommand returns the Azure App Configuration list command.
func LogCommand ¶
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 ¶
ShowCommand returns the Azure App Configuration show command.
func TagCommand ¶
TagCommand returns the Azure App Configuration tag command.
func UntagCommand ¶
UntagCommand returns the Azure App Configuration untag command.
func UpdateCommand ¶
UpdateCommand returns the Azure App Configuration update command.
Types ¶
type CreateOptions ¶
CreateOptions holds the options for the create command.
type CreateRunner ¶
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 ¶
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 ¶
UpdateOptions holds the options for the update command.
type UpdateRunner ¶
UpdateRunner executes the update command.
func (*UpdateRunner) Run ¶
func (r *UpdateRunner) Run(ctx context.Context, opts UpdateOptions) error
Run executes the update command.