eit

package
v0.0.0-...-63c62f7 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2025 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewAssociatedUniverseFormat

func NewAssociatedUniverseFormat(source string) formatter.Format

NewAssociatedUniverseFormat for formatting output

func NewEITFormat

func NewEITFormat(source string) formatter.Format

NewEITFormat for formatting output

func NewFullEITFormat

func NewFullEITFormat(source string) formatter.Format

NewFullEITFormat for formatting output

func Write

Write renders the context for a list of EITs

Types

type AssociatedUniverseContext

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

AssociatedUniverseContext for associatedUni outputs

func NewAssociatedUniverseContext

func NewAssociatedUniverseContext() *AssociatedUniverseContext

NewAssociatedUniverseContext creates a new context for rendering associatedUniverses

func (*AssociatedUniverseContext) MarshalJSON

func (u *AssociatedUniverseContext) MarshalJSON() ([]byte, error)

MarshalJSON function

func (*AssociatedUniverseContext) Name

Name fetches AssociatedUniverse Name

func (*AssociatedUniverseContext) SetAssociatedUniverse

func (u *AssociatedUniverseContext) SetAssociatedUniverse(
	associatedUni ybaclient.UniverseDetailSubset,
)

SetAssociatedUniverse initializes the context with the associatedUni data

func (*AssociatedUniverseContext) State

func (u *AssociatedUniverseContext) State() string

State fetches AssociatedUniverse State

func (*AssociatedUniverseContext) UUID

UUID fetches AssociatedUniverse UUID

func (*AssociatedUniverseContext) Write

func (u *AssociatedUniverseContext) Write(index int) error

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

type Context

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

Context for eit config outputs

func NewEITContext

func NewEITContext() *Context

NewEITContext creates a new context for rendering eit

func (*Context) CertType

func (c *Context) CertType() string

CertType fetches EIT Certificate Type

func (*Context) Certificate

func (c *Context) Certificate() string

Certificate fetches EIT Certificate

func (*Context) CreationDate

func (c *Context) CreationDate() string

CreationDate fetches EIT Creation Date

func (*Context) ExpirationDate

func (c *Context) ExpirationDate() string

ExpirationDate fetches EIT Expiration Date

func (*Context) InUse

func (c *Context) InUse() string

InUse fetches EIT In Use

func (*Context) MarshalJSON

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

MarshalJSON function

func (*Context) Name

func (c *Context) Name() string

Name fetches EIT Name

func (*Context) PrivateKey

func (c *Context) PrivateKey() string

PrivateKey fetches EIT Private Key

func (*Context) UUID

func (c *Context) UUID() string

UUID fetches EIT UUID

type FullEITContext

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

FullEITContext to render EIT Details output

func NewFullEITContext

func NewFullEITContext() *FullEITContext

NewFullEITContext creates a new context for rendering eit

func (*FullEITContext) MarshalJSON

func (feit *FullEITContext) MarshalJSON() ([]byte, error)

MarshalJSON function

func (*FullEITContext) SetFullEIT

func (feit *FullEITContext) SetFullEIT(eit ybaclient.CertificateInfoExt)

SetFullEIT initializes the context with the eit data

func (*FullEITContext) Write

func (feit *FullEITContext) Write() error

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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