Documentation ¶
Index ¶
- Constants
- 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, vaultCABundle string) (*kratoshttp.Client, error)
- func NewKubernetes() (biz.Kubernetes, error)
- func NewKubernetesAuth(mountPath string, roles map[string]string, namespace 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 Kubernetes
- type ProjectDeployKey
Constants ¶
View Source
const ( Username = "default" DefaultServiceAccount = "api-server-manager" CaPath = "/opt/nautes/out/pki" )
Variables ¶
View Source
var ProviderSet = wire.NewSet(NewData, NewCodeRepo, NewSecretRepo, NewGitRepo, NewDexRepo, NewKubernetes)
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, vaultCABundle string) (*kratoshttp.Client, error)
func NewKubernetes ¶ added in v0.3.0
func NewKubernetes() (biz.Kubernetes, 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 Kubernetes ¶ added in v0.3.0
func (*Kubernetes) ListCodeRepo ¶ added in v0.3.0
func (k *Kubernetes) ListCodeRepo(ctx context.Context) (*resourcev1alpha1.CodeRepoList, error)
func (*Kubernetes) ListCodeRepoBindings ¶ added in v0.3.0
func (k *Kubernetes) ListCodeRepoBindings(ctx context.Context) (*resourcev1alpha1.CodeRepoBindingList, error)
type ProjectDeployKey ¶
type ProjectDeployKey struct { }
Click to show internal directories.
Click to hide internal directories.