Documentation ¶
Index ¶
- Constants
- func Example(s string) string
- func LongDesc(s string) string
- func NewApplyCmd() *cobra.Command
- func NewDestroyCmd() *cobra.Command
- func NewExportCmd() *cobra.Command
- func NewExportConfigCmd() *cobra.Command
- func NewExportKcCmd() *cobra.Command
- func NewListCmd() *cobra.Command
- func NewRootCmd() *cobra.Command
- type ApplyOptions
- type DestroyOptions
- type ExportConfigOptions
- type ExportKcOptions
- type ListOptions
- type MetaClusters
Constants ¶
View Source
const DefaultAction = "create"
Variables ¶
This section is empty.
Functions ¶
func Example ¶
Example trims all leading and trailing spaces from each line and indents it with some spaces.
func NewApplyCmd ¶
func NewDestroyCmd ¶
func NewExportCmd ¶
func NewExportConfigCmd ¶
func NewExportKcCmd ¶
func NewListCmd ¶
func NewRootCmd ¶
Types ¶
type ApplyOptions ¶
type ApplyOptions struct { Config string Action string app.AppContextOptions }
func (*ApplyOptions) Run ¶
func (o *ApplyOptions) Run() error
type DestroyOptions ¶
type DestroyOptions struct { ClusterName string app.AppContextOptions }
func (*DestroyOptions) Run ¶
func (o *DestroyOptions) Run() error
type ExportConfigOptions ¶
type ExportConfigOptions struct { ClusterName string app.AppContextOptions }
func (*ExportConfigOptions) Run ¶
func (o *ExportConfigOptions) Run() error
type ExportKcOptions ¶
type ExportKcOptions struct { ClusterName string app.AppContextOptions }
func (*ExportKcOptions) Run ¶
func (o *ExportKcOptions) Run() error
type ListOptions ¶
type ListOptions struct {
app.AppContextOptions
}
func (*ListOptions) Run ¶
func (o *ListOptions) Run() error
type MetaClusters ¶
type MetaClusters []cluster.ClusterMeta
func AllClusters ¶
func AllClusters(ctx app.AppContext) (MetaClusters, error)
AllClusters returns list of clusters meta from both global (project) and local clusters directory (if working directory is a Kubitect project).
func (MetaClusters) CountByName ¶
func (cs MetaClusters) CountByName(name string) int
func (MetaClusters) FindByName ¶
func (cs MetaClusters) FindByName(name string) *cluster.ClusterMeta
func (MetaClusters) Names ¶
func (cs MetaClusters) Names() []string
Click to show internal directories.
Click to hide internal directories.