Documentation
¶
Index ¶
- func Initialize() error
- func SetConfiguration(c *Configuration)
- type Configuration
- type ConfigurationAuth
- type ConfigurationAuthAdmin
- type ConfigurationAuthAnonymous
- type ConfigurationAuthInternalUser
- type ConfigurationAuthJwt
- type ConfigurationAuthOauth2
- type ConfigurationAuthOauth2Gitea
- type ConfigurationAuthOauth2Github
- type ConfigurationAuthOauth2Gitlab
- type ConfigurationAuthToken
- type ConfigurationBadger
- type ConfigurationBuilderDocker
- type ConfigurationBuilderK8s
- type ConfigurationCache
- type ConfigurationCacheBadger
- type ConfigurationCacheInmemory
- type ConfigurationCacheRedis
- type ConfigurationDaemon
- type ConfigurationDaemonBuilder
- type ConfigurationDaemonDocker
- type ConfigurationDaemonGc
- type ConfigurationDaemonKubernetes
- type ConfigurationDaemonPodman
- type ConfigurationDatabase
- type ConfigurationDatabaseMysql
- type ConfigurationDatabasePostgresql
- type ConfigurationDatabaseSqlite3
- type ConfigurationHTTP
- type ConfigurationHttpTLS
- type ConfigurationLocker
- type ConfigurationLockerBadger
- type ConfigurationLockerRedis
- type ConfigurationLog
- type ConfigurationNamespace
- type ConfigurationProxy
- type ConfigurationRedis
- type ConfigurationStorage
- type ConfigurationStorageCos
- type ConfigurationStorageFilesystem
- type ConfigurationStorageOss
- type ConfigurationStorageQiniu
- type ConfigurationStorageS3
- type ConfigurationWorkQueue
- type ConfigurationWorkQueueDatabase
- type ConfigurationWorkQueueInmemmory
- type ConfigurationWorkQueueKafka
- type ConfigurationWorkQueueRedis
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Configuration ¶
type Configuration struct {
Log ConfigurationLog `yaml:"log"`
Database ConfigurationDatabase `yaml:"database"`
Deploy enums.Deploy `yaml:"deploy"`
Redis ConfigurationRedis `yaml:"redis"`
Badger ConfigurationBadger `yaml:"badger"`
Cache ConfigurationCache `yaml:"cache"`
WorkQueue ConfigurationWorkQueue `yaml:"workqueue"`
Locker ConfigurationLocker `yaml:"locker"`
Namespace ConfigurationNamespace `yaml:"namespace"`
HTTP ConfigurationHTTP `yaml:"http"`
Storage ConfigurationStorage `yaml:"storage"`
Proxy ConfigurationProxy `yaml:"proxy"`
Daemon ConfigurationDaemon `yaml:"daemon"`
Auth ConfigurationAuth `yaml:"auth"`
}
Configuration ...
type ConfigurationAuth ¶
type ConfigurationAuth struct {
Anonymous ConfigurationAuthAnonymous `yaml:"anonymous"`
Admin ConfigurationAuthAdmin `yaml:"admin"`
Token ConfigurationAuthToken `yaml:"token"`
Oauth2 ConfigurationAuthOauth2 `yaml:"oauth2"`
Jwt ConfigurationAuthJwt `yaml:"jwt"`
}
ConfigurationAuth ...
type ConfigurationAuthAdmin ¶
type ConfigurationAuthAdmin struct {
Username string `yaml:"username"`
Password string `yaml:"password"`
Email string `yaml:"email"`
}
ConfigurationAuthAdmin ...
type ConfigurationAuthAnonymous ¶ added in v1.3.0
type ConfigurationAuthAnonymous struct {
Enabled bool `yaml:"enabled"`
}
ConfigurationAuthAnonymous ...
type ConfigurationAuthInternalUser ¶
type ConfigurationAuthInternalUser struct {
Username string `yaml:"username"`
}
ConfigurationAuthInternalUser ...
type ConfigurationAuthJwt ¶
type ConfigurationAuthJwt struct {
Ttl time.Duration `yaml:"ttl"`
RefreshTtl time.Duration `yaml:"refreshTtl"`
PrivateKey string `yaml:"privateKey"`
}
ConfigurationAuthJwt ...
type ConfigurationAuthOauth2 ¶
type ConfigurationAuthOauth2 struct {
Github ConfigurationAuthOauth2Github `yaml:"github"`
Gitlab ConfigurationAuthOauth2Gitlab `yaml:"gitlab"`
Gitea ConfigurationAuthOauth2Gitea `yaml:"gitea"`
}
ConfigurationAuthOauth2 ...
type ConfigurationAuthOauth2Gitea ¶
type ConfigurationAuthOauth2Gitea struct {
Enabled bool `yaml:"enabled"`
ClientID string `yaml:"clientId"`
ClientSecret string `yaml:"clientSecret"`
}
ConfigurationAuthOauth2Gitea ...
type ConfigurationAuthOauth2Github ¶
type ConfigurationAuthOauth2Github struct {
Enabled bool `yaml:"enabled"`
ClientID string `yaml:"clientId"`
ClientSecret string `yaml:"clientSecret"`
}
ConfigurationAuthOauth2Github ...
type ConfigurationAuthOauth2Gitlab ¶
type ConfigurationAuthOauth2Gitlab struct {
Enabled bool `yaml:"enabled"`
ClientID string `yaml:"clientId"`
ClientSecret string `yaml:"clientSecret"`
}
ConfigurationAuthOauth2Gitlab ...
type ConfigurationAuthToken ¶
ConfigurationAuthToken ...
type ConfigurationBadger ¶ added in v1.3.0
ConfigurationBadger ...
type ConfigurationBuilderDocker ¶
type ConfigurationBuilderDocker struct {
}
type ConfigurationBuilderK8s ¶
type ConfigurationCache ¶
type ConfigurationCache struct {
Type enums.CacherType `yaml:"type"`
Redis ConfigurationCacheRedis `yaml:"redis"`
Inmemory ConfigurationCacheInmemory `yaml:"inmemory"`
Badger ConfigurationCacheBadger `yaml:"badger"`
}
ConfigurationCache ...
type ConfigurationCacheBadger ¶ added in v1.3.0
type ConfigurationCacheBadger struct {
Prefix string `yaml:"prefix"`
Ttl time.Duration `yaml:"ttl"`
}
ConfigurationCacheBadger ...
type ConfigurationCacheInmemory ¶
ConfigurationCacheInmemory ...
type ConfigurationCacheRedis ¶
type ConfigurationCacheRedis struct {
Prefix string `yaml:"prefix"`
Ttl time.Duration `yaml:"ttl"`
}
ConfigurationCacheRedis ...
type ConfigurationDaemon ¶
type ConfigurationDaemon struct {
Builder ConfigurationDaemonBuilder `yaml:"builder"`
}
ConfigurationDaemon ...
type ConfigurationDaemonBuilder ¶
type ConfigurationDaemonBuilder struct {
Enabled bool `yaml:"enabled"`
Type enums.BuilderType `yaml:"type"`
Image string `yaml:"image"`
Docker ConfigurationDaemonDocker `yaml:"docker"`
Kubernetes ConfigurationDaemonKubernetes `yaml:"kubernetes"`
Podman ConfigurationDaemonPodman `yaml:"podman"`
}
ConfigurationDaemonBuilder ...
type ConfigurationDaemonDocker ¶
type ConfigurationDaemonDocker struct {
Sock *string `yaml:"sock"`
Network string `yaml:"network"`
}
ConfigurationDaemonDocker ...
type ConfigurationDaemonGc ¶
type ConfigurationDaemonGc struct {
Retention time.Duration `yaml:"retention"`
Cron string `yaml:"cron"`
}
ConfigurationDaemonGc ...
type ConfigurationDaemonKubernetes ¶
type ConfigurationDaemonKubernetes struct {
Kubeconfig *string `yaml:"kubeconfig"`
Namespace string `yaml:"namespace"`
}
ConfigurationDaemonKubernetes ...
type ConfigurationDaemonPodman ¶ added in v1.2.0
type ConfigurationDaemonPodman struct {
URI string `yaml:"uri"`
}
ConfigurationDaemonPodman ...
type ConfigurationDatabase ¶
type ConfigurationDatabase struct {
Type enums.Database `yaml:"type"`
Sqlite3 ConfigurationDatabaseSqlite3 `yaml:"sqlite3"`
Mysql ConfigurationDatabaseMysql `yaml:"mysql"`
Postgresql ConfigurationDatabasePostgresql `yaml:"postgresql"`
}
ConfigurationDatabase ...
type ConfigurationDatabaseMysql ¶
type ConfigurationDatabaseMysql struct {
Host string `yaml:"host"`
Port int `yaml:"port"`
User string `yaml:"user"`
Password string `yaml:"password"`
DBName string `yaml:"dbname"`
}
ConfigurationDatabaseMysql ...
type ConfigurationDatabasePostgresql ¶
type ConfigurationDatabasePostgresql struct {
Host string `yaml:"host"`
Port int `yaml:"port"`
User string `yaml:"user"`
Password string `yaml:"password"`
DBName string `yaml:"dbname"`
SslMode string `yaml:"sslmode"`
}
ConfigurationDatabase ...
type ConfigurationDatabaseSqlite3 ¶
type ConfigurationDatabaseSqlite3 struct {
Path string `yaml:"path"`
}
ConfigurationDatabaseSqlite3 ...
type ConfigurationHTTP ¶
type ConfigurationHTTP struct {
Endpoint string `yaml:"endpoint"`
InternalEndpoint string `yaml:"internalEndpoint"`
InternalDistributionEndpoint string `yaml:"internalDistributionEndpoint"`
TLS ConfigurationHttpTLS `yaml:"tls"`
}
ConfigurationHTTP ...
type ConfigurationHttpTLS ¶
type ConfigurationHttpTLS struct {
Enabled bool `yaml:"enabled"`
Certificate string `yaml:"certificate"`
Key string `yaml:"key"`
}
ConfigurationHttpTLS ...
type ConfigurationLocker ¶
type ConfigurationLocker struct {
Type enums.LockerType `yaml:"type"`
Badger ConfigurationLockerBadger `yaml:"badger"`
Redis ConfigurationLockerRedis `yaml:"redis"`
}
ConfigurationLocker ...
type ConfigurationLockerBadger ¶ added in v1.3.0
type ConfigurationLockerBadger struct {
Prefix string `yaml:"prefix"`
}
ConfigurationLockerBadger ...
type ConfigurationLockerRedis ¶ added in v1.3.0
type ConfigurationLockerRedis struct {
Prefix string `yaml:"prefix"`
}
ConfigurationLockerRedis ...
type ConfigurationLog ¶
type ConfigurationLog struct {
Level enums.LogLevel `yaml:"level"`
ProxyLevel enums.LogLevel `yaml:"proxyLevel"`
}
ConfigurationLog ...
type ConfigurationNamespace ¶
type ConfigurationNamespace struct {
AutoCreate bool `yaml:"autoCreate"`
Visibility enums.Visibility `yaml:"visibility"`
}
ConfigurationNamespace ...
type ConfigurationProxy ¶
type ConfigurationProxy struct {
Enabled bool `yaml:"enabled"`
Endpoint string `yaml:"endpoint"`
TlsVerify bool `yaml:"tlsVerify"`
Username string `yaml:"username"`
Password string `yaml:"password"`
Token string `yaml:"token"`
}
ConfigurationProxy ...
type ConfigurationRedis ¶
ConfigurationRedis ...
type ConfigurationStorage ¶
type ConfigurationStorage struct {
RootDirectory string `yaml:"rootDirectory"`
Redirect bool `yaml:"redirect"`
Type enums.StorageType `yaml:"type"`
Filesystem ConfigurationStorageFilesystem `yaml:"filesystem"`
S3 ConfigurationStorageS3 `yaml:"s3"`
Cos ConfigurationStorageCos `yaml:"cos"`
Oss ConfigurationStorageOss `yaml:"oss"`
}
ConfigurationStorage ...
type ConfigurationStorageCos ¶
type ConfigurationStorageCos struct {
Ak string `yaml:"ak"`
Sk string `yaml:"sk"`
Endpoint string `yaml:"endpoint"`
ForcePathStyle bool `yaml:"forcePathStyle"`
}
ConfigurationStorageCos ...
type ConfigurationStorageFilesystem ¶
type ConfigurationStorageFilesystem struct {
Path string `yaml:"path"`
}
ConfigurationStorageFilesystem ...
type ConfigurationStorageOss ¶ added in v1.2.0
type ConfigurationStorageOss struct {
Ak string `yaml:"ak"`
Sk string `yaml:"sk"`
Bucket string `yaml:"bucket"`
Endpoint string `yaml:"endpoint"`
ForcePathStyle bool `yaml:"forcePathStyle"`
}
ConfigurationStorageOss ...
type ConfigurationStorageQiniu ¶
type ConfigurationStorageQiniu struct {
Ak string `yaml:"ak"`
Sk string `yaml:"sk"`
Bucket string `yaml:"bucket"`
Region string `yaml:"region"`
UseHTTPS bool `yaml:"useHttps"`
}
ConfigurationStorageQiniu ...
type ConfigurationStorageS3 ¶
type ConfigurationStorageS3 struct {
Ak string `yaml:"ak"`
Sk string `yaml:"sk"`
Endpoint string `yaml:"endpoint"`
Region string `yaml:"region"`
Bucket string `yaml:"bucket"`
ForcePathStyle bool `yaml:"forcePathStyle"`
}
ConfigurationStorageS3 ...
type ConfigurationWorkQueue ¶
type ConfigurationWorkQueue struct {
Type enums.WorkQueueType `yaml:"type"`
Redis ConfigurationWorkQueueRedis `yaml:"redis"`
Database ConfigurationWorkQueueDatabase `yaml:"database"`
Kafka ConfigurationWorkQueueKafka `yaml:"kafka"`
Inmemory ConfigurationWorkQueueInmemmory `yaml:"inmemory"`
}
ConfigurationWorkQueue ...
type ConfigurationWorkQueueDatabase ¶
type ConfigurationWorkQueueDatabase struct {
}
type ConfigurationWorkQueueInmemmory ¶ added in v1.3.0
type ConfigurationWorkQueueInmemmory struct {
Concurrency int `yaml:"concurrency"`
}
type ConfigurationWorkQueueKafka ¶
type ConfigurationWorkQueueKafka struct {
}
type ConfigurationWorkQueueRedis ¶
type ConfigurationWorkQueueRedis struct {
Concurrency int `yaml:"concurrency"`
}