...

Source file src/github.com/openshift/api/securityinternal/v1/types.go

Documentation: github.com/openshift/api/securityinternal/v1

     1  package v1
     2  
     3  import (
     4  	metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
     5  )
     6  
     7  // +genclient
     8  // +genclient:nonNamespaced
     9  // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
    10  
    11  // RangeAllocation is used so we can easily expose a RangeAllocation typed for security group
    12  // This is an internal API, not intended for external consumption.
    13  //
    14  // Compatibility level 1: Stable within a major release for a minimum of 12 months or 3 minor releases (whichever is longer).
    15  // +openshift:compatibility-gen:level=1
    16  type RangeAllocation struct {
    17  	metav1.TypeMeta `json:",inline"`
    18  
    19  	// metadata is the standard object's metadata.
    20  	// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
    21  	metav1.ObjectMeta `json:"metadata,omitempty"`
    22  
    23  	// range is a string representing a unique label for a range of uids, "1000000000-2000000000/10000".
    24  	Range string `json:"range"`
    25  
    26  	// data is a byte array representing the serialized state of a range allocation.  It is a bitmap
    27  	// with each bit set to one to represent a range is taken.
    28  	Data []byte `json:"data"`
    29  }
    30  
    31  // +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
    32  
    33  // RangeAllocationList is a list of RangeAllocations objects
    34  // This is an internal API, not intended for external consumption.
    35  //
    36  // Compatibility level 1: Stable within a major release for a minimum of 12 months or 3 minor releases (whichever is longer).
    37  // +openshift:compatibility-gen:level=1
    38  type RangeAllocationList struct {
    39  	metav1.TypeMeta `json:",inline"`
    40  
    41  	// metadata is the standard list's metadata.
    42  	// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
    43  	metav1.ListMeta `json:"metadata,omitempty"`
    44  
    45  	// List of RangeAllocations.
    46  	Items []RangeAllocation `json:"items"`
    47  }
    48  

View as plain text