package rule
import "github.com/vmware/govmomi/cli/cluster/rule"
Index ¶
- type ClusterRuleInfo
- type InfoFlag
- func NewInfoFlag(ctx context.Context) (*InfoFlag, context.Context)
- func (f *InfoFlag) Apply(ctx context.Context, update types.ArrayUpdateSpec, info types.BaseClusterRuleInfo) error
- func (f *InfoFlag) Process(ctx context.Context) error
- func (f *InfoFlag) Register(ctx context.Context, fs *flag.FlagSet)
- func (f *InfoFlag) Rule(ctx context.Context) (*ClusterRuleInfo, error)
- func (f *InfoFlag) Rules(ctx context.Context) ([]types.BaseClusterRuleInfo, error)
- type SpecFlag
Types ¶
type ClusterRuleInfo ¶
type ClusterRuleInfo struct { // only ClusterDependencyRuleInfo VmGroup string DependsOnVmGroup string // contains filtered or unexported fields }
func GetExtendedClusterRuleInfo ¶
func GetExtendedClusterRuleInfo(rule types.BaseClusterRuleInfo) ClusterRuleInfo
type InfoFlag ¶
type InfoFlag struct { *flags.ClusterFlag Long bool // contains filtered or unexported fields }
func NewInfoFlag ¶
func (*InfoFlag) Apply ¶
func (f *InfoFlag) Apply(ctx context.Context, update types.ArrayUpdateSpec, info types.BaseClusterRuleInfo) error
func (*InfoFlag) Process ¶
func (*InfoFlag) Register ¶
func (*InfoFlag) Rule ¶
func (f *InfoFlag) Rule(ctx context.Context) (*ClusterRuleInfo, error)
func (*InfoFlag) Rules ¶
type SpecFlag ¶
type SpecFlag struct { types.ClusterRuleInfo types.ClusterVmHostRuleInfo types.ClusterAffinityRuleSpec //nolint:govet types.ClusterAntiAffinityRuleSpec //nolint:govet }
func (*SpecFlag) Register ¶
Source Files ¶
change.go create.go info.go info_flag.go ls.go remove.go
- Version
- v0.48.1 (latest)
- Published
- Feb 11, 2025
- Platform
- linux/amd64
- Imports
- 7 packages
- Last checked
- 2 months ago –
Tools for package owners.