{"modulePath":"github.com/2lambda123/openshift-origin","version":"v4.1.0+incompatible","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package node\n\n## Functions\n\n```go\nfunc NewCmdLogs(baseName string, f kcmdutil.Factory, streams genericclioptions.IOStreams) *cobra.Command\n```\nNewCmdLogs creates a new logs command that supports OpenShift resources.\n\n```go\nfunc NewMergeReader(r ...Reader) io.WriterTo\n```\nNewMergeReader attempts to display the provided readers as line oriented output in lexographic order by always reading the next available line from the reader with the \"smallest\" line.\n\nFor example, given the readers with the following lines:\n\n\t 1: A\n\t    B\n\t    D\n\t 2: C\n\t    D\n\t    E\n\n\tthe reader would contain:\n\t    A\n\t    B\n\t    C\n\t    D\n\t    D\n\t    E\n\nThe merge reader uses bufio.NewReader() for each input and the ReadLine() method to find the next shortest input. If a given line is longer than the buffer size of 4096, and all readers have the same initial 4096 characters, the order is undefined.\n\n## Types\n\n```go\ntype LogsOptions struct {\n\tResources []string\n\tSelector  string\n\tRole      string\n\n\t// the log path to fetch\n\tPath string\n\n\t// --path=journal specific arguments\n\tGrep              string\n\tGrepCaseSensitive bool\n\tUnits             []string\n\tSinceTime         string\n\tUntilTime         string\n\tTail              int\n\tOutput            string\n\n\t// output format arguments\n\tRaw   bool\n\tUnify bool\n\n\tRESTClientGetter func(mapping *meta.RESTMapping) (resource.RESTClient, error)\n\tBuilder          *resource.Builder\n\n\tgenericclioptions.IOStreams\n}\n```\nLogsOptions holds all the necessary options for running oc adm node-logs.\n\n```go\nfunc NewLogsOptions(streams genericclioptions.IOStreams) *LogsOptions\n```\n\n```go\nfunc (o *LogsOptions) Complete(f kcmdutil.Factory, cmd *cobra.Command, args []string) error\n```\n\n```go\nfunc (o LogsOptions) RunLogs() error\n```\nRunLogs retrieves node logs\n\n```go\nfunc (o LogsOptions) Validate() error\n```\n\n```go\ntype Reader struct {\n\tR      io.Reader\n\tPrefix []byte\n}\n```\nReader wraps an io.Reader and inserts the provided prefix at the beginning of the output and before each newline character found in the stream.\n\n","path":"github.com/2lambda123/openshift-origin/pkg/oc/cli/admin/node","name":"node","synopsis":"","isRedistributable":true}
