{"modulePath":"github.com/stevekuznetsov/origin","version":"v1.0.4","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package node\n\n## Constants\n\n```go\nconst (\n\tManageNodeCommandName = \"manage-node\"\n)\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 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}\n```\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}\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 NodeOptions struct {\n\tDefaultNamespace string\n\tKclient          *client.Client\n\tWriter           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, noHeaders, withNamespace, wide bool, columnLabels []string) (kubectl.ResourcePrinter, error)\n\n\tCmdPrinter       kubectl.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 io.Writer) error\n```\n\n```go\nfunc (n *NodeOptions) GetNodes() ([]*kapi.Node, error)\n```\n\n```go\nfunc (n *NodeOptions) GetPrinters(kind, version string) (kubectl.ResourcePrinter, kubectl.ResourcePrinter, error)\n```\n\n```go\nfunc (n *NodeOptions) GetPrintersByObject(obj runtime.Object) (kubectl.ResourcePrinter, kubectl.ResourcePrinter, error)\n```\n\n```go\nfunc (n *NodeOptions) GetPrintersByResource(resource string) (kubectl.ResourcePrinter, kubectl.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```go\nfunc (s *SchedulableOptions) RunSchedulable(node *kapi.Node, ignoreHeaders *bool) error\n```\n\n","path":"github.com/stevekuznetsov/origin/pkg/cmd/admin/node","name":"node","synopsis":"","isRedistributable":true}
