auth

package
v0.12.1 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2023 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsInvalidConfig

func IsInvalidConfig(err error) bool

IsInvalidcConfig asserts invalidConfigError.

Types

type AuthConfigValues

type AuthConfigValues struct {
	ManagementCluster string     `yaml:"managementCluster,omitempty"`
	Bindings          []Binding  `yaml:"bindings,omitempty"`
	Kubernetes        Kubernetes `yaml:"kubernetes,omitempty"`
}

type Binding

type Binding struct {
	Role   string   `yaml:"role,omitempty"`
	Groups []string `yaml:"groups,omitempty"`
}

type Config

type Config struct {
	Client                          client.Client
	Log                             *logr.Logger
	App                             *v1alpha1.App
	ManagementClusterName           string
	ManagementClusterWriteAllGroups []string
}

type Kubernetes added in v0.8.0

type Kubernetes struct {
	API KubernetesAPI `yaml:"api,omitempty"`
}

type KubernetesAPI added in v0.8.0

type KubernetesAPI struct {
	Port int `yaml:"port,omitempty"`
}

type Service

type Service struct {
	client.Client
	// contains filtered or unexported fields
}

func New

func New(c Config) (*Service, error)

func (*Service) Reconcile

func (s *Service) Reconcile(ctx context.Context) error

func (*Service) ReconcileDelete

func (s *Service) ReconcileDelete(ctx context.Context) error

Jump to

Keyboard shortcuts

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