Documentation
¶
Overview ¶
Package models provides data structures for toolkit models.
Index ¶
- type BaseModel
- type ConsolePropertyDefinition
- type ConsolePropertyDefinitionGroup
- type ConsolePropertyRegionalOverride
- func (o ConsolePropertyRegionalOverride) GetFilterableFields() []string
- func (o ConsolePropertyRegionalOverride) GetName() string
- func (o ConsolePropertyRegionalOverride) GetRegions() []string
- func (o ConsolePropertyRegionalOverride) GetValue() string
- func (o ConsolePropertyRegionalOverride) IsFaulty() bool
- type ConsolePropertyTenancyOverride
- type DACShape
- type DacShapeConfigs
- type Dataset
- type DedicatedAICluster
- type Definition
- type DefinitionOverride
- type Environment
- type Faulty
- type Filterable
- type GpuNode
- type GpuPool
- type ItemKey
- type LimitDefinition
- type LimitDefinitionGroup
- type LimitRange
- type LimitRegionalOverride
- type LimitTenancyOverride
- type Metadata
- type ModelArtifact
- type NamedFilterable
- type NamedItem
- type PropertyDefinition
- type PropertyDefinitionGroup
- type PropertyRegionalOverride
- type PropertyTenancyOverride
- type Region
- type ScopedItemKey
- type ServiceTenancy
- type TenancyOverride
- type TenancyOverrideGroup
- type Tenant
- type TenantMetadata
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BaseModel ¶
type BaseModel struct { Capabilities []string `json:"capabilities"` InternalName string `json:"internalName"` Name string `json:"name"` DisplayName string `json:"displayName"` Type string `json:"type"` Version string `json:"version"` Vendor string `json:"vendor"` MaxTokens int `json:"maxTokens"` VaultKey string `json:"vaultKey"` IsExperimental bool `json:"isExperimental"` IsInternal bool `json:"isInternal"` LifeCyclePhase string `json:"lifeCyclePhase"` DeprecatedDate string `json:"deprecatedDate,omitempty"` OnDemandRetiredDate string `json:"onDemandRetiredDate,omitempty"` DedicatedRetiredDate string `json:"dedicatedRetiredDate,omitempty"` IsImageTextToText bool `json:"isImageTextToText"` DacShapeConfigs *DacShapeConfigs `json:"dacShapeConfigs,omitempty"` Runtime string `json:"runtime"` Replicas int `json:"replicas"` Status string `json:"status"` ParameterSize string `json:"parameterSize"` }
func (BaseModel) GetDefaultDacShape ¶
GetDefaultDacShape returns the default DAC shape for the base model.
func (BaseModel) GetFilterableFields ¶
GetFilterableFields returns filterable fields for the base model.
type ConsolePropertyDefinition ¶
type ConsolePropertyDefinition struct { Name string `json:"name"` Description string `json:"description"` Value string `json:"value"` }
ConsolePropertyDefinition represents a console property definition.
func (ConsolePropertyDefinition) GetDescription ¶
func (c ConsolePropertyDefinition) GetDescription() string
GetDescription returns the description of the console property definition.
func (ConsolePropertyDefinition) GetFilterableFields ¶
func (c ConsolePropertyDefinition) GetFilterableFields() []string
GetFilterableFields returns filterable fields for the console property definition.
func (ConsolePropertyDefinition) GetName ¶
func (c ConsolePropertyDefinition) GetName() string
GetName returns the name of the console property definition.
func (ConsolePropertyDefinition) GetValue ¶
func (c ConsolePropertyDefinition) GetValue() string
GetValue returns the value of the console property definition.
func (ConsolePropertyDefinition) IsFaulty ¶ added in v0.1.4
func (c ConsolePropertyDefinition) IsFaulty() bool
IsFaulty returns false by default for ConsolePropertyDefinition.
type ConsolePropertyDefinitionGroup ¶
type ConsolePropertyDefinitionGroup struct { Name string `json:"service"` Values []ConsolePropertyDefinition `json:"values"` }
ConsolePropertyDefinitionGroup groups console property definitions by service name.
type ConsolePropertyRegionalOverride ¶
type ConsolePropertyRegionalOverride struct { Realms []string `json:"realms"` Name string `json:"name"` Regions []string `json:"regions"` Service string `json:"service"` Values []struct { Value string `json:"value"` } `json:"values"` }
ConsolePropertyRegionalOverride represents a regional override for a console property.
func (ConsolePropertyRegionalOverride) GetFilterableFields ¶
func (o ConsolePropertyRegionalOverride) GetFilterableFields() []string
GetFilterableFields returns filterable fields for the console property regional override.
func (ConsolePropertyRegionalOverride) GetName ¶
func (o ConsolePropertyRegionalOverride) GetName() string
GetName returns the name of the console property regional override.
func (ConsolePropertyRegionalOverride) GetRegions ¶
func (o ConsolePropertyRegionalOverride) GetRegions() []string
GetRegions returns the regions of the console property regional override.
func (ConsolePropertyRegionalOverride) GetValue ¶
func (o ConsolePropertyRegionalOverride) GetValue() string
GetValue returns the value of the console property regional override.
func (ConsolePropertyRegionalOverride) IsFaulty ¶ added in v0.1.4
func (o ConsolePropertyRegionalOverride) IsFaulty() bool
IsFaulty returns false by default for ConsolePropertyRegionalOverride.
type ConsolePropertyTenancyOverride ¶
type ConsolePropertyTenancyOverride struct { TenantID string `json:"tenant_id"` ConsolePropertyRegionalOverride }
ConsolePropertyTenancyOverride represents a tenancy override for a console property.
func (ConsolePropertyTenancyOverride) GetFilterableFields ¶
func (o ConsolePropertyTenancyOverride) GetFilterableFields() []string
GetFilterableFields returns filterable fields for the console property tenancy override.
func (ConsolePropertyTenancyOverride) GetTenantID ¶
func (o ConsolePropertyTenancyOverride) GetTenantID() string
GetTenantID returns the tenant ID of the console property tenancy override.
func (ConsolePropertyTenancyOverride) IsFaulty ¶ added in v0.1.4
func (o ConsolePropertyTenancyOverride) IsFaulty() bool
IsFaulty returns false by default for ConsolePropertyTenancyOverride.
type DACShape ¶
type DACShape struct { Name string `yaml:"name" json:"name"` QuotaUnit int `yaml:"quotaUnit" json:"quotaUnit"` Default bool `yaml:"default" json:"default"` }
DACShape represents a DAC shape.
type DacShapeConfigs ¶
type DacShapeConfigs struct {
CompatibleDACShapes []DACShape `yaml:"compatibleDACShapes" json:"compatibleDACShapes"`
}
DacShapeConfigs holds compatible DAC shapes.
type Dataset ¶
type Dataset struct { LimitDefinitionGroup LimitDefinitionGroup ConsolePropertyDefinitionGroup ConsolePropertyDefinitionGroup PropertyDefinitionGroup PropertyDefinitionGroup ConsolePropertyTenancyOverrideMap map[string][]ConsolePropertyTenancyOverride LimitTenancyOverrideMap map[string][]LimitTenancyOverride PropertyTenancyOverrideMap map[string][]PropertyTenancyOverride ConsolePropertyRegionalOverrides []ConsolePropertyRegionalOverride LimitRegionalOverrides []LimitRegionalOverride PropertyRegionalOverrides []PropertyRegionalOverride Tenants []Tenant BaseModels []BaseModel ModelArtifactMap map[string][]ModelArtifact Environments []Environment ServiceTenancies []ServiceTenancy GpuPools []GpuPool GpuNodeMap map[string][]GpuNode DedicatedAIClusterMap map[string][]DedicatedAICluster }
Dataset holds all loaded data for the toolkit.
func (*Dataset) ResetScopedData ¶
func (d *Dataset) ResetScopedData()
ResetScopedData resets all realm-scoped fields to nil.
func (*Dataset) SetDedicatedAIClusterMap ¶
func (d *Dataset) SetDedicatedAIClusterMap(m map[string][]DedicatedAICluster)
SetDedicatedAIClusterMap sets the dedicated AI cluster map using tenant suffixes.
type DedicatedAICluster ¶
type DedicatedAICluster struct { Name string `json:"name"` Status string `json:"status"` TenantID string `json:"tenantId"` Type string `json:"type,omitempty"` UnitShape string `json:"unitShape,omitempty"` Size int `json:"size,omitempty"` Profile string `json:"profile,omitempty"` Owner *Tenant `json:"owner,omitempty"` ModelName string `json:"modelName,omitempty"` TotalReplicas int `json:"totalReplicas"` IdleReplicas int `json:"idleReplicas"` Age string `json:"age"` }
DedicatedAICluster represents a dedicated AI cluster resource.
func (DedicatedAICluster) GetFilterableFields ¶
func (n DedicatedAICluster) GetFilterableFields() []string
GetFilterableFields returns filterable fields for the dedicated AI cluster.
func (DedicatedAICluster) GetName ¶
func (n DedicatedAICluster) GetName() string
GetName returns the name of the dedicated AI cluster.
func (DedicatedAICluster) GetOwnerState ¶ added in v0.1.4
func (n DedicatedAICluster) GetOwnerState() string
func (DedicatedAICluster) GetUsage ¶ added in v0.1.4
func (n DedicatedAICluster) GetUsage() string
func (DedicatedAICluster) IsFaulty ¶ added in v0.1.4
func (n DedicatedAICluster) IsFaulty() bool
IsFaulty returns true if the cluster status is "fail" or "failed".
type Definition ¶
type Definition interface { NamedFilterable GetDescription() string GetValue() string }
Definition represents a definition item with description and value.
type DefinitionOverride ¶
type DefinitionOverride interface { NamedFilterable GetRegions() []string GetValue() string }
DefinitionOverride represents a definition override with regions and value.
type Environment ¶
Environment represents a deployment environment.
func (Environment) Equals ¶
func (e Environment) Equals(o Environment) bool
Equals returns true if the environment is equal to another environment.
func (Environment) GetFilterableFields ¶
func (e Environment) GetFilterableFields() []string
GetFilterableFields returns filterable fields for the environment.
func (Environment) GetKubeContext ¶
func (e Environment) GetKubeContext() string
GetKubeContext returns the Kubernetes context string for the environment.
func (Environment) GetName ¶
func (e Environment) GetName() string
GetName returns the name of the environment.
func (Environment) IsFaulty ¶ added in v0.1.4
func (e Environment) IsFaulty() bool
IsFaulty returns false by default for Environment.
type Faulty ¶ added in v0.1.4
type Faulty interface {
IsFaulty() bool
}
Faulty marks an item that can be checked for faults.
type Filterable ¶
type Filterable interface {
GetFilterableFields() []string
}
Filterable represents an item that can be filtered by fields.
type GpuNode ¶
type GpuNode struct { Name string `json:"name"` InstanceType string `json:"instanceType"` NodePool string `json:"poolName"` Allocatable int `json:"allocatable"` Allocated int `json:"allocated"` IsHealthy bool `json:"isHealthy"` IsReady bool `json:"isReady"` IsSchedulingDisabled bool `json:"isSchedulingDisabled"` // true if node is cordoned Age string `json:"age"` }
GpuNode represents a GPU node.
func (GpuNode) GetFilterableFields ¶
GetFilterableFields returns filterable fields for the GPU node.
type GpuPool ¶
GpuPool represents a pool of GPUs.
func (GpuPool) GetFilterableFields ¶
GetFilterableFields returns filterable fields for the GPU pool.
type LimitDefinition ¶
type LimitDefinition struct { Name string `json:"name"` Description string `json:"description"` Type string `json:"type"` Scope string `json:"scope"` IsReleasedToCustomer bool `json:"is_released_to_customer"` DefaultMin string `json:"default_min"` DefaultMax string `json:"default_max"` Service string `json:"service"` PublicName string `json:"public_name"` IsStaged bool `json:"is_staged"` IsQuota bool `json:"is_quota"` UsageSource string `json:"usage_source"` }
LimitDefinition represents a limit definition for a service.
func (LimitDefinition) GetDescription ¶
func (c LimitDefinition) GetDescription() string
GetDescription returns the description of the limit definition.
func (LimitDefinition) GetFilterableFields ¶
func (c LimitDefinition) GetFilterableFields() []string
GetFilterableFields returns filterable fields for the limit definition.
func (LimitDefinition) GetName ¶
func (c LimitDefinition) GetName() string
GetName returns the name of the limit definition.
func (LimitDefinition) IsFaulty ¶ added in v0.1.4
func (c LimitDefinition) IsFaulty() bool
IsFaulty returns false by default for LimitDefinition.
type LimitDefinitionGroup ¶
type LimitDefinitionGroup struct { Name string `json:"group"` Values []LimitDefinition `json:"values"` }
LimitDefinitionGroup groups limit definitions by name.
type LimitRange ¶
LimitRange represents a min/max range for a limit override.
type LimitRegionalOverride ¶
type LimitRegionalOverride struct { Realms []string `json:"realms"` Group string `json:"group"` Name string `json:"name"` Regions []string `json:"regions"` Values []LimitRange `json:"values"` }
LimitRegionalOverride represents a regional override for a limit.
func (LimitRegionalOverride) GetFilterableFields ¶
func (o LimitRegionalOverride) GetFilterableFields() []string
GetFilterableFields returns filterable fields for the limit regional override.
func (LimitRegionalOverride) GetName ¶
func (o LimitRegionalOverride) GetName() string
GetName returns the name of the limit tenancy override.
func (LimitRegionalOverride) IsFaulty ¶ added in v0.1.4
func (o LimitRegionalOverride) IsFaulty() bool
IsFaulty returns false by default for LimitRegionalOverride.
type LimitTenancyOverride ¶
type LimitTenancyOverride struct { LimitRegionalOverride TenantID string `json:"tenant_id"` }
LimitTenancyOverride represents a tenancy override for a limit.
func (LimitTenancyOverride) GetFilterableFields ¶
func (o LimitTenancyOverride) GetFilterableFields() []string
GetFilterableFields returns filterable fields for the limit tenancy override.
func (LimitTenancyOverride) GetTenantID ¶
func (o LimitTenancyOverride) GetTenantID() string
GetTenantID returns the tenant ID of the limit tenancy override.
type Metadata ¶ added in v0.1.4
type Metadata struct {
Tenants []TenantMetadata `json:"tenants" yaml:"tenants"`
}
Metadata is the top-level structure for metadata.json/yaml.
func (*Metadata) GetTenants ¶ added in v0.1.4
func (m *Metadata) GetTenants(realm string) []TenantMetadata
GetTenants returns all tenants for a given realm.
type ModelArtifact ¶
type ModelArtifact struct { Name string `json:"name"` TensorRTVersion string `json:"tensorrt_version"` GpuCount int `json:"gpu_count"` GpuShape string `json:"gpu_shape"` ModelName string `json:"model_name"` }
ModelArtifact represents a model artifact stored in object storage.
func (ModelArtifact) GetFilterableFields ¶
func (m ModelArtifact) GetFilterableFields() []string
GetFilterableFields returns filterable fields for the model artifact.
func (ModelArtifact) GetGpuConfig ¶
func (m ModelArtifact) GetGpuConfig() string
GetGpuConfig returns the GPU configuration string for the model artifact.
func (ModelArtifact) GetName ¶
func (m ModelArtifact) GetName() string
GetName returns the name of the model artifact.
func (ModelArtifact) IsFaulty ¶ added in v0.1.4
func (m ModelArtifact) IsFaulty() bool
IsFaulty returns false by default for ModelArtifact.
type NamedFilterable ¶
type NamedFilterable interface { NamedItem Filterable Faulty }
NamedFilterable represents an item that is both named and filterable.
type NamedItem ¶
type NamedItem interface {
GetName() string
}
NamedItem represents an item with a name.
type PropertyDefinition ¶
type PropertyDefinition struct { Name string `json:"name"` Description string `json:"description"` Type string `json:"type"` Options []string `json:"options"` DefaultValue string `json:"default_value"` }
PropertyDefinition represents a property definition.
func (PropertyDefinition) GetDescription ¶
func (c PropertyDefinition) GetDescription() string
GetDescription returns the description of the property definition.
func (PropertyDefinition) GetFilterableFields ¶
func (c PropertyDefinition) GetFilterableFields() []string
GetFilterableFields returns filterable fields for the property definition.
func (PropertyDefinition) GetName ¶
func (c PropertyDefinition) GetName() string
GetName returns the name of the property definition.
func (PropertyDefinition) GetValue ¶
func (c PropertyDefinition) GetValue() string
GetValue returns the default value of the property definition.
func (PropertyDefinition) IsFaulty ¶ added in v0.1.4
func (c PropertyDefinition) IsFaulty() bool
IsFaulty returns false by default for PropertyDefinition.
type PropertyDefinitionGroup ¶
type PropertyDefinitionGroup struct { Name string `json:"group"` Values []PropertyDefinition `json:"values"` }
PropertyDefinitionGroup groups property definitions by name.
type PropertyRegionalOverride ¶
type PropertyRegionalOverride struct { Realms []string `json:"realms"` Name string `json:"name"` Regions []string `json:"regions"` Group string `json:"group"` Values []struct { Value string `json:"value"` } `json:"values"` }
PropertyRegionalOverride represents a regional override for a property.
func (PropertyRegionalOverride) GetFilterableFields ¶
func (o PropertyRegionalOverride) GetFilterableFields() []string
GetFilterableFields returns filterable fields for the property regional override.
func (PropertyRegionalOverride) GetName ¶
func (o PropertyRegionalOverride) GetName() string
GetName returns the name of the property regional override.
func (PropertyRegionalOverride) GetRegions ¶
func (o PropertyRegionalOverride) GetRegions() []string
GetRegions returns the regions of the property regional override.
func (PropertyRegionalOverride) GetValue ¶
func (o PropertyRegionalOverride) GetValue() string
GetValue returns the value of the property regional override.
func (PropertyRegionalOverride) IsFaulty ¶ added in v0.1.4
func (o PropertyRegionalOverride) IsFaulty() bool
IsFaulty returns false by default for PropertyRegionalOverride.
type PropertyTenancyOverride ¶
type PropertyTenancyOverride struct { Tag string `json:"tag"` PropertyRegionalOverride }
PropertyTenancyOverride represents a tenancy override for a property.
func (PropertyTenancyOverride) GetFilterableFields ¶
func (o PropertyTenancyOverride) GetFilterableFields() []string
GetFilterableFields returns filterable fields for the property tenancy override.
func (PropertyTenancyOverride) GetTenantID ¶
func (o PropertyTenancyOverride) GetTenantID() string
GetTenantID returns the tenant tag of the property tenancy override.
type Region ¶
type Region string
Region represents a cloud region identifier.
copy from oci-go-sdk/v65@v65.68.0/common/regions.go
const ( // RegionAPChuncheon1 region Chuncheon RegionAPChuncheon1 Region = "ap-chuncheon-1" // RegionAPHyderabad1 region Hyderabad RegionAPHyderabad1 Region = "ap-hyderabad-1" // RegionAPMelbourne1 region Melbourne RegionAPMelbourne1 Region = "ap-melbourne-1" // RegionAPMumbai1 region Mumbai RegionAPMumbai1 Region = "ap-mumbai-1" // RegionAPOsaka1 region Osaka RegionAPOsaka1 Region = "ap-osaka-1" // RegionAPSeoul1 region Seoul RegionAPSeoul1 Region = "ap-seoul-1" // RegionAPSydney1 region Sydney RegionAPSydney1 Region = "ap-sydney-1" // RegionAPTokyo1 region Tokyo RegionAPTokyo1 Region = "ap-tokyo-1" // RegionCAMontreal1 region Montreal RegionCAMontreal1 Region = "ca-montreal-1" // RegionCAToronto1 region Toronto RegionCAToronto1 Region = "ca-toronto-1" // RegionEUAmsterdam1 region Amsterdam RegionEUAmsterdam1 Region = "eu-amsterdam-1" // RegionFRA region Frankfurt RegionFRA Region = "eu-frankfurt-1" // RegionEUZurich1 region Zurich RegionEUZurich1 Region = "eu-zurich-1" // RegionMEJeddah1 region Jeddah RegionMEJeddah1 Region = "me-jeddah-1" // RegionMEDubai1 region Dubai RegionMEDubai1 Region = "me-dubai-1" // RegionSASaopaulo1 region Saopaulo RegionSASaopaulo1 Region = "sa-saopaulo-1" // RegionUKCardiff1 region Cardiff RegionUKCardiff1 Region = "uk-cardiff-1" // RegionLHR region London RegionLHR Region = "uk-london-1" // RegionIAD region Ashburn RegionIAD Region = "us-ashburn-1" // RegionPHX region Phoenix RegionPHX Region = "us-phoenix-1" // RegionSJC1 region Sanjose RegionSJC1 Region = "us-sanjose-1" // RegionSAVinhedo1 region Vinhedo RegionSAVinhedo1 Region = "sa-vinhedo-1" // RegionSASantiago1 region Santiago RegionSASantiago1 Region = "sa-santiago-1" // RegionILJerusalem1 region Jerusalem RegionILJerusalem1 Region = "il-jerusalem-1" // RegionEUMarseille1 region Marseille RegionEUMarseille1 Region = "eu-marseille-1" // RegionAPSingapore1 region Singapore RegionAPSingapore1 Region = "ap-singapore-1" // RegionMEAbudhabi1 region Abudhabi RegionMEAbudhabi1 Region = "me-abudhabi-1" // RegionEUMilan1 region Milan RegionEUMilan1 Region = "eu-milan-1" // RegionEUStockholm1 region Stockholm RegionEUStockholm1 Region = "eu-stockholm-1" // RegionAFJohannesburg1 region Johannesburg RegionAFJohannesburg1 Region = "af-johannesburg-1" // RegionEUParis1 region Paris RegionEUParis1 Region = "eu-paris-1" // RegionMXQueretaro1 region Queretaro RegionMXQueretaro1 Region = "mx-queretaro-1" // RegionEUMadrid1 region Madrid RegionEUMadrid1 Region = "eu-madrid-1" // RegionUSChicago1 region Chicago RegionUSChicago1 Region = "us-chicago-1" // RegionMXMonterrey1 region Monterrey RegionMXMonterrey1 Region = "mx-monterrey-1" // RegionUSSaltlake2 region Saltlake RegionUSSaltlake2 Region = "us-saltlake-2" // RegionSABogota1 region Bogota RegionSABogota1 Region = "sa-bogota-1" // RegionSAValparaiso1 region Valparaiso RegionSAValparaiso1 Region = "sa-valparaiso-1" // RegionUSLangley1 region Langley RegionUSLangley1 Region = "us-langley-1" // RegionUSLuke1 region Luke RegionUSLuke1 Region = "us-luke-1" // RegionUSGovAshburn1 gov region Ashburn RegionUSGovAshburn1 Region = "us-gov-ashburn-1" // RegionUSGovChicago1 gov region Chicago RegionUSGovChicago1 Region = "us-gov-chicago-1" // RegionUSGovPhoenix1 gov region Phoenix RegionUSGovPhoenix1 Region = "us-gov-phoenix-1" // RegionUKGovLondon1 gov region London RegionUKGovLondon1 Region = "uk-gov-london-1" // RegionUKGovCardiff1 gov region Cardiff RegionUKGovCardiff1 Region = "uk-gov-cardiff-1" // RegionAPChiyoda1 region Chiyoda RegionAPChiyoda1 Region = "ap-chiyoda-1" // RegionAPIbaraki1 region Ibaraki RegionAPIbaraki1 Region = "ap-ibaraki-1" // RegionMEDccMuscat1 region Muscat RegionMEDccMuscat1 Region = "me-dcc-muscat-1" // RegionAPDccCanberra1 region Canberra RegionAPDccCanberra1 Region = "ap-dcc-canberra-1" // RegionEUDccMilan1 region Milan RegionEUDccMilan1 Region = "eu-dcc-milan-1" // RegionEUDccMilan2 region Milan RegionEUDccMilan2 Region = "eu-dcc-milan-2" // RegionEUDccDublin2 region Dublin RegionEUDccDublin2 Region = "eu-dcc-dublin-2" // RegionEUDccRating2 region Rating RegionEUDccRating2 Region = "eu-dcc-rating-2" // RegionEUDccRating1 region Rating RegionEUDccRating1 Region = "eu-dcc-rating-1" // RegionEUDccDublin1 region Dublin RegionEUDccDublin1 Region = "eu-dcc-dublin-1" // RegionAPDccGazipur1 region Gazipur RegionAPDccGazipur1 Region = "ap-dcc-gazipur-1" // RegionEUMadrid2 region Madrid RegionEUMadrid2 Region = "eu-madrid-2" // RegionEUFrankfurt2 region Frankfurt RegionEUFrankfurt2 Region = "eu-frankfurt-2" // RegionEUJovanovac1 region Jovanovac RegionEUJovanovac1 Region = "eu-jovanovac-1" // RegionMEDccDoha1 region Doha RegionMEDccDoha1 Region = "me-dcc-doha-1" // RegionEUDccZurich1 region Zurich RegionEUDccZurich1 Region = "eu-dcc-zurich-1" // RegionMEAbudhabi3 region Abudhabi RegionMEAbudhabi3 Region = "me-abudhabi-3" // RegionTacoma is a region not part of the official SDK. RegionTacoma Region = "us-tacoma-1" // RegionAPDccTokyo1 is a region not part of the official SDK. RegionAPDccTokyo1 Region = "ap-dcc-tokyo-1" // RegionUSGovSterling2 is a region not part of the official SDK. RegionUSGovSterling2 Region = "us-gov-sterling-2" // RegionUSGovFortworth1 is a region not part of the official SDK. RegionUSGovFortworth1 Region = "us-gov-fortworth-1" // RegionUSDccPhoenix1 is a region not part of the official SDK. RegionUSDccPhoenix1 Region = "us-dcc-phoenix-1" // RegionUSDccPhoenix2 is a region not part of the official SDK. RegionUSDccPhoenix2 Region = "us-dcc-phoenix-2" )
func CodeToRegion ¶
CodeToRegion returns the Region corresponding to the given code.
type ScopedItemKey ¶
ScopedItemKey represents an item key with a scope.
type ServiceTenancy ¶
type ServiceTenancy struct { Name string `json:"tenancy_name"` Realm string `json:"realm"` HomeRegion string `json:"home_region"` Regions []string `json:"regions"` Environment string `json:"environment"` }
ServiceTenancy represents a service tenancy entity.
func (ServiceTenancy) Environments ¶
func (t ServiceTenancy) Environments() []Environment
Environments returns the environments for the service tenancy.
func (ServiceTenancy) GetFilterableFields ¶
func (t ServiceTenancy) GetFilterableFields() []string
GetFilterableFields returns filterable fields for the service tenancy.
func (ServiceTenancy) GetName ¶
func (t ServiceTenancy) GetName() string
GetName returns the name of the service tenancy.
func (ServiceTenancy) IsFaulty ¶ added in v0.1.4
func (t ServiceTenancy) IsFaulty() bool
IsFaulty returns false by default for ServiceTenancy.
type TenancyOverride ¶
type TenancyOverride interface {
GetTenantID() string
}
TenancyOverride represents an override with a tenant ID.
type TenancyOverrideGroup ¶
type TenancyOverrideGroup struct { Tenants []Tenant LimitTenancyOverrideMap map[string][]LimitTenancyOverride ConsolePropertyTenancyOverrideMap map[string][]ConsolePropertyTenancyOverride PropertyTenancyOverrideMap map[string][]PropertyTenancyOverride }
TenancyOverrideGroup bundles tenants and their three override maps.
type Tenant ¶
type Tenant struct { Name string `json:"name"` IDs []string `json:"ids"` IsInternal bool `json:"is_internal"` Note string `json:"note,omitempty"` }
Tenant represents a tenant entity.
func (Tenant) GetFilterableFields ¶
GetFilterableFields returns filterable fields for the tenant.
func (Tenant) GetTenantID ¶
GetTenantID returns the tenant ID string.
type TenantMetadata ¶ added in v0.1.4
type TenantMetadata struct { Name *string `json:"name,omitempty" yaml:"name,omitempty"` ID string `json:"id" yaml:"id"` IsInternal *bool `json:"is_internal,omitempty" yaml:"is_internal,omitempty"` Note *string `json:"note,omitempty" yaml:"note,omitempty"` }
TenantMetadata represents a single tenant entry in the external metadata file.