Documentation
¶
Index ¶
- Constants
- func NewCmdServiceAccounts(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 GetServiceAccountTokenOptions
- type NewServiceAccountTokenOptions
Constants ¶
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 NewCommandGetServiceAccountToken ¶
Types ¶
type GetServiceAccountTokenOptions ¶
type GetServiceAccountTokenOptions struct {
SAName string
SAClient unversioned.ServiceAccountsInterface
SecretsClient unversioned.SecretsInterface
Out io.Writer
Err io.Writer
}
func (*GetServiceAccountTokenOptions) Complete ¶
func (*GetServiceAccountTokenOptions) Run ¶
func (o *GetServiceAccountTokenOptions) Run() error
func (*GetServiceAccountTokenOptions) Validate ¶
func (o *GetServiceAccountTokenOptions) Validate() error
type NewServiceAccountTokenOptions ¶
type NewServiceAccountTokenOptions struct {
SAName string
SAClient unversioned.ServiceAccountsInterface
SecretsClient unversioned.SecretsInterface
Labels map[string]string
Timeout time.Duration
Out io.Writer
Err io.Writer
}
func (*NewServiceAccountTokenOptions) Complete ¶
func (*NewServiceAccountTokenOptions) Run ¶
func (o *NewServiceAccountTokenOptions) Run() error
Run creates a new token secret, waits for the service account token controller to fulfill it, then adds the token to the service account
func (*NewServiceAccountTokenOptions) Validate ¶
func (o *NewServiceAccountTokenOptions) Validate() error
Source Files
¶
- gettoken.go
- newtoken.go
- subcommand.go
Click to show internal directories.
Click to hide internal directories.