log

package
v0.7.6 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2026 License: MIT Imports: 14 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 JSONOutputItem

type JSONOutputItem struct {
	Version  int64  `json:"version"`
	Type     string `json:"type"`
	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
	MaxValueLength int
}

Options holds the options for the log command.

type Runner

type Runner struct {
	UseCase *param.LogUseCase
	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