Documentation
¶
Index ¶
- Constants
- type BasicAuthConfig
- type BoltDB
- type BoltDBs
- type Config
- type Credential
- type CredentialType
- type Credentials
- type GitHubAppConfig
- type GitRepository
- type GitSources
- type Log
- type Metrics
- type MetricsExporter
- type MetricsOTLP
- type OCIRepository
- type OCISources
- type Proposals
- type Protocol
- type Remote
- type SSHAuthConfig
- type Server
- type Sources
Constants ¶
View Source
const ( CredentialTypeBasic = CredentialType("basic") CredentialTypeSSH = CredentialType("ssh") CredentialTypeAccessToken = CredentialType("access_token") CredentialTypeGitHubApp = CredentialType("github_app") CredentialTypeDockerLocal = CredentialType("docker_local") )
View Source
const ( ProtocolHTTP = Protocol("http") ProtocolHTTPS = Protocol("https") )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BasicAuthConfig ¶
BasicAuthConfig has configuration for authenticating with private git repositories with basic auth.
type Config ¶
type Config struct { Log Log `glu:"log"` Credentials Credentials `glu:"credentials"` Sources Sources `glu:"sources"` Server Server `glu:"server"` Metrics Metrics `glu:"metrics"` }
func (*Config) SetDefaults ¶
type Credential ¶
type Credential struct { Type CredentialType `glu:"type"` Basic *BasicAuthConfig `glu:"basic"` SSH *SSHAuthConfig `glu:"ssh"` AccessToken *string `glu:"access_token"` GitHubApp *GitHubAppConfig `glu:"github_app"` }
type CredentialType ¶
type CredentialType string
type Credentials ¶
type Credentials map[string]Credential
type GitHubAppConfig ¶
type GitRepository ¶
type GitSources ¶
type GitSources map[string]*GitRepository
type Metrics ¶
type Metrics struct { Enabled bool `glu:"enabled"` Exporter MetricsExporter `glu:"exporter"` OTLP *MetricsOTLP `glu:"otlp"` }
type MetricsExporter ¶
type MetricsExporter string
const ( MetricsExporterPrometheus MetricsExporter = "prometheus" MetricsExporterOTLP MetricsExporter = "otlp" )
type MetricsOTLP ¶
type OCIRepository ¶
type OCISources ¶
type OCISources map[string]*OCIRepository
type SSHAuthConfig ¶
type SSHAuthConfig struct { User string `glu:"user"` Password string `glu:"password"` PrivateKeyBytes string `glu:"private_key_bytes"` PrivateKeyPath string `glu:"private_key_path"` InsecureIgnoreHostKey bool `glu:"insecure_ignore_host_key"` }
SSHAuthConfig provides configuration support for SSH private key credentials when authenticating with private git repositories
type Sources ¶
type Sources struct { Git GitSources `glu:"git"` OCI OCISources `glu:"oci"` Bolt BoltDBs `glu:"bolt"` }
Click to show internal directories.
Click to hide internal directories.