github.com/spotmaxtech/k8s-apimachinery-v0260@v0.0.1/pkg/apis/meta/v1beta1/types.go (about)

     1  /*
     2  Copyright 2017 The Kubernetes Authors.
     3  
     4  Licensed under the Apache License, Version 2.0 (the "License");
     5  you may not use this file except in compliance with the License.
     6  You may obtain a copy of the License at
     7  
     8      http://www.apache.org/licenses/LICENSE-2.0
     9  
    10  Unless required by applicable law or agreed to in writing, software
    11  distributed under the License is distributed on an "AS IS" BASIS,
    12  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    13  See the License for the specific language governing permissions and
    14  limitations under the License.
    15  */
    16  
    17  // package v1beta1 is alpha objects from meta that will be introduced.
    18  package v1beta1
    19  
    20  import (
    21  	v1 "github.com/spotmaxtech/k8s-apimachinery-v0260/pkg/apis/meta/v1"
    22  )
    23  
    24  // Table is a tabular representation of a set of API resources. The server transforms the
    25  // object into a set of preferred columns for quickly reviewing the objects.
    26  // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
    27  // +protobuf=false
    28  type Table = v1.Table
    29  
    30  // TableColumnDefinition contains information about a column returned in the Table.
    31  // +protobuf=false
    32  type TableColumnDefinition = v1.TableColumnDefinition
    33  
    34  // TableRow is an individual row in a table.
    35  // +protobuf=false
    36  type TableRow = v1.TableRow
    37  
    38  // TableRowCondition allows a row to be marked with additional information.
    39  // +protobuf=false
    40  type TableRowCondition = v1.TableRowCondition
    41  
    42  type RowConditionType = v1.RowConditionType
    43  
    44  type ConditionStatus = v1.ConditionStatus
    45  
    46  type IncludeObjectPolicy = v1.IncludeObjectPolicy
    47  
    48  // TableOptions are used when a Table is requested by the caller.
    49  // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
    50  type TableOptions = v1.TableOptions
    51  
    52  // PartialObjectMetadata is a generic representation of any object with ObjectMeta. It allows clients
    53  // to get access to a particular ObjectMeta schema without knowing the details of the version.
    54  // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
    55  type PartialObjectMetadata = v1.PartialObjectMetadata
    56  
    57  // IMPORTANT: PartialObjectMetadataList has different protobuf field ids in v1beta1 than
    58  // v1 because ListMeta was accidentally omitted prior to 1.15. Therefore this type must
    59  // remain independent of v1.PartialObjectMetadataList to preserve mappings.
    60  
    61  // PartialObjectMetadataList contains a list of objects containing only their metadata.
    62  // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
    63  type PartialObjectMetadataList struct {
    64  	v1.TypeMeta `json:",inline"`
    65  	// Standard list metadata.
    66  	// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
    67  	// +optional
    68  	v1.ListMeta `json:"metadata,omitempty" protobuf:"bytes,2,opt,name=metadata"`
    69  
    70  	// items contains each of the included items.
    71  	Items []v1.PartialObjectMetadata `json:"items" protobuf:"bytes,1,rep,name=items"`
    72  }
    73  
    74  const (
    75  	RowCompleted = v1.RowCompleted
    76  
    77  	ConditionTrue    = v1.ConditionTrue
    78  	ConditionFalse   = v1.ConditionFalse
    79  	ConditionUnknown = v1.ConditionUnknown
    80  
    81  	IncludeNone     = v1.IncludeNone
    82  	IncludeMetadata = v1.IncludeMetadata
    83  	IncludeObject   = v1.IncludeObject
    84  )