eitdownloadclient

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: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewEITDownloadClientFormat

func NewEITDownloadClientFormat(source string) formatter.Format

NewEITDownloadClientFormat for formatting output

func NewFullEITDownloadClientFormat

func NewFullEITDownloadClientFormat(source string) formatter.Format

NewFullEITDownloadClientFormat for formatting output

func Write

func Write(ctx formatter.Context, eitDownloadClients []ybaclient.CertificateDetails) error

Write renders the context for a list of EITs

Types

type Context

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

Context for eit config outputs

func NewEITDownloadClientContext

func NewEITDownloadClientContext() *Context

NewEITDownloadClientContext creates a new context for rendering eit

func (*Context) MarshalJSON

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

MarshalJSON function

func (*Context) YugabytedbCrt

func (c *Context) YugabytedbCrt() string

YugabytedbCrt function

func (*Context) YugabytedbKey

func (c *Context) YugabytedbKey() string

YugabytedbKey function

type FullEITDownloadClientContext

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

FullEITDownloadClientContext to render EITDownloadClient Details output

func NewFullEITDownloadClientContext

func NewFullEITDownloadClientContext() *FullEITDownloadClientContext

NewFullEITDownloadClientContext creates a new context for rendering eit

func (*FullEITDownloadClientContext) MarshalJSON

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

MarshalJSON function

func (*FullEITDownloadClientContext) SetFullEITDownloadClient

func (feit *FullEITDownloadClientContext) SetFullEITDownloadClient(
	eit ybaclient.CertificateDetails,
)

SetFullEITDownloadClient initializes the context with the eit data

func (*FullEITDownloadClientContext) Write

func (feit *FullEITDownloadClientContext) 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