Documentation
¶
Index ¶
- Constants
- func NewCmdServiceAccounts(name, fullName string, f *clientcmd.Factory, out, errOut io.Writer) *cobra.Command
- func NewCommandCreateKubeconfig(name, fullname string, f *clientcmd.Factory, out io.Writer) *cobra.Command
- func NewCommandGetServiceAccountToken(name, fullname string, f *clientcmd.Factory, out io.Writer) *cobra.Command
- func NewCommandNewServiceAccountToken(name, fullname string, f *clientcmd.Factory, out io.Writer) *cobra.Command
- type CreateKubeconfigOptions
- type GetServiceAccountTokenOptions
- type NewServiceAccountTokenOptions
Constants ¶
View Source
const (
CreateKubeconfigRecommendedName = "create-kubeconfig"
)
View Source
const (
GetServiceAccountTokenRecommendedName = "get-token"
)
View Source
const (
NewServiceAccountTokenRecommendedName = "new-token"
)
View Source
const ServiceAccountsRecommendedName = "serviceaccounts"
Variables ¶
This section is empty.
Functions ¶
func NewCmdServiceAccounts ¶
func NewCmdServiceAccounts(name, fullName string, f *clientcmd.Factory, out, errOut io.Writer) *cobra.Command
func NewCommandCreateKubeconfig ¶
func NewCommandCreateKubeconfig(name, fullname string, f *clientcmd.Factory, out io.Writer) *cobra.Command
func NewCommandGetServiceAccountToken ¶
func NewCommandGetServiceAccountToken(name, fullname string, f *clientcmd.Factory, out io.Writer) *cobra.Command
func NewCommandNewServiceAccountToken ¶
func NewCommandNewServiceAccountToken(name, fullname string, f *clientcmd.Factory, out io.Writer) *cobra.Command
Types ¶
type CreateKubeconfigOptions ¶
type CreateKubeconfigOptions struct {
SAName string
SAClient kcoreclient.ServiceAccountInterface
SecretsClient kcoreclient.SecretInterface
RawConfig clientcmdapi.Config
ContextNamespace string
Out io.Writer
Err io.Writer
}
type GetServiceAccountTokenOptions ¶
type GetServiceAccountTokenOptions struct {
SAName string
SAClient kcoreclient.ServiceAccountInterface
SecretsClient kcoreclient.SecretInterface
Out io.Writer
Err io.Writer
}
type NewServiceAccountTokenOptions ¶
type NewServiceAccountTokenOptions struct {
SAName string
SAClient kcoreclient.ServiceAccountInterface
SecretsClient kcoreclient.SecretInterface
Labels map[string]string
Timeout time.Duration
Out io.Writer
Err io.Writer
}
func (*NewServiceAccountTokenOptions) Complete ¶
func (o *NewServiceAccountTokenOptions) Complete(args []string, requestedLabels string, f *clientcmd.Factory, cmd *cobra.Command) error
Click to show internal directories.
Click to hide internal directories.