Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Cluster ¶
type Cluster struct { v1.Cluster ClusterCredential v1.ClusterCredential }
Cluster wrap cluster and it's credential
type InternalCluster ¶
type InternalCluster struct { platform.Cluster ClusterCredential platform.ClusterCredential }
InternalCluster wrap internal version cluster and it's credential
type Provider ¶
type Provider interface { Name() string ValidateCredential(cluster InternalCluster) (field.ErrorList, error) Validate(cluster platform.Cluster) (field.ErrorList, error) PreCreate(user UserInfo, cluster platform.Cluster) (platform.Cluster, error) AfterCreate(cluster platform.Cluster) ([]interface{}, error) ValidateUpdate(cluster platform.Cluster, oldCluster platform.Cluster) (field.ErrorList, error) OnInitialize(cluster Cluster) (Cluster, error) OnUpdate(cluster Cluster) (Cluster, error) OnDelete(cluster v1.Cluster) error }
Provider defines a set of response interfaces for specific cluster types in cluster management.
func GetProvider ¶
GetProvider returns provider by name
type UserInfo ¶
type UserInfo struct { // Name returns the name that uniquely identifies this user among all // other active users. Name string // Groups returns the names of the groups the user is a member of Groups []string // GetExtra can contain any additional information that the authenticator // thought was interesting. One example would be scopes on a token. // Keys in this map should be namespaced to the authenticator or // authenticator/authorizer pair making use of them. Extra map[string][]string }
UserInfo describes a user that has been authenticated to the system.
Click to show internal directories.
Click to hide internal directories.