storageconfiguration

package
v0.0.0-...-dbfc090 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2025 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewFullStorageConfigFormat

func NewFullStorageConfigFormat(source string) formatter.Format

NewFullStorageConfigFormat for formatting output

func NewStorageConfigFormat

func NewStorageConfigFormat(source string) formatter.Format

NewStorageConfigFormat for formatting output

func Write

func Write(ctx formatter.Context, storageConfigs []ybaclient.CustomerConfigUI) error

Write renders the context for a list of StorageConfigs

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) AzSASToken

func (c *Context) AzSASToken() string

AzSASToken of the storage config

func (*Context) BackupLocation

func (c *Context) BackupLocation() string

BackupLocation of the storageConfig

func (*Context) Code

func (c *Context) Code() string

Code fetches StorageConfig Code

func (*Context) GcsCredentials

func (c *Context) GcsCredentials() string

GcsCredentials of the storage config

func (*Context) IAMInstanceProfile

func (c *Context) IAMInstanceProfile() string

IAMInstanceProfile of the storage config

func (*Context) MarshalJSON

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

MarshalJSON function

func (*Context) Name

func (c *Context) Name() string

Name fetches StorageConfig Name

func (*Context) S3AccessKeyID

func (c *Context) S3AccessKeyID() string

S3AccessKeyID of the storage config

func (*Context) S3SecretAccessKey

func (c *Context) S3SecretAccessKey() string

S3SecretAccessKey of the storage config

func (*Context) Status

func (c *Context) Status() string

Status fetches the storageConfig usability state

func (*Context) UUID

func (c *Context) UUID() string

UUID fetches StorageConfig UUID

func (*Context) UseGCPIAM

func (c *Context) UseGCPIAM() string

UseGCPIAM 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

Jump to

Keyboard shortcuts

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