types

package
v1.2.4 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2019 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Auth

type Auth struct {
	Username string
	Password string
}

type AuthJWTClaims

type AuthJWTClaims struct {
	Auths       []*NamespaceAndRole `json:"auths"`
	User        string              `json:"user"`
	AdminAccess bool                `json:"adminAccess"`
	jwt.StandardClaims
}

type Config

type Config struct {
	Tenant             string
	Ldap               LdapConfig
	PublicApiServerURL string
	KubeCa             string
	KubeCaText         string
	KubeToken          string
	ApiServerTLSConfig tls.Config
	TokenLifeTime      string
}

type KubeConfig

type KubeConfig struct {
	ApiVersion     string              `yaml:"apiVersion"`
	Clusters       []KubeConfigCluster `yaml:"clusters"`
	Contexts       []KubeConfigContext `yaml:"contexts"`
	CurrentContext string              `yaml:"current-context"`
	Kind           string              `yaml:"kind"`
	Users          []KubeConfigUser    `yaml:"users"`
}

Note: struct fields must be public in order for unmarshal to correctly populate the data.

type KubeConfigCluster

type KubeConfigCluster struct {
	Cluster KubeConfigClusterData `yaml:"cluster"`
	Name    string                `yaml:"name"`
}

type KubeConfigClusterData

type KubeConfigClusterData struct {
	CertificateData string `yaml:"certificate-authority-data"`
	Server          string `yaml:"server"`
}

type KubeConfigContext

type KubeConfigContext struct {
	Context KubeConfigContextData `yaml:"context"`
	Name    string                `yaml:"name"`
}

type KubeConfigContextData

type KubeConfigContextData struct {
	Cluster string `yaml:"cluster"`
	User    string `yaml:"user"`
}

type KubeConfigUser

type KubeConfigUser struct {
	Name string              `yaml:"name"`
	User KubeConfigUserToken `yaml:"user"`
}

type KubeConfigUserToken

type KubeConfigUserToken struct {
	Token string `yaml:"token"`
}

type LdapConfig

type LdapConfig struct {
	UserBase            string
	GroupBase           string
	AdminUserBase       string
	AdminGroupBase      string
	Host                string
	Port                int
	UseSSL              bool
	StartTLS            bool
	SkipTLSVerification bool
	BindDN              string
	BindPassword        string
	UserFilter          string
	GroupFilter         string
	Attributes          []string
}

type NamespaceAndRole

type NamespaceAndRole struct {
	Namespace string `json:"namespace"`
	Role      string `json:"role"`
	Source    string `json:"source"`
}

type ResponseError

type ResponseError struct {
	metav1.TypeMeta
	metav1.Status
}

Jump to

Keyboard shortcuts

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