Documentation ¶
Index ¶
- Variables
- func NewClusterFormat(source string) formatter.Format
- func NewFullUniverseFormat(source string) formatter.Format
- func NewNodesFormat(source string) formatter.Format
- func NewRegionFormat(source string) formatter.Format
- func NewUniverseFormat(source string) formatter.Format
- func NewZoneFormat(source string) formatter.Format
- func NodeWrite(ctx formatter.Context, nodes []ybaclient.NodeDetailsResp) error
- func Write(ctx formatter.Context, universes []ybaclient.UniverseResp) error
- type ClusterContext
- func (c *ClusterContext) ClusterDedicatedMasters() string
- func (c *ClusterContext) ClusterNodes() string
- func (c *ClusterContext) ClusterRF() string
- func (c *ClusterContext) DiskIops() string
- func (c *ClusterContext) InstanceType() string
- func (c *ClusterContext) LinuxVersion() string
- func (c *ClusterContext) MarshalJSON() ([]byte, error)
- func (c *ClusterContext) MasterDiskIops() string
- func (c *ClusterContext) MasterGFlags() string
- func (c *ClusterContext) MasterInstanceType() string
- func (c *ClusterContext) MasterNumVolumes() string
- func (c *ClusterContext) MasterStorageClass() string
- func (c *ClusterContext) MasterStorageType() string
- func (c *ClusterContext) MasterThroughput() string
- func (c *ClusterContext) MasterVolumeSize() string
- func (c *ClusterContext) NumVolumes() string
- func (c *ClusterContext) SetCluster(cluster ybaclient.Cluster)
- func (c *ClusterContext) SpecificGFlags() string
- func (c *ClusterContext) StorageClass() string
- func (c *ClusterContext) StorageType() string
- func (c *ClusterContext) TServerGFlags() string
- func (c *ClusterContext) Throughput() string
- func (c *ClusterContext) UUID() string
- func (c *ClusterContext) UserTags() string
- func (c *ClusterContext) VolumeSize() string
- func (c *ClusterContext) Write(index int) error
- type Context
- func (c *Context) AZOverrides() string
- func (c *Context) AccessKey() string
- func (c *Context) CPUArchitecture() string
- func (c *Context) CtoNCert() string
- func (c *Context) CtoNTLS() string
- func (c *Context) DedicatedMasters() string
- func (c *Context) EnableYCQL() string
- func (c *Context) EnableYSQL() string
- func (c *Context) EncryptionRestType() string
- func (c *Context) KMSConfig() string
- func (c *Context) KMSEnabled() string
- func (c *Context) LiveNodes() string
- func (c *Context) MarshalJSON() ([]byte, error)
- func (c *Context) Name() string
- func (c *Context) Nodes() string
- func (c *Context) NtoNCert() string
- func (c *Context) NtoNTLS() string
- func (c *Context) NumMasters() string
- func (c *Context) NumTservers() string
- func (c *Context) PricePerDay() string
- func (c *Context) ProviderCode() string
- func (c *Context) ProviderUUID() string
- func (c *Context) RF() string
- func (c *Context) State() string
- func (c *Context) UUID() string
- func (c *Context) UniverseOverrides() string
- func (c *Context) UseSystemd() string
- func (c *Context) Version() string
- func (c *Context) YCQLAuthEnabled() string
- func (c *Context) YSQLAuthEnabled() string
- type FullUniverseContext
- type NodeContext
- func (c *NodeContext) IP() string
- func (c *NodeContext) IsMaster() string
- func (c *NodeContext) IsTserver() string
- func (c *NodeContext) MarshalJSON() ([]byte, error)
- func (c *NodeContext) MasterState() string
- func (c *NodeContext) NodeName() string
- func (c *NodeContext) NodeUUID() string
- func (c *NodeContext) State() string
- type RegionContext
- func (r *RegionContext) Code() string
- func (r *RegionContext) LoadBalancerFQDN() string
- func (r *RegionContext) MarshalJSON() ([]byte, error)
- func (r *RegionContext) Name() string
- func (r *RegionContext) SetRegion(region ybaclient.PlacementRegion)
- func (r *RegionContext) UUID() string
- func (r *RegionContext) Write(index int) error
- type ZoneContext
- func (z *ZoneContext) AzNumNodes() string
- func (z *ZoneContext) AzRF() string
- func (z *ZoneContext) MarshalJSON() ([]byte, error)
- func (z *ZoneContext) Name() string
- func (z *ZoneContext) SetZone(zone ybaclient.PlacementAZ)
- func (z *ZoneContext) Subnet() string
- func (z *ZoneContext) UUID() string
- func (z *ZoneContext) Write(index int) error
Constants ¶
This section is empty.
Variables ¶
var Certificates []ybaclient.CertificateInfoExt
Certificates hold certificates declared under the current customer
var KMSConfigs []util.KMSConfig
KMSConfigs hold kms configs declared under the current customer
var Providers []ybaclient.Provider
Providers hold providers declared under the current customer
Functions ¶
func NewClusterFormat ¶
NewClusterFormat for formatting output
func NewFullUniverseFormat ¶
NewFullUniverseFormat for formatting output
func NewNodesFormat ¶
NewNodesFormat for formatting output
func NewRegionFormat ¶
NewRegionFormat for formatting output
func NewUniverseFormat ¶
NewUniverseFormat for formatting output
func NewZoneFormat ¶
NewZoneFormat for formatting output
Types ¶
type ClusterContext ¶
type ClusterContext struct { formatter.HeaderContext formatter.Context // contains filtered or unexported fields }
ClusterContext for cluster outputs
func NewClusterContext ¶
func NewClusterContext() *ClusterContext
NewClusterContext creates a new context for rendering clusters
func (*ClusterContext) ClusterDedicatedMasters ¶
func (c *ClusterContext) ClusterDedicatedMasters() string
ClusterDedicatedMasters fetches boolean
func (*ClusterContext) ClusterNodes ¶
func (c *ClusterContext) ClusterNodes() string
ClusterNodes fetches num of nodes in the cluster
func (*ClusterContext) ClusterRF ¶
func (c *ClusterContext) ClusterRF() string
ClusterRF fetches replication factor of the cluster
func (*ClusterContext) DiskIops ¶
func (c *ClusterContext) DiskIops() string
DiskIops fetches DiskIops
func (*ClusterContext) InstanceType ¶
func (c *ClusterContext) InstanceType() string
InstanceType fetches instance type
func (*ClusterContext) LinuxVersion ¶
func (c *ClusterContext) LinuxVersion() string
LinuxVersion fetches linux version
func (*ClusterContext) MarshalJSON ¶
func (c *ClusterContext) MarshalJSON() ([]byte, error)
MarshalJSON function
func (*ClusterContext) MasterDiskIops ¶
func (c *ClusterContext) MasterDiskIops() string
MasterDiskIops fetches num vols
func (*ClusterContext) MasterGFlags ¶
func (c *ClusterContext) MasterGFlags() string
MasterGFlags fetches map as string
func (*ClusterContext) MasterInstanceType ¶
func (c *ClusterContext) MasterInstanceType() string
MasterInstanceType fetches instance type
func (*ClusterContext) MasterNumVolumes ¶
func (c *ClusterContext) MasterNumVolumes() string
MasterNumVolumes fetches num vols
func (*ClusterContext) MasterStorageClass ¶
func (c *ClusterContext) MasterStorageClass() string
MasterStorageClass fetches StorageClass
func (*ClusterContext) MasterStorageType ¶
func (c *ClusterContext) MasterStorageType() string
MasterStorageType fetches StorageType
func (*ClusterContext) MasterThroughput ¶
func (c *ClusterContext) MasterThroughput() string
MasterThroughput fetches throughput
func (*ClusterContext) MasterVolumeSize ¶
func (c *ClusterContext) MasterVolumeSize() string
MasterVolumeSize fetches vol size
func (*ClusterContext) NumVolumes ¶
func (c *ClusterContext) NumVolumes() string
NumVolumes fetches no vols
func (*ClusterContext) SetCluster ¶
func (c *ClusterContext) SetCluster(cluster ybaclient.Cluster)
SetCluster initializes the context with the cluster data
func (*ClusterContext) SpecificGFlags ¶
func (c *ClusterContext) SpecificGFlags() string
SpecificGFlags for formatting output
func (*ClusterContext) StorageClass ¶
func (c *ClusterContext) StorageClass() string
StorageClass fetches StorageClass
func (*ClusterContext) StorageType ¶
func (c *ClusterContext) StorageType() string
StorageType fetches StorageType
func (*ClusterContext) TServerGFlags ¶
func (c *ClusterContext) TServerGFlags() string
TServerGFlags fetches map as string
func (*ClusterContext) Throughput ¶
func (c *ClusterContext) Throughput() string
Throughput fetches Throughput
func (*ClusterContext) UserTags ¶
func (c *ClusterContext) UserTags() string
UserTags fetches map as string
func (*ClusterContext) VolumeSize ¶
func (c *ClusterContext) VolumeSize() string
VolumeSize fetches vol size
func (*ClusterContext) Write ¶
func (c *ClusterContext) 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 universe outputs
func NewUniverseContext ¶
func NewUniverseContext() *Context
NewUniverseContext creates a new context for rendering universe
func (*Context) AZOverrides ¶
AZOverrides for kubernetes universes
func (*Context) CPUArchitecture ¶
CPUArchitecture fetches CPU architecture of the universe
func (*Context) DedicatedMasters ¶
DedicatedMasters fetches if master is placed on a dedicated node
func (*Context) EnableYCQL ¶
EnableYCQL fetches if ycql is enabled
func (*Context) EnableYSQL ¶
EnableYSQL fetches if ysql is enabled
func (*Context) EncryptionRestType ¶
EncryptionRestType fetches type of encrytipn key
func (*Context) KMSEnabled ¶
KMSEnabled fetches if KMS is enabled or not
func (*Context) NumMasters ¶
NumMasters prints number of masters in given universe
func (*Context) NumTservers ¶
NumTservers prints number of tservers in given universe
func (*Context) PricePerDay ¶
PricePerDay fetches the universe instance price per day
func (*Context) ProviderCode ¶
ProviderCode fetches the Cloud provider used in the universe
func (*Context) ProviderUUID ¶
ProviderUUID fetches the Cloud provider used in the universe
func (*Context) UniverseOverrides ¶
UniverseOverrides for kubernetes universes
func (*Context) UseSystemd ¶
UseSystemd fetches the Cloud provider used in the universe
func (*Context) YCQLAuthEnabled ¶
YCQLAuthEnabled fetches password of the primary cluster
func (*Context) YSQLAuthEnabled ¶
YSQLAuthEnabled fetches password of the primary cluster
type FullUniverseContext ¶
type FullUniverseContext struct { formatter.HeaderContext formatter.Context // contains filtered or unexported fields }
FullUniverseContext to render Universe Details output
func NewFullUniverseContext ¶
func NewFullUniverseContext() *FullUniverseContext
NewFullUniverseContext creates a new context for rendering universe
func (*FullUniverseContext) MarshalJSON ¶
func (fu *FullUniverseContext) MarshalJSON() ([]byte, error)
MarshalJSON function
func (*FullUniverseContext) SetFullUniverse ¶
func (fu *FullUniverseContext) SetFullUniverse(universe ybaclient.UniverseResp)
SetFullUniverse initializes the context with the universe data
func (*FullUniverseContext) Write ¶
func (fu *FullUniverseContext) Write() error
Write populates the output table to be displayed in the command line
type NodeContext ¶
type NodeContext struct { formatter.HeaderContext formatter.Context // contains filtered or unexported fields }
NodeContext for node outputs
func NewNodeContext ¶
func NewNodeContext() *NodeContext
NewNodeContext creates a new context for rendering node
func (*NodeContext) IsTserver ¶
func (c *NodeContext) IsTserver() string
IsTserver status of the node
func (*NodeContext) MarshalJSON ¶
func (c *NodeContext) MarshalJSON() ([]byte, error)
MarshalJSON function
func (*NodeContext) MasterState ¶
func (c *NodeContext) MasterState() string
MasterState of the node
type RegionContext ¶
type RegionContext struct { formatter.HeaderContext formatter.Context // contains filtered or unexported fields }
RegionContext for region outputs
func NewRegionContext ¶
func NewRegionContext() *RegionContext
NewRegionContext creates a new context for rendering regions
func (*RegionContext) LoadBalancerFQDN ¶
func (r *RegionContext) LoadBalancerFQDN() string
LoadBalancerFQDN fetches FQDN
func (*RegionContext) MarshalJSON ¶
func (r *RegionContext) MarshalJSON() ([]byte, error)
MarshalJSON function
func (*RegionContext) SetRegion ¶
func (r *RegionContext) SetRegion(region ybaclient.PlacementRegion)
SetRegion initializes the context with the region data
func (*RegionContext) Write ¶
func (r *RegionContext) Write(index int) error
Write populates the output table to be displayed in the command line
type ZoneContext ¶
type ZoneContext struct { formatter.HeaderContext formatter.Context // contains filtered or unexported fields }
ZoneContext for zone outputs
func NewZoneContext ¶
func NewZoneContext() *ZoneContext
NewZoneContext creates a new context for rendering zones
func (*ZoneContext) AzNumNodes ¶
func (z *ZoneContext) AzNumNodes() string
AzNumNodes fetches number of nodes in AZ
func (*ZoneContext) MarshalJSON ¶
func (z *ZoneContext) MarshalJSON() ([]byte, error)
MarshalJSON function
func (*ZoneContext) SetZone ¶
func (z *ZoneContext) SetZone(zone ybaclient.PlacementAZ)
SetZone initializes the context with the zone data
func (*ZoneContext) Write ¶
func (z *ZoneContext) Write(index int) error
Write populates the output table to be displayed in the command line