Documentation
¶
Index ¶
- Variables
- func GetToken(namespace string) (string, error)
- func NewCodeRepo(config *nautesconfigs.Config) (biz.CodeRepo, error)
- func NewData(logger log.Logger, configs *nautesconfigs.Config) (func(), error)
- func NewDexRepo(k8sClient client.Client) biz.DexRepo
- func NewGitRepo(config *nautesconfigs.Config) (biz.GitRepo, error)
- func NewGitlabClient(ctx context.Context, g *gitlabRepo) (gitlabclient.GitlabOperator, error)
- func NewGitlabRepo(url string, client gitlabclient.GitlabOperator) (*gitlabRepo, error)
- func NewHttpClient(ca string) (*http.Client, error)
- func NewHttpClientForVault(serverAddress string) (*kratoshttp.Client, error)
- func NewKubernetesAuth(mountPath, token string, roles map[string]string) (*auth.KubernetesAuth, error)
- func NewSecretRepo(config *nautesconfigs.Config) (biz.Secretrepo, error)
- func NewVaultClient(config *nautesconfigs.Config) (biz.Secretrepo, error)
- func RemoveConfigURIs(configYAML string, redirectURIs string) (string, error)
- func UpdateConfigURIs(configYAML string, redirectURIs string) (string, error)
- type ConfigMap
- type Dex
- type DexConfig
- type ProjectDeployKey
Constants ¶
This section is empty.
Variables ¶
View Source
var ProviderSet = wire.NewSet(NewData, NewCodeRepo, NewSecretRepo, NewGitRepo, NewDexRepo)
ProviderSet is data providers.
Functions ¶
func NewCodeRepo ¶
func NewCodeRepo(config *nautesconfigs.Config) (biz.CodeRepo, error)
func NewGitRepo ¶
func NewGitRepo(config *nautesconfigs.Config) (biz.GitRepo, error)
func NewGitlabClient ¶
func NewGitlabClient(ctx context.Context, g *gitlabRepo) (gitlabclient.GitlabOperator, error)
func NewGitlabRepo ¶
func NewGitlabRepo(url string, client gitlabclient.GitlabOperator) (*gitlabRepo, error)
func NewHttpClientForVault ¶
func NewHttpClientForVault(serverAddress string) (*kratoshttp.Client, error)
func NewKubernetesAuth ¶
func NewSecretRepo ¶
func NewSecretRepo(config *nautesconfigs.Config) (biz.Secretrepo, error)
func NewVaultClient ¶
func NewVaultClient(config *nautesconfigs.Config) (biz.Secretrepo, error)
func RemoveConfigURIs ¶
Types ¶
type Dex ¶
type Dex struct {
// contains filtered or unexported fields
}
func (*Dex) RemoveRedirectURIs ¶
func (*Dex) UpdateRedirectURIs ¶
type DexConfig ¶
type DexConfig struct {
Issuer string `yaml:"issuer"`
Storage struct {
Type string `yaml:"type"`
} `yaml:"storage"`
Web struct {
HTTP string `yaml:"http"`
} `yaml:"web"`
Connectors []struct {
Type string `yaml:"type"`
ID string `yaml:"id"`
Name string `yaml:"name"`
Config struct {
BaseURL string `yaml:"baseURL"`
ClientID string `yaml:"clientID"`
ClientSecret string `yaml:"clientSecret"`
RedirectURI string `yaml:"redirectURI"`
} `yaml:"config"`
} `yaml:"connectors"`
Oauth2 struct {
SkipApprovalScreen bool `yaml:"skipApprovalScreen"`
} `yaml:"oauth2"`
StaticClients []struct {
ID string `yaml:"id"`
RedirectURIs []string `yaml:"redirectURIs"`
Name string `yaml:"name"`
Secret string `yaml:"secret"`
} `yaml:"staticClients"`
}
type ProjectDeployKey ¶
type ProjectDeployKey struct {
}
Click to show internal directories.
Click to hide internal directories.