github.com/vmware/govmomi@v0.37.2/cns/types/enum.go (about)

     1  /*
     2  Copyright (c) 2019 VMware, Inc. All Rights Reserved.
     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 types
    18  
    19  import (
    20  	"reflect"
    21  
    22  	"github.com/vmware/govmomi/vim25/types"
    23  )
    24  
    25  type CnsVolumeType string
    26  
    27  const (
    28  	CnsVolumeTypeBlock = CnsVolumeType("BLOCK")
    29  	CnsVolumeTypeFile  = CnsVolumeType("FILE")
    30  )
    31  
    32  func init() {
    33  	types.Add("CnsVolumeType", reflect.TypeOf((*CnsVolumeType)(nil)).Elem())
    34  }
    35  
    36  type CnsClusterFlavor string
    37  
    38  const (
    39  	CnsClusterFlavorVanilla  = CnsClusterFlavor("VANILLA")
    40  	CnsClusterFlavorWorkload = CnsClusterFlavor("WORKLOAD")
    41  	CnsClusterFlavorGuest    = CnsClusterFlavor("GUEST_CLUSTER")
    42  	CnsClusterFlavorUnknown  = CnsClusterFlavor("ClusterFlavor_Unknown")
    43  )
    44  
    45  func init() {
    46  	types.Add("CnsClusterFlavor", reflect.TypeOf((*CnsClusterFlavor)(nil)).Elem())
    47  }
    48  
    49  type QuerySelectionNameType string
    50  
    51  const (
    52  	QuerySelectionNameTypeVolumeType             = QuerySelectionNameType("VOLUME_TYPE")
    53  	QuerySelectionNameTypeVolumeName             = QuerySelectionNameType("VOLUME_NAME")
    54  	QuerySelectionNameTypeBackingObjectDetails   = QuerySelectionNameType("BACKING_OBJECT_DETAILS")
    55  	QuerySelectionNameTypeComplianceStatus       = QuerySelectionNameType("COMPLIANCE_STATUS")
    56  	QuerySelectionNameTypeDataStoreAccessibility = QuerySelectionNameType("DATASTORE_ACCESSIBILITY_STATUS")
    57  	QuerySelectionNameTypeHealthStatus           = QuerySelectionNameType("HEALTH_STATUS")
    58  	QuerySelectionNameTypeDataStoreUrl           = QuerySelectionNameType("DATASTORE_URL")
    59  	QuerySelectionNameTypePolicyId               = QuerySelectionNameType("POLICY_ID")
    60  )
    61  
    62  func init() {
    63  	types.Add("QuerySelectionNameType", reflect.TypeOf((*QuerySelectionNameType)(nil)).Elem())
    64  }
    65  
    66  type CnsClusterType string
    67  
    68  const (
    69  	CnsClusterTypeKubernetes = CnsClusterType("KUBERNETES")
    70  )
    71  
    72  func init() {
    73  	types.Add("CnsClusterType", reflect.TypeOf((*CnsClusterType)(nil)).Elem())
    74  }
    75  
    76  type CnsKubernetesEntityType string
    77  
    78  const (
    79  	CnsKubernetesEntityTypePVC = CnsKubernetesEntityType("PERSISTENT_VOLUME_CLAIM")
    80  	CnsKubernetesEntityTypePV  = CnsKubernetesEntityType("PERSISTENT_VOLUME")
    81  	CnsKubernetesEntityTypePOD = CnsKubernetesEntityType("POD")
    82  )
    83  
    84  type CnsQuerySelectionNameType string
    85  
    86  const (
    87  	CnsQuerySelectionName_VOLUME_NAME                    = CnsQuerySelectionNameType("VOLUME_NAME")
    88  	CnsQuerySelectionName_VOLUME_TYPE                    = CnsQuerySelectionNameType("VOLUME_TYPE")
    89  	CnsQuerySelectionName_BACKING_OBJECT_DETAILS         = CnsQuerySelectionNameType("BACKING_OBJECT_DETAILS")
    90  	CnsQuerySelectionName_COMPLIANCE_STATUS              = CnsQuerySelectionNameType("COMPLIANCE_STATUS")
    91  	CnsQuerySelectionName_DATASTORE_ACCESSIBILITY_STATUS = CnsQuerySelectionNameType("DATASTORE_ACCESSIBILITY_STATUS")
    92  	CnsQuerySelectionName_HEALTH_STATUS                  = CnsQuerySelectionNameType("HEALTH_STATUS")
    93  	CnsQuerySelectionName_DATASTORE_URL                  = CnsQuerySelectionNameType("DATASTORE_URL")
    94  	CnsQuerySelectionName_POLICY_ID                      = CnsQuerySelectionNameType("POLICY_ID")
    95  )
    96  
    97  func init() {
    98  	types.Add("CnsKubernetesEntityType", reflect.TypeOf((*CnsKubernetesEntityType)(nil)).Elem())
    99  }