func ValidatePodLogOptions(opts *v1.PodLogOptions) field.ErrorList {
	allErrs := field.ErrorList{}
	if opts.TailLines != nil && *opts.TailLines < 0 {
		allErrs = append(allErrs, field.Invalid(field.NewPath("tailLines"), *opts.TailLines, isNegativeErrorMsg))
	}
	if opts.LimitBytes != nil && *opts.LimitBytes < 1 {
		allErrs = append(allErrs, field.Invalid(field.NewPath("limitBytes"), *opts.LimitBytes, "must be greater than 0"))
	}
	switch {
	case opts.SinceSeconds != nil && opts.SinceTime != nil:
		allErrs = append(allErrs, field.Forbidden(field.NewPath(""), "at most one of `sinceTime` or `sinceSeconds` may be specified"))
	case opts.SinceSeconds != nil:
		if *opts.SinceSeconds < 1 {
			allErrs = append(allErrs, field.Invalid(field.NewPath("sinceSeconds"), *opts.SinceSeconds, "must be greater than 0"))
		}
	}
	return allErrs
}
// ValidatePodLogOptions checks if options that are set are at the correct
// value. Any incorrect value will be returned to the ErrorList.
ValidatePodLogOptions checks if options that are set are at the correct
value. Any incorrect value will be returned to the ErrorList.
// ValidatePodLogOptions checks if options that are set are at the correct // value . Any incorrect value will be returned to the ErrorList .
func ValidatePodLogOptions(opts *v1.PodLogOptions) field.ErrorList {
	allErrs := field.ErrorList{}
	if opts.TailLines != nil && *opts.TailLines < 0 {
		allErrs = append(allErrs, field.Invalid(field.NewPath("tailLines"), *opts.TailLines, isNegativeErrorMsg))
	}
	if opts.LimitBytes != nil && *opts.LimitBytes < 1 {
		allErrs = append(allErrs, field.Invalid(field.NewPath("limitBytes"), *opts.LimitBytes, "must be greater than 0"))
	}
	switch {
	case opts.SinceSeconds != nil && opts.SinceTime != nil:
		allErrs = append(allErrs, field.Forbidden(field.NewPath(""), "at most one of `sinceTime` or `sinceSeconds` may be specified"))
	case opts.SinceSeconds != nil:
		if *opts.SinceSeconds < 1 {
			allErrs = append(allErrs, field.Invalid(field.NewPath("sinceSeconds"), *opts.SinceSeconds, "must be greater than 0"))
		}
	}
	return allErrs
}
func ValidatePodLogOptions ( opts * v1 . PodLogOptions ) field . ErrorList { allErrs := field . ErrorList { } if opts . TailLines != nil && * opts . TailLines < 0 { allErrs = append ( allErrs , field . Invalid ( field . NewPath ( " " ) , * opts . TailLines , isNegativeErrorMsg ) ) } if opts . LimitBytes != nil && * opts . LimitBytes < 1 { allErrs = append ( allErrs , field . Invalid ( field . NewPath ( " " ) , * opts . LimitBytes , " " ) ) } switch { case opts . SinceSeconds != nil && opts . SinceTime != nil : allErrs = append ( allErrs , field . Forbidden ( field . NewPath ( " " ) , " " ) ) case opts . SinceSeconds != nil : if * opts . SinceSeconds < 1 { allErrs = append ( allErrs , field . Invalid ( field . NewPath ( " " ) , * opts . SinceSeconds , " " ) ) } } return allErrs }
ValidatePodLogOptions checks if options that are set are at the correct
value.
ValidatePodLogOptions checks if options that are set are at the correct value .