manifest

package
v0.0.0-...-16eb8d1 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2021 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MarshalDexDataConfig

func MarshalDexDataConfig(dc *DexDataConfig) (string, error)

MarshalDexDataConfig TBU

func MarshalProfile

func MarshalProfile(profile Profile) ([]byte, error)

MarshalProfile TBU

func NewRoleBinding

func NewRoleBinding(namespace, userName string) (*rbacv1.RoleBinding, error)

NewRoleBinding TBU

Types

type DexDataConfig

type DexDataConfig struct {
	Issuer  string `yaml:"issuer"`
	Storage struct {
		Type   string `yaml:"type"`
		Config struct {
			InCluster bool `yaml:"inCluster"`
		} `yaml:"config"`
	} `yaml:"storage"`
	Web struct {
		HTTP string `yaml:"http"`
	} `yaml:"web"`
	Logger struct {
		Level  string `yaml:"level"`
		Format string `yaml:"format"`
	} `yaml:"loggger"`
	Oauth2 struct {
		SkipApprovalScreen bool `yaml:"skipApprovalScreen"`
	} `yaml:"oauth2"`
	EnablePasswordDB bool             `yaml:"enablePasswordDB"`
	StaticPasswords  []StaticPassword `yaml:"staticPasswords"`
	StaticClients    []StatiClient    `yaml:"staticClients"`
}

DexDataConfig TBU

func UnmarshalDexDataConfig

func UnmarshalDexDataConfig(data string) (*DexDataConfig, error)

UnmarshalDexDataConfig TBU

type Plugin

type Plugin struct {
	metav1.TypeMeta `json:",inline"`
	Spec            *runtime.RawExtension `json:"spec,omitempty"`
}

Plugin is for customize actions on different platform.

type Profile

type Profile struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   ProfileSpec   `json:"spec,omitempty"`
	Status ProfileStatus `json:"status,omitempty"`
}

Profile is the Schema for the profiles API

func GetProfile

func GetProfile(profileName, email string) Profile

GetProfile TBU

func UnmarshalProfile

func UnmarshalProfile(data []byte) (Profile, error)

UnmarshalProfile TBU

type ProfileCondition

type ProfileCondition struct {
	Type    string `json:"type,omitempty"`
	Status  string `json:"status,omitempty" description:"status of the condition, one of True, False, Unknown"`
	Message string `json:"message,omitempty"`
}

ProfileCondition TBU

type ProfileSpec

type ProfileSpec struct {
	// The profile owner
	Owner   rbacv1.Subject `json:"owner,omitempty"`
	Plugins []Plugin       `json:"plugins,omitempty"`
	// Resourcequota that will be applied to target namespace
	ResourceQuotaSpec v1.ResourceQuotaSpec `json:"resourceQuotaSpec,omitempty"`
}

ProfileSpec defines the desired state of Profile

type ProfileStatus

type ProfileStatus struct {
	Conditions []ProfileCondition `json:"conditions,omitempty"`
}

ProfileStatus defines the observed state of Profile

type Profiles

type Profiles struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []Profile `json:"items"`
}

Profiles contains a list of Profile

func UnmarshalProfiles

func UnmarshalProfiles(data []byte) (Profiles, error)

UnmarshalProfiles TBU

type RoleRef

type RoleRef struct {
	Kind string `json:"kind,omitempty"`
	Name string `json:"name,omitempty"`
}

RoleRef refers to a role object.

type ServiceRoleBinding

type ServiceRoleBinding struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   ServiceRoleBindingSpec   `json:"spec,omitempty"`
	Status ServiceRoleBindingStatus `json:"status,omitempty"`
}

ServiceRoleBinding is the Schema for the servicerolebindings API

func NewServiceRoleBinding

func NewServiceRoleBinding(namespace, userName string) (*ServiceRoleBinding, error)

NewServiceRoleBinding TBU

type ServiceRoleBindingList

type ServiceRoleBindingList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []ServiceRoleBinding `json:"items"`
}

ServiceRoleBindingList contains a list of ServiceRoleBinding

type ServiceRoleBindingSpec

type ServiceRoleBindingSpec struct {
	Subjects []*Subject `json:"subjects,omitempty"`
	RoleRef  *RoleRef   `json:"roleRef,omitempty"`
}

ServiceRoleBindingSpec defines the desired state of ServiceRoleBinding

type ServiceRoleBindingStatus

type ServiceRoleBindingStatus struct {
}

ServiceRoleBindingStatus defines the observed state of ServiceRoleBinding

type StatiClient

type StatiClient struct {
	ID           string   `yaml:"id,omitempty"`
	IDEnv        string   `yaml:"idEnv,omitempty"`
	RedirectURIs []string `yaml:"redirectURIs,omitempty"`
	Name         string   `yaml:"name"`
	Secret       string   `yaml:"secret,omitempty"`
	SecretEnv    string   `yaml:"secretEnv,omitempty"`
}

StatiClient TBU

type StaticPassword

type StaticPassword struct {
	Email        string `yaml:"email"`
	Hash         string `yaml:"hash,omitempty"`
	HashFromFile string `yaml:"hashFromFile,omitempty"`
	HashFromEnv  string `yaml:"hashFromEnv,omitempty"`
	Username     string `yaml:"username"`
	UserID       string `yaml:"userID"`
}

StaticPassword TBU

type Subject

type Subject struct {
	User       string            `json:"user,omitempty"`
	Properties map[string]string `json:"properties,omitempty"`
}

Subject defines an identity. The identity is either a user or identified by a set of `properties`.

Jump to

Keyboard shortcuts

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