{"modulePath":"github.com/akram/Origin","version":"v3.11.0+incompatible","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package node\n\n## Constants\n\n```go\nconst ManageNodeCommandName = \"manage-node\"\n```\n\n## Functions\n\n```go\nfunc GetPodHostFieldLabel(apiVersion string) string\n```\n\n```go\nfunc NewCommandManageNode(f kcmdutil.Factory, commandName, fullName string, streams genericclioptions.IOStreams) *cobra.Command\n```\nNewCommandManageNode implements the OpenShift cli manage-node command\n\n```go\nfunc ValidOperation(c *cobra.Command) error\n```\n\n## Types\n\n```go\ntype EvacuateOptions struct {\n\tOptions *NodeOptions\n\n\t// Optional params\n\tDryRun      bool\n\tForce       bool\n\tGracePeriod int64\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc NewEvacuateOptions(nodeOptions *NodeOptions) *EvacuateOptions\n```\nNewEvacuateOptions creates a new EvacuateOptions with default values.\n\n```go\nfunc (e *EvacuateOptions) AddFlags(cmd *cobra.Command)\n```\n\n```go\nfunc (e *EvacuateOptions) Run() error\n```\n\n```go\nfunc (e *EvacuateOptions) RunEvacuate(node *kapi.Node) error\n```\n\n```go\ntype ListPodsOptions struct {\n\tOptions *NodeOptions\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (l *ListPodsOptions) AddFlags(cmd *cobra.Command)\n```\n\n```go\nfunc (l *ListPodsOptions) Run() error\n```\n\n```go\ntype ManageNodeOptions struct {\n\tgenericclioptions.IOStreams\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc NewManageNodeOptions(streams genericclioptions.IOStreams) *ManageNodeOptions\n```\n\n```go\nfunc (o *ManageNodeOptions) Complete(c *cobra.Command, f kcmdutil.Factory, args []string) error\n```\n\n```go\nfunc (o *ManageNodeOptions) RunManageNode(c *cobra.Command) error\n```\n\n```go\nfunc (o *ManageNodeOptions) Validate(c *cobra.Command) error\n```\n\n```go\ntype NodeOptions struct {\n\tDefaultNamespace   string\n\tExternalKubeClient kubernetes.Interface\n\tKubeClient         kclientset.Interface\n\n\tMapper  meta.RESTMapper\n\tTyper   runtime.ObjectTyper\n\tPrinter func(mapping *meta.RESTMapping, withNamespace bool) (kprinters.ResourcePrinter, error)\n\n\tCmdPrinter       kprinters.ResourcePrinter\n\tCmdPrinterOutput bool\n\n\tBuilder *resource.Builder\n\n\tNodeNames []string\n\n\t// Common optional params\n\tSelector    string\n\tPodSelector string\n\n\tgenericclioptions.IOStreams\n}\n```\n\n```go\nfunc NewNodeOptions(streams genericclioptions.IOStreams) *NodeOptions\n```\n\n```go\nfunc (n *NodeOptions) Complete(f kcmdutil.Factory, c *cobra.Command, args []string) error\n```\n\n```go\nfunc (n *NodeOptions) GetNodes() ([]*kapi.Node, error)\n```\n\n```go\nfunc (n *NodeOptions) GetPrinters(gvk schema.GroupVersionKind, withNamespace bool) (kprinters.ResourcePrinter, error)\n```\n\n```go\nfunc (n *NodeOptions) GetPrintersByObject(obj runtime.Object) (kprinters.ResourcePrinter, error)\n```\n\n```go\nfunc (n *NodeOptions) GetPrintersByResource(resource schema.GroupVersionResource, withNamespace bool) (kprinters.ResourcePrinter, error)\n```\n\n```go\nfunc (n *NodeOptions) Validate(checkNodeSelector bool) error\n```\n\n```go\ntype SchedulableOptions struct {\n\tOptions *NodeOptions\n\n\tSchedulable bool\n}\n```\n\n```go\nfunc (s *SchedulableOptions) Run() error\n```\n\n","path":"github.com/akram/Origin/pkg/oc/cli/admin/node","name":"node","synopsis":"","isRedistributable":true}
