Documentation ¶
Index ¶
- func NewAssociatedUniverseFormat(source string) formatter.Format
- func NewEITFormat(source string) formatter.Format
- func NewFullEITFormat(source string) formatter.Format
- func Write(ctx formatter.Context, eits []ybaclient.CertificateInfoExt) error
- type AssociatedUniverseContext
- func (u *AssociatedUniverseContext) MarshalJSON() ([]byte, error)
- func (u *AssociatedUniverseContext) Name() string
- func (u *AssociatedUniverseContext) SetAssociatedUniverse(associatedUni ybaclient.UniverseDetailSubset)
- func (u *AssociatedUniverseContext) State() string
- func (u *AssociatedUniverseContext) UUID() string
- func (u *AssociatedUniverseContext) Write(index int) error
- type Context
- func (c *Context) CertType() string
- func (c *Context) Certificate() string
- func (c *Context) CreationDate() string
- func (c *Context) ExpirationDate() string
- func (c *Context) InUse() string
- func (c *Context) MarshalJSON() ([]byte, error)
- func (c *Context) Name() string
- func (c *Context) PrivateKey() string
- func (c *Context) UUID() string
- type FullEITContext
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewAssociatedUniverseFormat ¶
NewAssociatedUniverseFormat for formatting output
func NewEITFormat ¶
NewEITFormat for formatting output
func NewFullEITFormat ¶
NewFullEITFormat for formatting output
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 ¶
func (u *AssociatedUniverseContext) Name() string
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 ¶
func (u *AssociatedUniverseContext) UUID() string
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) Certificate ¶
Certificate fetches EIT Certificate
func (*Context) CreationDate ¶
CreationDate fetches EIT Creation Date
func (*Context) ExpirationDate ¶
ExpirationDate fetches EIT Expiration Date
func (*Context) PrivateKey ¶
PrivateKey fetches EIT Private Key
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