{"modulePath":"github.com/akram/Origin","version":"v3.6.1+incompatible","isLatest":false,"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 *clientcmd.Factory, commandName, fullName string, out, errout io.Writer) *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\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (n *ManageNodeOptions) Complete(c *cobra.Command, f *clientcmd.Factory, args []string) error\n```\n\n```go\nfunc (n *ManageNodeOptions) RunManageNode(c *cobra.Command) error\n```\n\n```go\nfunc (n *ManageNodeOptions) Validate(c *cobra.Command) error\n```\n\n```go\ntype NodeOptions struct {\n\tDefaultNamespace   string\n\tKubeClient         kclientset.Interface\n\tExternalKubeClient externalclientset.Interface\n\tWriter             io.Writer\n\tErrWriter          io.Writer\n\n\tMapper            meta.RESTMapper\n\tTyper             runtime.ObjectTyper\n\tRESTClientFactory func(mapping *meta.RESTMapping) (resource.RESTClient, error)\n\tPrinter           func(mapping *meta.RESTMapping, printOptions kprinters.PrintOptions) (kprinters.ResourcePrinter, error)\n\n\tCmdPrinter       kprinters.ResourcePrinter\n\tCmdPrinterOutput bool\n\n\tNodeNames []string\n\n\t// Common optional params\n\tSelector    string\n\tPodSelector string\n}\n```\n\n```go\nfunc (n *NodeOptions) Complete(f *clientcmd.Factory, c *cobra.Command, args []string, out, errout io.Writer) error\n```\n\n```go\nfunc (n *NodeOptions) GetNodes() ([]*kapi.Node, error)\n```\n\n```go\nfunc (n *NodeOptions) GetPrinters(gvk schema.GroupVersionKind) (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) (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/cmd/admin/node","name":"node","synopsis":"","isRedistributable":true}
