storage

package
v0.4.1-0...-3948fb3 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	S3ServerSideEncryption_name = map[int32]string{
		0: "UNSPECIFIED",
		1: "AES256",
		2: "AWSKMS",
	}
	S3ServerSideEncryption_value = map[string]int32{
		"UNSPECIFIED": 0,
		"AES256":      1,
		"AWSKMS":      2,
	}
)

Enum value maps for S3ServerSideEncryption.

View Source
var File_storage_azs_proto protoreflect.FileDescriptor
View Source
var File_storage_gcs_proto protoreflect.FileDescriptor
View Source
var File_storage_oracle_proto protoreflect.FileDescriptor
View Source
var File_storage_persistent_storage_proto protoreflect.FileDescriptor
View Source
var File_storage_s3_proto protoreflect.FileDescriptor
View Source
var File_storage_sql_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Azs

type Azs struct {

	// Whether this persistent store is enabled.
	Enabled *wrapperspb.BoolValue `protobuf:"bytes,1,opt,name=enabled,proto3" json:"enabled,omitempty"`
	// The name of an Azure Storage Account.
	StorageAccountName string `protobuf:"bytes,2,opt,name=storageAccountName,proto3" json:"storageAccountName,omitempty"`
	// The key to access the Azure Storage Account.
	StorageAccountKey string `protobuf:"bytes,3,opt,name=storageAccountKey,proto3" json:"storageAccountKey,omitempty"`
	// The container name in the chosen storage account to place Spinnaker's
	// persistent data. Defaults to 'spinnaker' if unspecified.
	StorageContainerName string `protobuf:"bytes,4,opt,name=storageContainerName,proto3" json:"storageContainerName,omitempty"`
	// contains filtered or unexported fields
}

Configuration for an Azure Storage persistent store.

func (*Azs) Descriptor deprecated

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

Deprecated: Use Azs.ProtoReflect.Descriptor instead.

func (*Azs) GetEnabled

func (x *Azs) GetEnabled() *wrapperspb.BoolValue

func (*Azs) GetStorageAccountKey

func (x *Azs) GetStorageAccountKey() string

func (*Azs) GetStorageAccountName

func (x *Azs) GetStorageAccountName() string

func (*Azs) GetStorageContainerName

func (x *Azs) GetStorageContainerName() string

func (*Azs) ProtoMessage

func (*Azs) ProtoMessage()

func (*Azs) ProtoReflect

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

func (*Azs) Reset

func (x *Azs) Reset()

func (*Azs) String

func (x *Azs) String() string

type Gcs

type Gcs struct {

	// Whether this persistent store is enabled.
	Enabled *wrapperspb.BoolValue `protobuf:"bytes,1,opt,name=enabled,proto3" json:"enabled,omitempty"`
	// A path to a JSON service account with permission to read and write to the bucket to be used as a backing store.
	JsonPath string `protobuf:"bytes,2,opt,name=jsonPath,proto3" json:"jsonPath,omitempty"`
	// The Google Cloud Platform project you are using to host the GCS bucket as a backing store.
	Project string `protobuf:"bytes,3,opt,name=project,proto3" json:"project,omitempty"`
	// The name of a storage bucket that your specified account has access to.
	Bucket string `protobuf:"bytes,4,opt,name=bucket,proto3" json:"bucket,omitempty"`
	// The root folder in the chosen bucket to place all of Spinnaker's persistent data in.
	RootFolder *wrapperspb.StringValue `protobuf:"bytes,5,opt,name=rootFolder,proto3" json:"rootFolder,omitempty"`
	// This is only required if the bucket you specify does not exist yet.
	BucketLocation string `protobuf:"bytes,6,opt,name=bucketLocation,proto3" json:"bucketLocation,omitempty"`
	// contains filtered or unexported fields
}

Configuration for a Google Cloud Storage persistent store

func (*Gcs) Descriptor deprecated

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

Deprecated: Use Gcs.ProtoReflect.Descriptor instead.

func (*Gcs) GetBucket

func (x *Gcs) GetBucket() string

func (*Gcs) GetBucketLocation

func (x *Gcs) GetBucketLocation() string

func (*Gcs) GetEnabled

func (x *Gcs) GetEnabled() *wrapperspb.BoolValue

func (*Gcs) GetJsonPath

func (x *Gcs) GetJsonPath() string

func (*Gcs) GetProject

func (x *Gcs) GetProject() string

func (*Gcs) GetRootFolder

func (x *Gcs) GetRootFolder() *wrapperspb.StringValue

func (*Gcs) ProtoMessage

func (*Gcs) ProtoMessage()

func (*Gcs) ProtoReflect

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

func (*Gcs) Reset

func (x *Gcs) Reset()

func (*Gcs) String

func (x *Gcs) String() string

type Oracle

type Oracle struct {

	// Whether this persistent store is enabled.
	Enabled *wrapperspb.BoolValue `protobuf:"bytes,1,opt,name=enabled,proto3" json:"enabled,omitempty"`
	// The bucket name to store persistent state object in.
	BucketName string `protobuf:"bytes,2,opt,name=bucketName,proto3" json:"bucketName,omitempty"`
	// The namespace the bucket and objects should be created in.
	Namespace string `protobuf:"bytes,3,opt,name=namespace,proto3" json:"namespace,omitempty"`
	// An Oracle region (e.g., us-phoenix-1).
	Region string `protobuf:"bytes,4,opt,name=region,proto3" json:"region,omitempty"`
	// The OCID of the Oracle User you're authenticating as.
	UserId string `protobuf:"bytes,5,opt,name=userId,proto3" json:"userId,omitempty"`
	// Fingerprint of the public key.
	Fingerprint string `protobuf:"bytes,6,opt,name=fingerprint,proto3" json:"fingerprint,omitempty"`
	// Path to the private key in PEM format.
	SshPrivateKeyFilePath string `protobuf:"bytes,7,opt,name=sshPrivateKeyFilePath,proto3" json:"sshPrivateKeyFilePath,omitempty"`
	// Passphrase used for the private key, if it is encrypted.
	PrivateKeyPassphrase string `protobuf:"bytes,8,opt,name=privateKeyPassphrase,proto3" json:"privateKeyPassphrase,omitempty"`
	// The OCID of the Oracle Tenancy to use.
	TenancyId string `protobuf:"bytes,9,opt,name=tenancyId,proto3" json:"tenancyId,omitempty"`
	// The OCID of the Oracle Compartment to use.
	CompartmentId string `protobuf:"bytes,10,opt,name=compartmentId,proto3" json:"compartmentId,omitempty"`
	// contains filtered or unexported fields
}

Configuration for an Oracle persistent store.

func (*Oracle) Descriptor deprecated

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

Deprecated: Use Oracle.ProtoReflect.Descriptor instead.

func (*Oracle) GetBucketName

func (x *Oracle) GetBucketName() string

func (*Oracle) GetCompartmentId

func (x *Oracle) GetCompartmentId() string

func (*Oracle) GetEnabled

func (x *Oracle) GetEnabled() *wrapperspb.BoolValue

func (*Oracle) GetFingerprint

func (x *Oracle) GetFingerprint() string

func (*Oracle) GetNamespace

func (x *Oracle) GetNamespace() string

func (*Oracle) GetPrivateKeyPassphrase

func (x *Oracle) GetPrivateKeyPassphrase() string

func (*Oracle) GetRegion

func (x *Oracle) GetRegion() string

func (*Oracle) GetSshPrivateKeyFilePath

func (x *Oracle) GetSshPrivateKeyFilePath() string

func (*Oracle) GetTenancyId

func (x *Oracle) GetTenancyId() string

func (*Oracle) GetUserId

func (x *Oracle) GetUserId() string

func (*Oracle) ProtoMessage

func (*Oracle) ProtoMessage()

func (*Oracle) ProtoReflect

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

func (*Oracle) Reset

func (x *Oracle) Reset()

func (*Oracle) String

func (x *Oracle) String() string

type PersistentStorage

type PersistentStorage struct {
	Gcs    *Gcs    `protobuf:"bytes,1,opt,name=gcs,proto3" json:"gcs,omitempty"`
	Azs    *Azs    `protobuf:"bytes,2,opt,name=azs,proto3" json:"azs,omitempty"`
	Oracle *Oracle `protobuf:"bytes,3,opt,name=oracle,proto3" json:"oracle,omitempty"`
	S3     *S3     `protobuf:"bytes,4,opt,name=s3,proto3" json:"s3,omitempty"`
	// contains filtered or unexported fields
}

Configuration of Spinnaker's persistent storage.

func (*PersistentStorage) Descriptor deprecated

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

Deprecated: Use PersistentStorage.ProtoReflect.Descriptor instead.

func (*PersistentStorage) GetAzs

func (x *PersistentStorage) GetAzs() *Azs

func (*PersistentStorage) GetGcs

func (x *PersistentStorage) GetGcs() *Gcs

func (*PersistentStorage) GetOracle

func (x *PersistentStorage) GetOracle() *Oracle

func (*PersistentStorage) GetS3

func (x *PersistentStorage) GetS3() *S3

func (*PersistentStorage) ProtoMessage

func (*PersistentStorage) ProtoMessage()

func (*PersistentStorage) ProtoReflect

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

func (*PersistentStorage) Reset

func (x *PersistentStorage) Reset()

func (*PersistentStorage) String

func (x *PersistentStorage) String() string

type S3

type S3 struct {

	// Whether this persistent store is enabled.
	Enabled *wrapperspb.BoolValue `protobuf:"bytes,1,opt,name=enabled,proto3" json:"enabled,omitempty"`
	// The name of a storage bucket that your specified account has access to.
	Bucket string `protobuf:"bytes,2,opt,name=bucket,proto3" json:"bucket,omitempty"`
	// The root folder in the chosen bucket to place all of Spinnaker's persistent
	// data in.
	RootFolder *wrapperspb.StringValue `protobuf:"bytes,3,opt,name=rootFolder,proto3" json:"rootFolder,omitempty"`
	// This is only required if the bucket you specify doesn't exist yet. In that
	// case, the bucket will be created in that region.
	// See http://docs.aws.amazon.com/general/latest/gr/rande.html#s3_region.
	Region string `protobuf:"bytes,4,opt,name=region,proto3" json:"region,omitempty"`
	// When true, use path-style to access bucket; when false, use virtual hosted-style
	// to access bucket.
	// See https://docs.aws.amazon.com/AmazonS3/latest/dev/VirtualHosting.html#VirtualHostingExamples.
	PathStyleAccess *wrapperspb.BoolValue `protobuf:"bytes,5,opt,name=pathStyleAccess,proto3" json:"pathStyleAccess,omitempty"`
	// An alternate endpoint that your S3-compatible storage can be found at. This is
	// intended for self-hosted storage services with S3-compatible APIs, e.g. Minio.
	Endpoint string `protobuf:"bytes,6,opt,name=endpoint,proto3" json:"endpoint,omitempty"`
	// Your AWS Access Key ID. If not provided, Spinnaker will try to find AWS credentials
	// as described at http://docs.aws.amazon.com/sdk-for-java/v1/developer-guide/credentials.html#credentials-default
	AccessKeyId string `protobuf:"bytes,7,opt,name=accessKeyId,proto3" json:"accessKeyId,omitempty"`
	// Configuration for S3 server-size encryption.
	ServerSideEncryption S3ServerSideEncryption `` /* 136-byte string literal not displayed */
	// Your AWS Secret Key.
	SecretAccessKey string `protobuf:"bytes,9,opt,name=secretAccessKey,proto3" json:"secretAccessKey,omitempty"`
	// contains filtered or unexported fields
}

Configuration for an Amazon S3 persistent store.

func (*S3) Descriptor deprecated

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

Deprecated: Use S3.ProtoReflect.Descriptor instead.

func (*S3) GetAccessKeyId

func (x *S3) GetAccessKeyId() string

func (*S3) GetBucket

func (x *S3) GetBucket() string

func (*S3) GetEnabled

func (x *S3) GetEnabled() *wrapperspb.BoolValue

func (*S3) GetEndpoint

func (x *S3) GetEndpoint() string

func (*S3) GetPathStyleAccess

func (x *S3) GetPathStyleAccess() *wrapperspb.BoolValue

func (*S3) GetRegion

func (x *S3) GetRegion() string

func (*S3) GetRootFolder

func (x *S3) GetRootFolder() *wrapperspb.StringValue

func (*S3) GetSecretAccessKey

func (x *S3) GetSecretAccessKey() string

func (*S3) GetServerSideEncryption

func (x *S3) GetServerSideEncryption() S3ServerSideEncryption

func (*S3) ProtoMessage

func (*S3) ProtoMessage()

func (*S3) ProtoReflect

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

func (*S3) Reset

func (x *S3) Reset()

func (*S3) String

func (x *S3) String() string

type S3ServerSideEncryption

type S3ServerSideEncryption int32

Configuration for S3 server-side encryption; values correspond to values of the 'x-amz-server-side-encryption' header.

const (
	// Unspecified. Do not directly use, instead omit the field.
	S3ServerSideEncryption_UNSPECIFIED S3ServerSideEncryption = 0
	// Amazon S3-managed encryption keys, equivalent to a header value of 'AES256'.
	S3ServerSideEncryption_AES256 S3ServerSideEncryption = 1
	// AWS KMS-managed encryption keys, equivalent to a header value of 'aws:kms'.
	S3ServerSideEncryption_AWSKMS S3ServerSideEncryption = 2
)

func (S3ServerSideEncryption) Descriptor

func (S3ServerSideEncryption) Enum

func (S3ServerSideEncryption) EnumDescriptor deprecated

func (S3ServerSideEncryption) EnumDescriptor() ([]byte, []int)

Deprecated: Use S3ServerSideEncryption.Descriptor instead.

func (S3ServerSideEncryption) Number

func (S3ServerSideEncryption) String

func (x S3ServerSideEncryption) String() string

func (S3ServerSideEncryption) Type

type SQL

type SQL struct {

	// Whether this persistent store is enabled.
	Enabled *wrapperspb.BoolValue `protobuf:"bytes,1,opt,name=enabled,proto3" json:"enabled,omitempty"`
	// Default database connection pool.
	ConnectionPools *SQL_ConnectionPools `protobuf:"bytes,2,opt,name=connectionPools,proto3" json:"connectionPools,omitempty"`
	// contains filtered or unexported fields
}

func (*SQL) Descriptor deprecated

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

Deprecated: Use SQL.ProtoReflect.Descriptor instead.

func (*SQL) GetConnectionPools

func (x *SQL) GetConnectionPools() *SQL_ConnectionPools

func (*SQL) GetEnabled

func (x *SQL) GetEnabled() *wrapperspb.BoolValue

func (*SQL) ProtoMessage

func (*SQL) ProtoMessage()

func (*SQL) ProtoReflect

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

func (*SQL) Reset

func (x *SQL) Reset()

func (*SQL) String

func (x *SQL) String() string

type SQL_ConnectionPool

type SQL_ConnectionPool struct {

	// Database username
	User string `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"`
	// Database password
	Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"`
	// Database connection string. This needs to include server port
	// and database name as well
	JdbcUrl string `protobuf:"bytes,3,opt,name=jdbcUrl,proto3" json:"jdbcUrl,omitempty"`
	// Database connection timeout in milliseconds
	ConnectionTimeout int32 `protobuf:"varint,4,opt,name=connectionTimeout,proto3" json:"connectionTimeout,omitempty"`
	// maxLifetime controls the maximum lifetime of a connection in
	// the pool in milliseconds.
	MaxLifetime int32 `protobuf:"varint,5,opt,name=maxLifetime,proto3" json:"maxLifetime,omitempty"`
	// Maximum number of connections stored in the connection pool
	MaxPoolSize int32 `protobuf:"varint,6,opt,name=maxPoolSize,proto3" json:"maxPoolSize,omitempty"`
	// contains filtered or unexported fields
}

ConnectionPool confifugration for the SQL server

func (*SQL_ConnectionPool) Descriptor deprecated

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

Deprecated: Use SQL_ConnectionPool.ProtoReflect.Descriptor instead.

func (*SQL_ConnectionPool) GetConnectionTimeout

func (x *SQL_ConnectionPool) GetConnectionTimeout() int32

func (*SQL_ConnectionPool) GetJdbcUrl

func (x *SQL_ConnectionPool) GetJdbcUrl() string

func (*SQL_ConnectionPool) GetMaxLifetime

func (x *SQL_ConnectionPool) GetMaxLifetime() int32

func (*SQL_ConnectionPool) GetMaxPoolSize

func (x *SQL_ConnectionPool) GetMaxPoolSize() int32

func (*SQL_ConnectionPool) GetPassword

func (x *SQL_ConnectionPool) GetPassword() string

func (*SQL_ConnectionPool) GetUser

func (x *SQL_ConnectionPool) GetUser() string

func (*SQL_ConnectionPool) ProtoMessage

func (*SQL_ConnectionPool) ProtoMessage()

func (*SQL_ConnectionPool) ProtoReflect

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

func (*SQL_ConnectionPool) Reset

func (x *SQL_ConnectionPool) Reset()

func (*SQL_ConnectionPool) String

func (x *SQL_ConnectionPool) String() string

type SQL_ConnectionPools

type SQL_ConnectionPools struct {
	Default *SQL_ConnectionPool `protobuf:"bytes,1,opt,name=default,proto3" json:"default,omitempty"`
	// contains filtered or unexported fields
}

The default connection pool

func (*SQL_ConnectionPools) Descriptor deprecated

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

Deprecated: Use SQL_ConnectionPools.ProtoReflect.Descriptor instead.

func (*SQL_ConnectionPools) GetDefault

func (x *SQL_ConnectionPools) GetDefault() *SQL_ConnectionPool

func (*SQL_ConnectionPools) ProtoMessage

func (*SQL_ConnectionPools) ProtoMessage()

func (*SQL_ConnectionPools) ProtoReflect

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

func (*SQL_ConnectionPools) Reset

func (x *SQL_ConnectionPools) Reset()

func (*SQL_ConnectionPools) String

func (x *SQL_ConnectionPools) String() string

Jump to

Keyboard shortcuts

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