eitdownloadroot

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewEITDownloadRootFormat

func NewEITDownloadRootFormat(source string) formatter.Format

NewEITDownloadRootFormat for formatting output

func NewFullEITDownloadRootFormat

func NewFullEITDownloadRootFormat(source string) formatter.Format

NewFullEITDownloadRootFormat for formatting output

func Write

func Write(ctx formatter.Context, eitDownloadRoots []map[string]interface{}) 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 NewEITDownloadRootContext

func NewEITDownloadRootContext() *Context

NewEITDownloadRootContext creates a new context for rendering eit

func (*Context) MarshalJSON

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

MarshalJSON function

func (*Context) RootCrt

func (c *Context) RootCrt() string

RootCrt fetches EIT Root Crt

type FullEITDownloadRootContext

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

FullEITDownloadRootContext to render EITDownloadRoot Details output

func NewFullEITDownloadRootContext

func NewFullEITDownloadRootContext() *FullEITDownloadRootContext

NewFullEITDownloadRootContext creates a new context for rendering eit

func (*FullEITDownloadRootContext) MarshalJSON

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

MarshalJSON function

func (*FullEITDownloadRootContext) SetFullEITDownloadRoot

func (feit *FullEITDownloadRootContext) SetFullEITDownloadRoot(eit map[string]interface{})

SetFullEITDownloadRoot initializes the context with the eit data

func (*FullEITDownloadRootContext) Write

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