Documentation ¶
Index ¶
- Constants
- Variables
- func Validate(options ...Options) error
- type AdditionalFlag
- type AuthIAMCreds
- type AuthIAMMetadataCredentials
- type AuthIAMToken
- type AuthNone
- type AuthOptions
- type AuthStatic
- type AuthType
- type GRPC
- type MajorMinorPatchVersion
- type Options
- type RawVersion
- type StartedTime
- type TargetingOptions
- type VersionSpec
Constants ¶
View Source
const ( DefaultAuthEnvVar = "YDB_TOKEN" DefaultStaticPasswordEnvVar = "YDB_PASSWORD" DefaultStaticUserEnvVar = "YDB_USER" DefaultServiceAccountKeyFile = "SA_KEY_FILE" DefaultAuthIAMEndpoint = "iam.api.cloud.yandex.net" )
View Source
const ( GRPCDefaultTimeoutSeconds = 60 GRPCDefaultPort = 2135 )
View Source
const (
DefaultMaxStaticNodeID = 50000
)
Variables ¶
View Source
var Auths = map[AuthType]Options{ None: &AuthNone{}, Static: &AuthStatic{}, IamToken: &AuthIAMToken{}, IamCreds: &AuthIAMCreds{}, IamMetadata: &AuthIAMMetadataCredentials{}, }
View Source
var AvailabilityModes = []string{"strong", "weak", "force"}
View Source
var Logger *zap.SugaredLogger
Functions ¶
Types ¶
type AdditionalFlag ¶ added in v0.0.3
AdditionalFlag allows adding extra flags not defined in command
This behavior can be used if some additional parameters are added outside of some Option
TODO(shmel1k@): improve comment
type AuthIAMCreds ¶
func (*AuthIAMCreds) DefineFlags ¶
func (a *AuthIAMCreds) DefineFlags(fs *pflag.FlagSet)
func (*AuthIAMCreds) Validate ¶
func (a *AuthIAMCreds) Validate() error
type AuthIAMMetadataCredentials ¶ added in v0.0.4
type AuthIAMMetadataCredentials struct {
Enabled bool
}
func (*AuthIAMMetadataCredentials) DefineFlags ¶ added in v0.0.4
func (a *AuthIAMMetadataCredentials) DefineFlags(fs *pflag.FlagSet)
func (*AuthIAMMetadataCredentials) Validate ¶ added in v0.0.4
func (a *AuthIAMMetadataCredentials) Validate() error
type AuthIAMToken ¶
func (*AuthIAMToken) DefineFlags ¶
func (a *AuthIAMToken) DefineFlags(fs *pflag.FlagSet)
func (*AuthIAMToken) Validate ¶
func (a *AuthIAMToken) Validate() error
type AuthOptions ¶
func (*AuthOptions) DefineFlags ¶
func (o *AuthOptions) DefineFlags(fs *pflag.FlagSet)
func (*AuthOptions) Validate ¶
func (o *AuthOptions) Validate() error
type AuthStatic ¶
func (*AuthStatic) DefineFlags ¶
func (a *AuthStatic) DefineFlags(fs *pflag.FlagSet)
func (*AuthStatic) Validate ¶
func (a *AuthStatic) Validate() error
type GRPC ¶
type GRPC struct { Endpoint string CaFile string GRPCSecure bool GRPCPort int GRPCSkipVerify bool TimeoutSeconds int }
func (*GRPC) DefineFlags ¶
type MajorMinorPatchVersion ¶ added in v0.0.5
func (MajorMinorPatchVersion) Satisfies ¶ added in v0.0.5
func (v MajorMinorPatchVersion) Satisfies(otherVersion string) (bool, error)
func (MajorMinorPatchVersion) String ¶ added in v0.0.5
func (v MajorMinorPatchVersion) String() string
type RawVersion ¶ added in v0.0.5
func (RawVersion) Satisfies ¶ added in v0.0.5
func (v RawVersion) Satisfies(otherVersion string) (bool, error)
func (RawVersion) String ¶ added in v0.0.5
func (v RawVersion) String() string
type StartedTime ¶
type TargetingOptions ¶ added in v0.0.14
type TargetingOptions struct { AvailabilityMode string Datacenters []string Hosts []string ExcludeHosts []string Version string StartedTime *StartedTime VersionSpec VersionSpec Storage bool Tenant bool TenantList []string KubeconfigPath string K8sNamespace string MaxStaticNodeID int }
func (*TargetingOptions) DefineFlags ¶ added in v0.0.14
func (o *TargetingOptions) DefineFlags(fs *pflag.FlagSet)
func (*TargetingOptions) GetAvailabilityMode ¶ added in v0.0.14
func (o *TargetingOptions) GetAvailabilityMode() Ydb_Maintenance.AvailabilityMode
func (*TargetingOptions) Validate ¶ added in v0.0.14
func (o *TargetingOptions) Validate() error
Click to show internal directories.
Click to hide internal directories.