ear

package
v0.0.0-...-cb0dfba Latest Latest
Warning

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

Go to latest
Published: Dec 31, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewEARFormat

func NewEARFormat(source string) formatter.Format

NewEARFormat for formatting output

func NewFullEARFormat

func NewFullEARFormat(source string) formatter.Format

NewFullEARFormat for formatting output

func Write

func Write(ctx formatter.Context, ears []util.KMSConfig) error

Write renders the context for a list of EARs

Types

type Context

type Context struct {
	formatter.HeaderContext
	formatter.Context
	// contains filtered or unexported fields
}

Context for ear config outputs

func NewEARContext

func NewEARContext() *Context

NewEARContext creates a new context for rendering ear

func (*Context) InUse

func (c *Context) InUse() string

InUse fetches EAR In Use

func (*Context) KeyProvider

func (c *Context) KeyProvider() string

KeyProvider fetches EAR Key Provider

func (*Context) MarshalJSON

func (c *Context) MarshalJSON() ([]byte, error)

MarshalJSON function

func (*Context) Name

func (c *Context) Name() string

Name fetches EAR Name

func (*Context) UUID

func (c *Context) UUID() string

UUID fetches EAR UUID

type FullEARContext

type FullEARContext struct {
	formatter.HeaderContext
	formatter.Context
	// contains filtered or unexported fields
}

FullEARContext to render EAR Details output

func NewFullEARContext

func NewFullEARContext() *FullEARContext

NewFullEARContext creates a new context for rendering ear

func (*FullEARContext) MarshalJSON

func (fear *FullEARContext) MarshalJSON() ([]byte, error)

MarshalJSON function

func (*FullEARContext) SetFullEAR

func (fear *FullEARContext) SetFullEAR(ear util.KMSConfig)

SetFullEAR initializes the context with the ear data

func (*FullEARContext) Write

func (fear *FullEARContext) Write() error

Write populates the output table to be displayed in the command line

Jump to

Keyboard shortcuts

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