package logs
import "k8s.io/kubernetes/pkg/kubectl/cmd/logs"
Index ¶
- func DefaultConsumeRequest(request *rest.Request, out io.Writer) error
- func NewCmdLogs(f cmdutil.Factory, streams genericclioptions.IOStreams) *cobra.Command
- type LogsOptions
- func NewLogsOptions(streams genericclioptions.IOStreams, allContainers bool) *LogsOptions
- func (o *LogsOptions) Complete(f cmdutil.Factory, cmd *cobra.Command, args []string) error
- func (o LogsOptions) RunLogs() error
- func (o *LogsOptions) ToLogOptions() (*corev1.PodLogOptions, error)
- func (o LogsOptions) Validate() error
Functions ¶
func DefaultConsumeRequest ¶
func NewCmdLogs ¶
NewCmdLogs creates a new pod logs command
Types ¶
type LogsOptions ¶
type LogsOptions struct { Namespace string ResourceArg string AllContainers bool Options runtime.Object Resources []string ConsumeRequestFn func(*rest.Request, io.Writer) error // PodLogOptions SinceTime string SinceSeconds time.Duration Follow bool Previous bool Timestamps bool LimitBytes int64 Tail int64 Container string // whether or not a container name was given via --container ContainerNameSpecified bool Selector string Object runtime.Object GetPodTimeout time.Duration RESTClientGetter genericclioptions.RESTClientGetter LogsForObject polymorphichelpers.LogsForObjectFunc genericclioptions.IOStreams }
func NewLogsOptions ¶
func NewLogsOptions(streams genericclioptions.IOStreams, allContainers bool) *LogsOptions
func (*LogsOptions) Complete ¶
func (LogsOptions) RunLogs ¶
func (o LogsOptions) RunLogs() error
RunLogs retrieves a pod log
func (*LogsOptions) ToLogOptions ¶
func (o *LogsOptions) ToLogOptions() (*corev1.PodLogOptions, error)
func (LogsOptions) Validate ¶
func (o LogsOptions) Validate() error
Source Files ¶
logs.go
- Version
- v1.13.5
- Published
- Mar 22, 2019
- Platform
- js/wasm
- Imports
- 17 packages
- Last checked
- 2 minutes ago –
Tools for package owners.