Documentation
¶
Index ¶
- func NewFullStorageConfigFormat(source string) formatter.Format
- func NewStorageConfigFormat(source string) formatter.Format
- func Write(ctx formatter.Context, storageConfigs []ybaclient.CustomerConfigUI) error
- type Context
- func (c *Context) AzSASToken() string
- func (c *Context) BackupLocation() string
- func (c *Context) Code() string
- func (c *Context) GcsCredentials() string
- func (c *Context) IAMInstanceProfile() string
- func (c *Context) MarshalJSON() ([]byte, error)
- func (c *Context) Name() string
- func (c *Context) S3AccessKeyID() string
- func (c *Context) S3SecretAccessKey() string
- func (c *Context) Status() string
- func (c *Context) UUID() string
- func (c *Context) UseGCPIAM() string
- type FullStorageConfigContext
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewFullStorageConfigFormat ¶
NewFullStorageConfigFormat for formatting output
func NewStorageConfigFormat ¶
NewStorageConfigFormat for formatting output
Types ¶
type Context ¶
type Context struct { formatter.HeaderContext formatter.Context // contains filtered or unexported fields }
Context for storageConfig outputs
func NewStorageConfigContext ¶
func NewStorageConfigContext() *Context
NewStorageConfigContext creates a new context for rendering storageConfig
func (*Context) BackupLocation ¶
BackupLocation of the storageConfig
func (*Context) GcsCredentials ¶
GcsCredentials of the storage config
func (*Context) IAMInstanceProfile ¶
IAMInstanceProfile of the storage config
func (*Context) S3AccessKeyID ¶
S3AccessKeyID of the storage config
func (*Context) S3SecretAccessKey ¶
S3SecretAccessKey of the storage config
type FullStorageConfigContext ¶
type FullStorageConfigContext struct { formatter.HeaderContext formatter.Context // contains filtered or unexported fields }
FullStorageConfigContext to render StorageConfig Details output
func NewFullStorageConfigContext ¶
func NewFullStorageConfigContext() *FullStorageConfigContext
NewFullStorageConfigContext creates a new context for rendering storageConfig
func (*FullStorageConfigContext) MarshalJSON ¶
func (fs *FullStorageConfigContext) MarshalJSON() ([]byte, error)
MarshalJSON function
func (*FullStorageConfigContext) SetFullStorageConfig ¶
func (fs *FullStorageConfigContext) SetFullStorageConfig(storageConfig ybaclient.CustomerConfigUI)
SetFullStorageConfig initializes the context with the storageConfig data
func (*FullStorageConfigContext) Write ¶
func (fs *FullStorageConfigContext) Write() error
Write populates the output table to be displayed in the command line