Documentation ¶
Index ¶
- Constants
- func Context() *cobra.Command
- func Delete(okCtxs []string) error
- func DeleteCMD() *cobra.Command
- func List() *cobra.Command
- func Show() *cobra.Command
- func UpdateKubeconfigCMD(okClientProvider oktetoClientProvider) *cobra.Command
- func Use() *cobra.Command
- type Command
- type KubeconfigCMD
- type ManifestOptions
- type Options
- type SelectItem
Constants ¶
View Source
const (
// OktetoUseStaticKubetokenEnvVar is used to opt in to use static kubetoken
OktetoUseStaticKubetokenEnvVar = "OKTETO_USE_STATIC_KUBETOKEN"
)
Variables ¶
This section is empty.
Functions ¶
func UpdateKubeconfigCMD ¶
UpdateKubeconfigCMD all contexts managed by okteto
Types ¶
type Command ¶
type Command struct { K8sClientProvider okteto.K8sClientProvider LoginController login.Interface OktetoClientProvider oktetoClientProvider OktetoContextWriter okteto.ContextConfigWriterInterface // contains filtered or unexported fields }
Command has the dependencies to run a ctxCommand
func NewContextCommand ¶
func NewContextCommand(ctxCmdOption ...ctxCmdOption) *Command
NewContextCommand creates a new Command
func (*Command) RunStateless ¶
func (c *Command) RunStateless(ctx context.Context, ctxOptions *Options) (*okteto.ContextStateless, error)
RunStateless is the fn to use until the refactoring of the context command itself if you want to make use of an injected context instead of using the global context variable.
type KubeconfigCMD ¶
type KubeconfigCMD struct {
// contains filtered or unexported fields
}
type ManifestOptions ¶
type Options ¶
type Options struct { Token string Context string Namespace string OnlyOkteto bool Show bool Save bool SetCurrentNs bool IsCtxCommand bool CheckNamespaceAccess bool IsOkteto bool InsecureSkipTlsVerify bool InferredToken bool // contains filtered or unexported fields }
func (*Options) InitFromContext ¶
func (o *Options) InitFromContext()
func (*Options) InitFromEnvVars ¶
func (o *Options) InitFromEnvVars()
type SelectItem ¶
Click to show internal directories.
Click to hide internal directories.