Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // Err is raised when a context definition has issues. Err = errors.New("context error") ConfigFolder = "~/.config/opensvc/" // ConfigFilename is the file where the context information is stored ConfigFilename = ConfigFolder + "contexts" )
Functions ¶
Types ¶
type Cluster ¶
type Cluster struct {
CertificateAuthority *string `json:"certificate_authority,omitempty"`
Server string `json:"server"`
InsecureSkipVerify *bool `json:"insecure,omitempty"`
}
Cluster host the endpoint address or name, and the certificate authority to trust.
type Relation ¶
type Relation struct {
ClusterRefName string `json:"cluster"`
UserRefName string `json:"user"`
Namespace *string `json:"namespace,omitempty"`
AccessTokenDuration *duration.Duration `json:"access_token_duration,omitempty"`
RefreshTokenDuration *duration.Duration `json:"refresh_token_duration,omitempty"`
}
Relation is a Cluster-User relation.
type T ¶
type T struct {
Cluster Cluster `json:"cluster"`
User User `json:"user"`
Namespace string `json:"namespace"`
}
T is a dereferenced Cluster-User relation.
Click to show internal directories.
Click to hide internal directories.