Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AuthProvider ¶
func AuthProvider(method core.MountPathEntity, role core.StringSource, jwt core.StringSource) core.AuthProvider
Types ¶
type API ¶
type API interface { UpdateKubernetesAuthMethod(method MethodEntity) error UpdateKubernetesAuthRole(method core.MountPathEntity, role RoleEntity) error DeleteKubernetesAuthRole(method core.MountPathEntity, role core.RoleNameEntity) error ReadKubernetesAuthRole(method core.MountPathEntity, role core.RoleNameEntity) (*Role, error) LoginWithKubernetesAuth(method core.MountPathEntity, role core.RoleNameEntity, jwt string) (*core.AuthResponse, error) }
type Config ¶
type Config struct { KubernetesHost string `json:"kubernetes_host,omitempty"` Issuer string `json:"issuer,omitempty"` PemKeys []string `json:"pem_keys,omitempty"` KubernetesCACert string `json:"kubernetes_ca_cert,omitempty"` TokenReviewerJWT string `json:"token_reviewer_jwt,omitempty"` DisableISSValidation bool `json:"disable_iss_validation,omitempty"` DisableLocalCAJWT bool `json:"disable_local_ca_jwt,omitempty"` }
type MethodEntity ¶
type MethodEntity interface { core.MountPathEntity GetMethodConfig() (*Config, error) }
type Role ¶
type Role struct { Name string Policies []core.PolicyName BoundNamespaces []string BoundServiceAccounts []string }
func (*Role) GetBoundNamespaces ¶
func (*Role) GetBoundServiceAccounts ¶
func (*Role) GetRoleName ¶
func (*Role) GetRolePolicies ¶
func (k *Role) GetRolePolicies() ([]core.PolicyName, error)
type RoleEntity ¶
type RoleEntity interface { core.RoleNameEntity core.RolePoliciesEntity GetBoundNamespaces() ([]string, error) GetBoundServiceAccounts() ([]string, error) }
Click to show internal directories.
Click to hide internal directories.