connection

package
v0.0.0-...-58c3220 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	S3Type            = v1alpha1.ConnectionType("s3")
	GcsType           = v1alpha1.ConnectionType("gcs")
	AzureBlobType     = v1alpha1.ConnectionType("azureblob")
	GITType           = v1alpha1.ConnectionType("git")
	DockerType        = v1alpha1.ConnectionType("docker")
	EcrType           = v1alpha1.ConnectionType("ecr")
	DecryptedDataMask = "*****"
)

Variables

View Source
var (
	AllConnectionTypes = []v1alpha1.ConnectionType{
		S3Type, GcsType, AzureBlobType, GITType, DockerType, EcrType,
	}
	AllConnectionTypesSet = map[v1alpha1.ConnectionType]interface{}{}
	ObjectStorageTypesSet = map[v1alpha1.ConnectionType]bool{
		GcsType:       true,
		S3Type:        true,
		AzureBlobType: true,
	}
)

Functions

This section is empty.

Types

type Connection

type Connection struct {
	// Connection id
	ID string `json:"id"`
	// CreatedAt
	CreatedAt time.Time `json:"createdAt,omitempty"`
	// UpdatedAt
	UpdatedAt time.Time `json:"updatedAt,omitempty"`
	// Connection specification
	Spec v1alpha1.ConnectionSpec `json:"spec"`
	// Connection status
	Status v1alpha1.ConnectionStatus `json:"status,omitempty"`
}

func (*Connection) DecodeBase64Fields

func (c *Connection) DecodeBase64Fields() error

Decodes sensitive data from base64

func (*Connection) DeleteSensitiveData

func (c *Connection) DeleteSensitiveData() *Connection

Replace sensitive data with mask in the connection

func (*Connection) EncodeBase64Fields

func (c *Connection) EncodeBase64Fields()

Encodes sensitive data and public key to base64

Jump to

Keyboard shortcuts

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