Documentation
¶
Index ¶
- Constants
- Variables
- func GetDCNamesCmd() string
- func GetLogNamesCmd() string
- func GetNamespaceNamesCmd() string
- func GetSetNamesCmd() string
- func GetSindexNamesCmd() string
- func GetTLSNamesCmd() string
- func ParseDCNames(m map[string]string) []string
- func ParseIntoMap(str, del, sep string) lib.Stats
- func ParseLogNames(m map[string]string) []string
- func ParseNamespaceNames(m map[string]string) []string
- func ParseSetNames(m map[string]string, ns string) []string
- func ParseSindexNames(m map[string]string, ns string) []string
- func ParseTLSNames(m map[string]string) []string
- type AsInfo
- func (info *AsInfo) AllConfigs() (lib.Stats, error)
- func (info *AsInfo) Close() error
- func (info *AsInfo) GetAsConfig(contextList ...string) (lib.Stats, error)
- func (info *AsInfo) GetAsInfo(cmdList ...string) (NodeAsStats, error)
- func (info *AsInfo) RequestInfo(cmd ...string) (result map[string]string, err error)
- type ClusterAsStat
- type Connection
- type ConnectionFactory
- type NodeAsStats
Constants ¶
const ( ConstStat = "statistics" // stat ConstConfigs = "configs" // configs ConstLatencies = "latencies" // latencies ConstMetadata = "metadata" // metadata )
ASInfo top level map keys
const ( ConfigServiceContext = "service" ConfigNetworkContext = "network" ConfigNamespaceContext = "namespaces" ConfigSetContext = "sets" ConfigXDRContext = "xdr" ConfigDCContext = "dcs" ConfigSecurityContext = "security" ConfigLoggingContext = "logging" ConfigRacksContext = "racks" )
Aerospike Config Context
const ( MetaBuild = "asd_build" MetaVersion = cmdMetaVersion MetaBuildOS = cmdMetaBuildOS MetaNodeID = cmdMetaNodeID MetaClusterName = cmdMetaClusterName MetaService = cmdMetaService MetaServices = cmdMetaServices MetaServicesAlumni = cmdMetaServicesAlumni MetaServicesAlternate = cmdMetaServicesAlternate MetaFeatures = cmdMetaFeatures MetaEdition = cmdMetaEdition )
Aerospike Metadata Context
const ( ConfigDCNames = "dc_names" ConfigNamespaceNames = "namespace_names" ConfigLogIDs = "log_ids" )
Variables ¶
var ErrConnNotAuthenticated = fmt.Errorf("connection not authenticated")
ErrConnNotAuthenticated specifies that the connection is not authenticated.
var ErrInvalidDC = fmt.Errorf("invalid dc")
ErrInvalidDC specifies that the dc is invalid on the cluster.
var ErrInvalidNamespace = fmt.Errorf("invalid namespace")
ErrInvalidNamespace specifies that the namespace is invalid on the cluster.
Functions ¶
func GetDCNamesCmd ¶
func GetDCNamesCmd() string
GetDCNamesCmd returns the command to get DC namespace
func GetLogNamesCmd ¶
func GetLogNamesCmd() string
GetLogNamesCmd returns the command to get log names
func GetNamespaceNamesCmd ¶
func GetNamespaceNamesCmd() string
GetNamespaceNamesCmd returns the command to get namespace names
func GetSetNamesCmd ¶
func GetSetNamesCmd() string
GetSetNamesCmd returns the command to get set names
func GetSindexNamesCmd ¶
func GetSindexNamesCmd() string
GetSindexNamesCmd returns the command to get sindex names
func GetTLSNamesCmd ¶
func GetTLSNamesCmd() string
GetTLSNamesCmd returns the command to get TLS names
func ParseDCNames ¶
ParseDCNames parses all DC names
func ParseIntoMap ¶
func ParseLogNames ¶
ParseLogNames parses all log names
func ParseNamespaceNames ¶
ParseNamespaceNames parses all namespace names
func ParseSetNames ¶
ParseSetNames parses all set names for namespace
func ParseSindexNames ¶
ParseSindexNames parses all sindex names for namespace
func ParseTLSNames ¶
ParseTLSNames parses all TLS names
Types ¶
type AsInfo ¶
type AsInfo struct {
// contains filtered or unexported fields
}
AsInfo provides info calls on an aerospike cluster.
func NewAsInfoWithConnFactory ¶
func NewAsInfoWithConnFactory( log logr.Logger, h *aero.Host, cp *aero.ClientPolicy, connFact ConnectionFactory, ) *AsInfo
func (*AsInfo) AllConfigs ¶
AllConfigs returns all the dynamic configurations of the node.
The returned map can be converted to asconfig.Conf.
func (*AsInfo) GetAsConfig ¶
GetAsConfig function fetch and parse config data for given context from given host Input: cmdList - Options [service, network, namespace, xdr, dc, security, logging]
type ClusterAsStat ¶
type Connection ¶
type ConnectionFactory ¶
type ConnectionFactory interface {
NewConnection(*aero.ClientPolicy, *aero.Host) (Connection, aero.Error)
}