log

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 2, 2026 License: MIT Imports: 15 Imported by: 0

Documentation

Overview

Package log provides the SSM Parameter Store log command for viewing parameter version history.

The log command displays version history with optional patch/diff output, similar to git log. Use -p/--patch to show differences between consecutive versions.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Command

func Command() *cli.Command

Command returns the log command.

Types

type Client

type Client interface {
	paramapi.GetParameterHistoryAPI
}

Client is the interface for the log command.

type JSONOutputItem

type JSONOutputItem struct {
	Version   int64  `json:"version"`
	Type      string `json:"type"`
	Decrypted *bool  `json:"decrypted,omitempty"` // Only for SecureString
	Modified  string `json:"modified,omitempty"`
	Value     string `json:"value"`
}

JSONOutputItem represents a single version entry in JSON output.

type Options

type Options struct {
	Name       string
	MaxResults int32
	ShowPatch  bool
	ParseJSON  bool
	Reverse    bool
	NoPager    bool
	Oneline    bool
	Since      *time.Time
	Until      *time.Time
	Output     output.Format
}

Options holds the options for the log command.

type Runner

type Runner struct {
	Client Client
	Stdout io.Writer
	Stderr io.Writer
}

Runner executes the log command.

func (*Runner) Run

func (r *Runner) Run(ctx context.Context, opts Options) error

Run executes the log command.

Jump to

Keyboard shortcuts

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