awsv1

package
v0.0.0-...-d96e350 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2024 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_config_service_aws_v1_aws_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type AWSAccount

type AWSAccount struct {

	// The account alias for this account
	Alias string `protobuf:"bytes,1,opt,name=alias,proto3" json:"alias,omitempty"`
	// The account number for the aws account
	AccountNumber string `protobuf:"bytes,2,opt,name=account_number,json=accountNumber,proto3" json:"account_number,omitempty"`
	// The IAM role to use when performing operations against this account
	// NOTE: The role that Clutch assumes by default must have proper permissions
	// to assume the role below
	IamRole string `protobuf:"bytes,3,opt,name=iam_role,json=iamRole,proto3" json:"iam_role,omitempty"`
	// The list of regions you would like to operate in
	Regions []string `protobuf:"bytes,4,rep,name=regions,proto3" json:"regions,omitempty"`
	// contains filtered or unexported fields
}

func (*AWSAccount) Descriptor deprecated

func (*AWSAccount) Descriptor() ([]byte, []int)

Deprecated: Use AWSAccount.ProtoReflect.Descriptor instead.

func (*AWSAccount) GetAccountNumber

func (x *AWSAccount) GetAccountNumber() string

func (*AWSAccount) GetAlias

func (x *AWSAccount) GetAlias() string

func (*AWSAccount) GetIamRole

func (x *AWSAccount) GetIamRole() string

func (*AWSAccount) GetRegions

func (x *AWSAccount) GetRegions() []string

func (*AWSAccount) ProtoMessage

func (*AWSAccount) ProtoMessage()

func (*AWSAccount) ProtoReflect

func (x *AWSAccount) ProtoReflect() protoreflect.Message

func (*AWSAccount) Reset

func (x *AWSAccount) Reset()

func (*AWSAccount) String

func (x *AWSAccount) String() string

func (*AWSAccount) Validate

func (m *AWSAccount) Validate() error

Validate checks the field values on AWSAccount with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*AWSAccount) ValidateAll

func (m *AWSAccount) ValidateAll() error

ValidateAll checks the field values on AWSAccount with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in AWSAccountMultiError, or nil if none found.

type AWSAccountMultiError

type AWSAccountMultiError []error

AWSAccountMultiError is an error wrapping multiple validation errors returned by AWSAccount.ValidateAll() if the designated constraints aren't met.

func (AWSAccountMultiError) AllErrors

func (m AWSAccountMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (AWSAccountMultiError) Error

func (m AWSAccountMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type AWSAccountValidationError

type AWSAccountValidationError struct {
	// contains filtered or unexported fields
}

AWSAccountValidationError is the validation error returned by AWSAccount.Validate if the designated constraints aren't met.

func (AWSAccountValidationError) Cause

func (e AWSAccountValidationError) Cause() error

Cause function returns cause value.

func (AWSAccountValidationError) Error

Error satisfies the builtin error interface

func (AWSAccountValidationError) ErrorName

func (e AWSAccountValidationError) ErrorName() string

ErrorName returns error name.

func (AWSAccountValidationError) Field

Field function returns field value.

func (AWSAccountValidationError) Key

Key function returns key value.

func (AWSAccountValidationError) Reason

func (e AWSAccountValidationError) Reason() string

Reason function returns reason value.

type ClientConfig

type ClientConfig struct {

	// If not set explicity, retries default to 0
	Retries int32 `protobuf:"varint,1,opt,name=retries,proto3" json:"retries,omitempty"`
	// contains filtered or unexported fields
}

func (*ClientConfig) Descriptor deprecated

func (*ClientConfig) Descriptor() ([]byte, []int)

Deprecated: Use ClientConfig.ProtoReflect.Descriptor instead.

func (*ClientConfig) GetRetries

func (x *ClientConfig) GetRetries() int32

func (*ClientConfig) ProtoMessage

func (*ClientConfig) ProtoMessage()

func (*ClientConfig) ProtoReflect

func (x *ClientConfig) ProtoReflect() protoreflect.Message

func (*ClientConfig) Reset

func (x *ClientConfig) Reset()

func (*ClientConfig) String

func (x *ClientConfig) String() string

func (*ClientConfig) Validate

func (m *ClientConfig) Validate() error

Validate checks the field values on ClientConfig with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*ClientConfig) ValidateAll

func (m *ClientConfig) ValidateAll() error

ValidateAll checks the field values on ClientConfig with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ClientConfigMultiError, or nil if none found.

type ClientConfigMultiError

type ClientConfigMultiError []error

ClientConfigMultiError is an error wrapping multiple validation errors returned by ClientConfig.ValidateAll() if the designated constraints aren't met.

func (ClientConfigMultiError) AllErrors

func (m ClientConfigMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ClientConfigMultiError) Error

func (m ClientConfigMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type ClientConfigValidationError

type ClientConfigValidationError struct {
	// contains filtered or unexported fields
}

ClientConfigValidationError is the validation error returned by ClientConfig.Validate if the designated constraints aren't met.

func (ClientConfigValidationError) Cause

Cause function returns cause value.

func (ClientConfigValidationError) Error

Error satisfies the builtin error interface

func (ClientConfigValidationError) ErrorName

func (e ClientConfigValidationError) ErrorName() string

ErrorName returns error name.

func (ClientConfigValidationError) Field

Field function returns field value.

func (ClientConfigValidationError) Key

Key function returns key value.

func (ClientConfigValidationError) Reason

Reason function returns reason value.

type Config

type Config struct {
	Regions        []string        `protobuf:"bytes,1,rep,name=regions,proto3" json:"regions,omitempty"`
	ClientConfig   *ClientConfig   `protobuf:"bytes,2,opt,name=client_config,json=clientConfig,proto3" json:"client_config,omitempty"`
	DynamodbConfig *DynamodbConfig `protobuf:"bytes,3,opt,name=dynamodb_config,json=dynamodbConfig,proto3" json:"dynamodb_config,omitempty"`
	// The current account alias display name, if this is not set the default will be "default"
	// The account alias display name will be used when resolving resources.
	// EG: if this is set to "production" a resource would be referenced like so
	// "production/us-east-1/my-asg"
	PrimaryAccountAliasDisplayName string `` /* 157-byte string literal not displayed */
	// If you are using an aws configuration file, this overrides the default profile that is loaded.
	// TODO: This is currently not implemented, but was created to prevent confusion between
	// primary_account_alias_display_name
	AwsConfigProfileName string `protobuf:"bytes,5,opt,name=aws_config_profile_name,json=awsConfigProfileName,proto3" json:"aws_config_profile_name,omitempty"`
	// A list of additional accounts you would like clutch to be able to operate in
	AdditionalAccounts []*AWSAccount `protobuf:"bytes,6,rep,name=additional_accounts,json=additionalAccounts,proto3" json:"additional_accounts,omitempty"`
	// contains filtered or unexported fields
}

func (*Config) Descriptor deprecated

func (*Config) Descriptor() ([]byte, []int)

Deprecated: Use Config.ProtoReflect.Descriptor instead.

func (*Config) GetAdditionalAccounts

func (x *Config) GetAdditionalAccounts() []*AWSAccount

func (*Config) GetAwsConfigProfileName

func (x *Config) GetAwsConfigProfileName() string

func (*Config) GetClientConfig

func (x *Config) GetClientConfig() *ClientConfig

func (*Config) GetDynamodbConfig

func (x *Config) GetDynamodbConfig() *DynamodbConfig

func (*Config) GetPrimaryAccountAliasDisplayName

func (x *Config) GetPrimaryAccountAliasDisplayName() string

func (*Config) GetRegions

func (x *Config) GetRegions() []string

func (*Config) ProtoMessage

func (*Config) ProtoMessage()

func (*Config) ProtoReflect

func (x *Config) ProtoReflect() protoreflect.Message

func (*Config) Reset

func (x *Config) Reset()

func (*Config) String

func (x *Config) String() string

func (*Config) Validate

func (m *Config) Validate() error

Validate checks the field values on Config with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*Config) ValidateAll

func (m *Config) ValidateAll() error

ValidateAll checks the field values on Config with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ConfigMultiError, or nil if none found.

type ConfigMultiError

type ConfigMultiError []error

ConfigMultiError is an error wrapping multiple validation errors returned by Config.ValidateAll() if the designated constraints aren't met.

func (ConfigMultiError) AllErrors

func (m ConfigMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ConfigMultiError) Error

func (m ConfigMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type ConfigValidationError

type ConfigValidationError struct {
	// contains filtered or unexported fields
}

ConfigValidationError is the validation error returned by Config.Validate if the designated constraints aren't met.

func (ConfigValidationError) Cause

func (e ConfigValidationError) Cause() error

Cause function returns cause value.

func (ConfigValidationError) Error

func (e ConfigValidationError) Error() string

Error satisfies the builtin error interface

func (ConfigValidationError) ErrorName

func (e ConfigValidationError) ErrorName() string

ErrorName returns error name.

func (ConfigValidationError) Field

func (e ConfigValidationError) Field() string

Field function returns field value.

func (ConfigValidationError) Key

func (e ConfigValidationError) Key() bool

Key function returns key value.

func (ConfigValidationError) Reason

func (e ConfigValidationError) Reason() string

Reason function returns reason value.

type DynamodbConfig

type DynamodbConfig struct {
	ScalingLimits *ScalingLimits `protobuf:"bytes,1,opt,name=scaling_limits,json=scalingLimits,proto3" json:"scaling_limits,omitempty"`
	// contains filtered or unexported fields
}

func (*DynamodbConfig) Descriptor deprecated

func (*DynamodbConfig) Descriptor() ([]byte, []int)

Deprecated: Use DynamodbConfig.ProtoReflect.Descriptor instead.

func (*DynamodbConfig) GetScalingLimits

func (x *DynamodbConfig) GetScalingLimits() *ScalingLimits

func (*DynamodbConfig) ProtoMessage

func (*DynamodbConfig) ProtoMessage()

func (*DynamodbConfig) ProtoReflect

func (x *DynamodbConfig) ProtoReflect() protoreflect.Message

func (*DynamodbConfig) Reset

func (x *DynamodbConfig) Reset()

func (*DynamodbConfig) String

func (x *DynamodbConfig) String() string

func (*DynamodbConfig) Validate

func (m *DynamodbConfig) Validate() error

Validate checks the field values on DynamodbConfig with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*DynamodbConfig) ValidateAll

func (m *DynamodbConfig) ValidateAll() error

ValidateAll checks the field values on DynamodbConfig with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in DynamodbConfigMultiError, or nil if none found.

type DynamodbConfigMultiError

type DynamodbConfigMultiError []error

DynamodbConfigMultiError is an error wrapping multiple validation errors returned by DynamodbConfig.ValidateAll() if the designated constraints aren't met.

func (DynamodbConfigMultiError) AllErrors

func (m DynamodbConfigMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (DynamodbConfigMultiError) Error

func (m DynamodbConfigMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type DynamodbConfigValidationError

type DynamodbConfigValidationError struct {
	// contains filtered or unexported fields
}

DynamodbConfigValidationError is the validation error returned by DynamodbConfig.Validate if the designated constraints aren't met.

func (DynamodbConfigValidationError) Cause

Cause function returns cause value.

func (DynamodbConfigValidationError) Error

Error satisfies the builtin error interface

func (DynamodbConfigValidationError) ErrorName

func (e DynamodbConfigValidationError) ErrorName() string

ErrorName returns error name.

func (DynamodbConfigValidationError) Field

Field function returns field value.

func (DynamodbConfigValidationError) Key

Key function returns key value.

func (DynamodbConfigValidationError) Reason

Reason function returns reason value.

type ScalingLimits

type ScalingLimits struct {

	// defaults to AWS quotas if not set
	// AWS max read: 40000
	// AWS max write: 40000
	MaxReadCapacityUnits  int64 `` /* 126-byte string literal not displayed */
	MaxWriteCapacityUnits int64 `` /* 129-byte string literal not displayed */
	// defaults to a scale factor of 2.0x
	MaxScaleFactor float32 `protobuf:"fixed32,3,opt,name=max_scale_factor,json=maxScaleFactor,proto3" json:"max_scale_factor,omitempty"`
	// enables whether the service can override safety limits. Defaults to false
	EnableOverride bool `protobuf:"varint,4,opt,name=enable_override,json=enableOverride,proto3" json:"enable_override,omitempty"`
	// contains filtered or unexported fields
}

func (*ScalingLimits) Descriptor deprecated

func (*ScalingLimits) Descriptor() ([]byte, []int)

Deprecated: Use ScalingLimits.ProtoReflect.Descriptor instead.

func (*ScalingLimits) GetEnableOverride

func (x *ScalingLimits) GetEnableOverride() bool

func (*ScalingLimits) GetMaxReadCapacityUnits

func (x *ScalingLimits) GetMaxReadCapacityUnits() int64

func (*ScalingLimits) GetMaxScaleFactor

func (x *ScalingLimits) GetMaxScaleFactor() float32

func (*ScalingLimits) GetMaxWriteCapacityUnits

func (x *ScalingLimits) GetMaxWriteCapacityUnits() int64

func (*ScalingLimits) ProtoMessage

func (*ScalingLimits) ProtoMessage()

func (*ScalingLimits) ProtoReflect

func (x *ScalingLimits) ProtoReflect() protoreflect.Message

func (*ScalingLimits) Reset

func (x *ScalingLimits) Reset()

func (*ScalingLimits) String

func (x *ScalingLimits) String() string

func (*ScalingLimits) Validate

func (m *ScalingLimits) Validate() error

Validate checks the field values on ScalingLimits with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*ScalingLimits) ValidateAll

func (m *ScalingLimits) ValidateAll() error

ValidateAll checks the field values on ScalingLimits with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ScalingLimitsMultiError, or nil if none found.

type ScalingLimitsMultiError

type ScalingLimitsMultiError []error

ScalingLimitsMultiError is an error wrapping multiple validation errors returned by ScalingLimits.ValidateAll() if the designated constraints aren't met.

func (ScalingLimitsMultiError) AllErrors

func (m ScalingLimitsMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ScalingLimitsMultiError) Error

func (m ScalingLimitsMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type ScalingLimitsValidationError

type ScalingLimitsValidationError struct {
	// contains filtered or unexported fields
}

ScalingLimitsValidationError is the validation error returned by ScalingLimits.Validate if the designated constraints aren't met.

func (ScalingLimitsValidationError) Cause

Cause function returns cause value.

func (ScalingLimitsValidationError) Error

Error satisfies the builtin error interface

func (ScalingLimitsValidationError) ErrorName

func (e ScalingLimitsValidationError) ErrorName() string

ErrorName returns error name.

func (ScalingLimitsValidationError) Field

Field function returns field value.

func (ScalingLimitsValidationError) Key

Key function returns key value.

func (ScalingLimitsValidationError) Reason

Reason function returns reason value.

Jump to

Keyboard shortcuts

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