Documentation ¶
Overview ¶
+k8s:openapi-gen=true +k8s:deepcopy-gen=package,register +k8s:conversion-gen=sigs.k8s.io/apiserver-builder-alpha/example/podlogs/pkg/apis/podlogs +k8s:defaulter-gen=TypeMeta +groupName=podlogs.example.com
Index ¶
- Variables
- func Convert_podlogs_PodList_To_v1_PodList(in *podlogs.PodList, out *PodList, s conversion.Scope) error
- func Convert_podlogs_PodLogsList_To_v1_PodLogsList(in *podlogs.PodLogsList, out *PodLogsList, s conversion.Scope) error
- func Convert_podlogs_PodLogs_To_v1_PodLogs(in *podlogs.PodLogs, out *PodLogs, s conversion.Scope) error
- func Convert_podlogs_PodSpec_To_v1_PodSpec(in *podlogs.PodSpec, out *PodSpec, s conversion.Scope) error
- func Convert_podlogs_PodStatus_To_v1_PodStatus(in *podlogs.PodStatus, out *PodStatus, s conversion.Scope) error
- func Convert_podlogs_Pod_To_v1_Pod(in *podlogs.Pod, out *Pod, s conversion.Scope) error
- func Convert_v1_PodList_To_podlogs_PodList(in *PodList, out *podlogs.PodList, s conversion.Scope) error
- func Convert_v1_PodLogsList_To_podlogs_PodLogsList(in *PodLogsList, out *podlogs.PodLogsList, s conversion.Scope) error
- func Convert_v1_PodLogs_To_podlogs_PodLogs(in *PodLogs, out *podlogs.PodLogs, s conversion.Scope) error
- func Convert_v1_PodSpec_To_podlogs_PodSpec(in *PodSpec, out *podlogs.PodSpec, s conversion.Scope) error
- func Convert_v1_PodStatus_To_podlogs_PodStatus(in *PodStatus, out *podlogs.PodStatus, s conversion.Scope) error
- func Convert_v1_Pod_To_podlogs_Pod(in *Pod, out *podlogs.Pod, s conversion.Scope) error
- func Kind(kind string) schema.GroupKind
- func RegisterConversions(s *runtime.Scheme) error
- func RegisterDefaults(scheme *runtime.Scheme) error
- func Resource(resource string) schema.GroupResource
- type Pod
- type PodList
- type PodLogs
- type PodLogsList
- type PodSpec
- type PodStatus
Constants ¶
This section is empty.
Variables ¶
var ( ApiVersion = builders.NewApiVersion("podlogs.example.com", "v1").WithResources( podlogs.PodlogsPodStorage, builders.NewApiResource( podlogs.InternalPodStatus, func() runtime.Object { return &Pod{} }, func() runtime.Object { return &PodList{} }, &podlogs.PodStatusStrategy{builders.StatusStorageStrategySingleton}, ), builders.NewApiResourceWithStorage( podlogs.InternalPodLogsREST, func() runtime.Object { return &PodLogs{} }, nil, podlogs.NewPodLogsREST), ) // Required by code generated by go2idl AddToScheme = (&runtime.SchemeBuilder{ ApiVersion.SchemeBuilder.AddToScheme, RegisterDefaults, RegisterConversions, addKnownTypes, func(scheme *runtime.Scheme) error { metav1.AddToGroupVersion(scheme, SchemeGroupVersion) return nil }, }).AddToScheme SchemeBuilder = ApiVersion.SchemeBuilder SchemeGroupVersion = ApiVersion.GroupVersion )
Functions ¶
func Convert_podlogs_PodList_To_v1_PodList ¶
func Convert_podlogs_PodList_To_v1_PodList(in *podlogs.PodList, out *PodList, s conversion.Scope) error
Convert_podlogs_PodList_To_v1_PodList is an autogenerated conversion function.
func Convert_podlogs_PodLogsList_To_v1_PodLogsList ¶
func Convert_podlogs_PodLogsList_To_v1_PodLogsList(in *podlogs.PodLogsList, out *PodLogsList, s conversion.Scope) error
Convert_podlogs_PodLogsList_To_v1_PodLogsList is an autogenerated conversion function.
func Convert_podlogs_PodLogs_To_v1_PodLogs ¶
func Convert_podlogs_PodLogs_To_v1_PodLogs(in *podlogs.PodLogs, out *PodLogs, s conversion.Scope) error
Convert_podlogs_PodLogs_To_v1_PodLogs is an autogenerated conversion function.
func Convert_podlogs_PodSpec_To_v1_PodSpec ¶
func Convert_podlogs_PodSpec_To_v1_PodSpec(in *podlogs.PodSpec, out *PodSpec, s conversion.Scope) error
Convert_podlogs_PodSpec_To_v1_PodSpec is an autogenerated conversion function.
func Convert_podlogs_PodStatus_To_v1_PodStatus ¶
func Convert_podlogs_PodStatus_To_v1_PodStatus(in *podlogs.PodStatus, out *PodStatus, s conversion.Scope) error
Convert_podlogs_PodStatus_To_v1_PodStatus is an autogenerated conversion function.
func Convert_podlogs_Pod_To_v1_Pod ¶
Convert_podlogs_Pod_To_v1_Pod is an autogenerated conversion function.
func Convert_v1_PodList_To_podlogs_PodList ¶
func Convert_v1_PodList_To_podlogs_PodList(in *PodList, out *podlogs.PodList, s conversion.Scope) error
Convert_v1_PodList_To_podlogs_PodList is an autogenerated conversion function.
func Convert_v1_PodLogsList_To_podlogs_PodLogsList ¶
func Convert_v1_PodLogsList_To_podlogs_PodLogsList(in *PodLogsList, out *podlogs.PodLogsList, s conversion.Scope) error
Convert_v1_PodLogsList_To_podlogs_PodLogsList is an autogenerated conversion function.
func Convert_v1_PodLogs_To_podlogs_PodLogs ¶
func Convert_v1_PodLogs_To_podlogs_PodLogs(in *PodLogs, out *podlogs.PodLogs, s conversion.Scope) error
Convert_v1_PodLogs_To_podlogs_PodLogs is an autogenerated conversion function.
func Convert_v1_PodSpec_To_podlogs_PodSpec ¶
func Convert_v1_PodSpec_To_podlogs_PodSpec(in *PodSpec, out *podlogs.PodSpec, s conversion.Scope) error
Convert_v1_PodSpec_To_podlogs_PodSpec is an autogenerated conversion function.
func Convert_v1_PodStatus_To_podlogs_PodStatus ¶
func Convert_v1_PodStatus_To_podlogs_PodStatus(in *PodStatus, out *podlogs.PodStatus, s conversion.Scope) error
Convert_v1_PodStatus_To_podlogs_PodStatus is an autogenerated conversion function.
func Convert_v1_Pod_To_podlogs_Pod ¶
Convert_v1_Pod_To_podlogs_Pod is an autogenerated conversion function.
func Kind ¶
Required by code generated by go2idl Kind takes an unqualified kind and returns a Group qualified GroupKind
func RegisterConversions ¶
RegisterConversions adds conversion functions to the given scheme. Public to allow building arbitrary schemes.
func RegisterDefaults ¶
RegisterDefaults adds defaulters functions to the given scheme. Public to allow building arbitrary schemes. All generated defaulters are covering - they call all nested defaulters.
func Resource ¶
func Resource(resource string) schema.GroupResource
Required by code generated by go2idl Resource takes an unqualified resource and returns a Group qualified GroupResource
Types ¶
type Pod ¶
type Pod struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec PodSpec `json:"spec,omitempty"` Status PodStatus `json:"status,omitempty"` }
Pod +k8s:openapi-gen=true +resource:path=pods,strategy=PodStrategy +subresource:request=PodLogs,path=logs,kind=PodLogs,rest=PodLogsREST
type PodLogs ¶
type PodLogs struct { metav1.TypeMeta `json:",inline"` // Container for which to return logs Container string // If true, follow the logs for the pod Follow bool // If true, return previous terminated container logs Previous bool // A relative time in seconds before the current time from which to show logs. If this value // precedes the time a pod was started, only logs since the pod start will be returned. // If this value is in the future, no logs will be returned. // Only one of sinceSeconds or sinceTime may be specified. SinceSeconds *int64 // An RFC3339 timestamp from which to show logs. If this value // precedes the time a pod was started, only logs since the pod start will be returned. // If this value is in the future, no logs will be returned. // Only one of sinceSeconds or sinceTime may be specified. SinceTime *metav1.Time // If true, add an RFC3339 or RFC3339Nano timestamp at the beginning of every line // of log output. Timestamps bool // If set, the number of lines from the end of the logs to show. If not specified, // logs are shown from the creation of the container or sinceSeconds or sinceTime TailLines *int64 // If set, the number of bytes to read from the server before terminating the // log output. This may not display a complete final line of logging, and may return // slightly more or slightly less than the specified limit. LimitBytes *int64 }
+subresource-request