model

package
v1.17.8 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2022 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	GitSSHURL = regexp.MustCompile(`^([a-z-]+)@([a-zA-Z0-9\-.]+):(.+)/(.+)(\.git)?$`)
)

Functions

This section is empty.

Types

type AWSConnection added in v1.16.1

type AWSConnection struct {
	AccessKeyID     string
	SecretAccessKey string
	SessionToken    string
}

type AWSDetails

type AWSDetails struct {
	Connection AWSConnection

	// deprecated
	AccessKeyID string
	// deprecated
	SecretAccessKey string
	Region          string
}

func (*AWSDetails) GetAccessKeyID added in v1.16.1

func (ad *AWSDetails) GetAccessKeyID() string

func (*AWSDetails) GetSecretAccessKey added in v1.16.1

func (ad *AWSDetails) GetSecretAccessKey() string

func (*AWSDetails) GetSessionToken added in v1.17.5

func (ad *AWSDetails) GetSessionToken() string

type AWSSpec

type AWSSpec struct {
	AWS *AWSDetails
}

type AzureConnection added in v1.17.2

type AzureConnection struct {
	SubscriptionID string
	ClientID       string
	TenantID       string
	Secret         string
}

type AzureDetails added in v1.17.2

type AzureDetails struct {
	Connection AzureConnection
}

type AzureSpec added in v1.17.2

type AzureSpec struct {
	Azure *AzureDetails
}

type ClusterConnectionSpec added in v1.16.0

type ClusterConnectionSpec struct {
	Server               string
	CertificateAuthority string
	Token                string
}

type ClusterDetails

type ClusterDetails struct {
	Name       string
	Connection *ClusterConnectionSpec

	// Deprecated
	URL string
	// Deprecated
	CAData string `spec:"cadata"`
	// Deprecated
	Token    string
	Insecure bool
	Username string
	Password string
}

type ClusterSpec

type ClusterSpec struct {
	Cluster *ClusterDetails
}

type CredentialSpec

type CredentialSpec struct {
	Credentials map[string]string
}

type GCPConnection added in v1.16.2

type GCPConnection struct {
	ServiceAccountKey string `json:"serviceAccountKey"`
}

type GCPDetails added in v1.16.0

type GCPDetails struct {
	Connection GCPConnection
	Project    string

	// deprecated
	ServiceAccountKey string `json:"serviceAccountKey"`
}

func (*GCPDetails) GetServiceAccountKey added in v1.16.2

func (gd *GCPDetails) GetServiceAccountKey() string

type GCPSpec added in v1.16.0

type GCPSpec struct {
	Google *GCPDetails
}

type GitConnection

type GitConnection struct {
	SSHKey string `spec:"sshKey"`
}

type GitDetails

type GitDetails struct {
	// Newer connection support for SSH keys.
	Connection *GitConnection

	// Older explicit Base64-encoded SSH keys.
	SSHKey string `spec:"ssh_key"`

	Name       string
	Repository string
	Branch     string
	KnownHosts string `spec:"known_hosts"`
}

func (*GitDetails) ConfiguredKnownHosts added in v1.16.5

func (gd *GitDetails) ConfiguredKnownHosts() (string, bool, error)

func (*GitDetails) ConfiguredSSHKey

func (gd *GitDetails) ConfiguredSSHKey() (string, bool, error)

type GitSSHDetails added in v1.16.6

type GitSSHDetails struct {
	Host       string
	KnownHosts string
	SSHKey     string
}

type GitSpec

type GitSpec struct {
	GitRepository *GitDetails `spec:"git"`
}

type WorkflowRun added in v1.17.3

type WorkflowRun struct {
	Name      string `json:"name"`
	RunNumber int32  `json:"run_number"`
	AppURL    string `json:"app_url"`
}

Jump to

Keyboard shortcuts

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