Documentation
¶
Overview ¶
nolint:whitespace
Index ¶
- Constants
- Variables
- func InvalidLocationErr(resourceType model.ResourceType, supportedLocations ...core.CpMode) error
- func IsInvalidLocationErr(err error) bool
- func ValidateDataSource(path validators.PathBuilder, ds *system_proto.DataSource) validators.ValidationError
- func ValidateLocation(resourceType model.ResourceType, mode core.CpMode) error
- type ConfigResource
- type ConfigResourceList
- type GlobalSecretResource
- func (t *GlobalSecretResource) Descriptor() model.ResourceTypeDescriptor
- func (t *GlobalSecretResource) GetMeta() model.ResourceMeta
- func (t *GlobalSecretResource) GetSpec() model.ResourceSpec
- func (t *GlobalSecretResource) SetMeta(m model.ResourceMeta)
- func (t *GlobalSecretResource) SetSpec(spec model.ResourceSpec) error
- func (t *GlobalSecretResource) Validate() error
- type GlobalSecretResourceList
- func (l *GlobalSecretResourceList) AddItem(r model.Resource) error
- func (l *GlobalSecretResourceList) GetItemType() model.ResourceType
- func (l *GlobalSecretResourceList) GetItems() []model.Resource
- func (l *GlobalSecretResourceList) GetPagination() *model.Pagination
- func (l *GlobalSecretResourceList) NewItem() model.Resource
- type SecretResource
- type SecretResourceList
- type ZoneInsightResource
- func (t *ZoneInsightResource) Descriptor() model.ResourceTypeDescriptor
- func (t *ZoneInsightResource) GetMeta() model.ResourceMeta
- func (t *ZoneInsightResource) GetSpec() model.ResourceSpec
- func (t *ZoneInsightResource) SetMeta(m model.ResourceMeta)
- func (t *ZoneInsightResource) SetSpec(spec model.ResourceSpec) error
- type ZoneInsightResourceList
- func (l *ZoneInsightResourceList) AddItem(r model.Resource) error
- func (l *ZoneInsightResourceList) GetItemType() model.ResourceType
- func (l *ZoneInsightResourceList) GetItems() []model.Resource
- func (l *ZoneInsightResourceList) GetPagination() *model.Pagination
- func (l *ZoneInsightResourceList) NewItem() model.Resource
- type ZoneOverviewResource
- func (t *ZoneOverviewResource) Descriptor() model.ResourceTypeDescriptor
- func (t *ZoneOverviewResource) GetMeta() model.ResourceMeta
- func (t *ZoneOverviewResource) GetSpec() model.ResourceSpec
- func (t *ZoneOverviewResource) SetMeta(m model.ResourceMeta)
- func (t *ZoneOverviewResource) SetSpec(spec model.ResourceSpec) error
- type ZoneOverviewResourceList
- func (l *ZoneOverviewResourceList) AddItem(r model.Resource) error
- func (l *ZoneOverviewResourceList) GetItemType() model.ResourceType
- func (l *ZoneOverviewResourceList) GetItems() []model.Resource
- func (l *ZoneOverviewResourceList) GetPagination() *model.Pagination
- func (l *ZoneOverviewResourceList) NewItem() model.Resource
- type ZoneResource
- type ZoneResourceList
Constants ¶
View Source
const (
ConfigType model.ResourceType = "Config"
)
View Source
const (
GlobalSecretType model.ResourceType = "GlobalSecret"
)
View Source
const (
SecretType model.ResourceType = "Secret"
)
View Source
const (
ZoneInsightType model.ResourceType = "ZoneInsight"
)
View Source
const (
ZoneOverviewType model.ResourceType = "ZoneOverview"
)
View Source
const (
ZoneType model.ResourceType = "Zone"
)
Variables ¶
View Source
var ConfigResourceTypeDescriptor = model.ResourceTypeDescriptor{ Name: ConfigType, Resource: NewConfigResource(), ResourceList: &ConfigResourceList{}, ReadOnly: false, AdminOnly: false, Scope: model.ScopeGlobal, KDSFlags: model.FromGlobalToZone, WsPath: "", KumactlArg: "", KumactlListArg: "", AllowToInspect: false, IsPolicy: false, SingularDisplayName: "Config", PluralDisplayName: "Configs", IsExperimental: false, }
View Source
var GlobalSecretResourceTypeDescriptor model.ResourceTypeDescriptor
View Source
var SecretResourceTypeDescriptor = model.ResourceTypeDescriptor{ Name: SecretType, Resource: NewSecretResource(), ResourceList: &SecretResourceList{}, ReadOnly: false, AdminOnly: true, Scope: model.ScopeMesh, KDSFlags: model.FromGlobalToZone, WsPath: "secrets", KumactlArg: "secret", KumactlListArg: "secrets", AllowToInspect: false, IsPolicy: false, SingularDisplayName: "Secret", PluralDisplayName: "Secrets", IsExperimental: false, }
View Source
var ZoneInsightResourceTypeDescriptor = model.ResourceTypeDescriptor{ Name: ZoneInsightType, Resource: NewZoneInsightResource(), ResourceList: &ZoneInsightResourceList{}, ReadOnly: true, AdminOnly: false, Scope: model.ScopeGlobal, WsPath: "zone-insights", KumactlArg: "", KumactlListArg: "", AllowToInspect: false, IsPolicy: false, SingularDisplayName: "Zone Insight", PluralDisplayName: "Zone Insights", IsExperimental: false, }
View Source
var ZoneOverviewResourceTypeDescriptor = model.ResourceTypeDescriptor{ Name: ZoneOverviewType, Resource: NewZoneOverviewResource(), ResourceList: &ZoneOverviewResourceList{}, ReadOnly: false, AdminOnly: false, Scope: model.ScopeGlobal, WsPath: "", KumactlArg: "", KumactlListArg: "", AllowToInspect: false, IsPolicy: false, SingularDisplayName: "Zone Overview", PluralDisplayName: "Zone Overviews", IsExperimental: false, }
View Source
var ZoneResourceTypeDescriptor = model.ResourceTypeDescriptor{ Name: ZoneType, Resource: NewZoneResource(), ResourceList: &ZoneResourceList{}, ReadOnly: false, AdminOnly: false, Scope: model.ScopeGlobal, WsPath: "zones", KumactlArg: "zone", KumactlListArg: "zones", AllowToInspect: false, IsPolicy: false, SingularDisplayName: "Zone", PluralDisplayName: "Zones", IsExperimental: false, }
Functions ¶
func InvalidLocationErr ¶
func InvalidLocationErr(resourceType model.ResourceType, supportedLocations ...core.CpMode) error
func IsInvalidLocationErr ¶
func ValidateDataSource ¶ added in v1.8.1
func ValidateDataSource(path validators.PathBuilder, ds *system_proto.DataSource) validators.ValidationError
func ValidateLocation ¶
func ValidateLocation(resourceType model.ResourceType, mode core.CpMode) error
ValidateLocation checks if System Resources are applied on a proper Control Plane Note: ideally, this should be hooked to ResourceManager but for now on Universal we mark API as readonly therefore we don't need this validation yet.
Types ¶
type ConfigResource ¶
type ConfigResource struct { Meta model.ResourceMeta Spec *system_proto.Config }
func NewConfigResource ¶
func NewConfigResource() *ConfigResource
func (*ConfigResource) Descriptor ¶ added in v1.8.1
func (t *ConfigResource) Descriptor() model.ResourceTypeDescriptor
func (*ConfigResource) GetMeta ¶
func (t *ConfigResource) GetMeta() model.ResourceMeta
func (*ConfigResource) GetSpec ¶
func (t *ConfigResource) GetSpec() model.ResourceSpec
func (*ConfigResource) SetMeta ¶
func (t *ConfigResource) SetMeta(m model.ResourceMeta)
func (*ConfigResource) SetSpec ¶
func (t *ConfigResource) SetSpec(spec model.ResourceSpec) error
type ConfigResourceList ¶
type ConfigResourceList struct { Items []*ConfigResource Pagination model.Pagination }
func (*ConfigResourceList) GetItemType ¶
func (l *ConfigResourceList) GetItemType() model.ResourceType
func (*ConfigResourceList) GetItems ¶
func (l *ConfigResourceList) GetItems() []model.Resource
func (*ConfigResourceList) GetPagination ¶
func (l *ConfigResourceList) GetPagination() *model.Pagination
func (*ConfigResourceList) NewItem ¶
func (l *ConfigResourceList) NewItem() model.Resource
type GlobalSecretResource ¶
type GlobalSecretResource struct { Meta model.ResourceMeta Spec *system_proto.Secret }
func NewGlobalSecretResource ¶
func NewGlobalSecretResource() *GlobalSecretResource
func (*GlobalSecretResource) Descriptor ¶ added in v1.8.1
func (t *GlobalSecretResource) Descriptor() model.ResourceTypeDescriptor
func (*GlobalSecretResource) GetMeta ¶
func (t *GlobalSecretResource) GetMeta() model.ResourceMeta
func (*GlobalSecretResource) GetSpec ¶
func (t *GlobalSecretResource) GetSpec() model.ResourceSpec
func (*GlobalSecretResource) SetMeta ¶
func (t *GlobalSecretResource) SetMeta(m model.ResourceMeta)
func (*GlobalSecretResource) SetSpec ¶
func (t *GlobalSecretResource) SetSpec(spec model.ResourceSpec) error
func (*GlobalSecretResource) Validate ¶
func (t *GlobalSecretResource) Validate() error
type GlobalSecretResourceList ¶
type GlobalSecretResourceList struct { Items []*GlobalSecretResource Pagination model.Pagination }
func (*GlobalSecretResourceList) AddItem ¶
func (l *GlobalSecretResourceList) AddItem(r model.Resource) error
func (*GlobalSecretResourceList) GetItemType ¶
func (l *GlobalSecretResourceList) GetItemType() model.ResourceType
func (*GlobalSecretResourceList) GetItems ¶
func (l *GlobalSecretResourceList) GetItems() []model.Resource
func (*GlobalSecretResourceList) GetPagination ¶
func (l *GlobalSecretResourceList) GetPagination() *model.Pagination
func (*GlobalSecretResourceList) NewItem ¶
func (l *GlobalSecretResourceList) NewItem() model.Resource
type SecretResource ¶
type SecretResource struct { Meta model.ResourceMeta Spec *system_proto.Secret }
func NewSecretResource ¶
func NewSecretResource() *SecretResource
func (*SecretResource) Descriptor ¶ added in v1.8.1
func (t *SecretResource) Descriptor() model.ResourceTypeDescriptor
func (*SecretResource) GetMeta ¶
func (t *SecretResource) GetMeta() model.ResourceMeta
func (*SecretResource) GetSpec ¶
func (t *SecretResource) GetSpec() model.ResourceSpec
func (*SecretResource) SetMeta ¶
func (t *SecretResource) SetMeta(m model.ResourceMeta)
func (*SecretResource) SetSpec ¶
func (t *SecretResource) SetSpec(spec model.ResourceSpec) error
type SecretResourceList ¶
type SecretResourceList struct { Items []*SecretResource Pagination model.Pagination }
func (*SecretResourceList) GetItemType ¶
func (l *SecretResourceList) GetItemType() model.ResourceType
func (*SecretResourceList) GetItems ¶
func (l *SecretResourceList) GetItems() []model.Resource
func (*SecretResourceList) GetPagination ¶
func (l *SecretResourceList) GetPagination() *model.Pagination
func (*SecretResourceList) NewItem ¶
func (l *SecretResourceList) NewItem() model.Resource
type ZoneInsightResource ¶
type ZoneInsightResource struct { Meta model.ResourceMeta Spec *system_proto.ZoneInsight }
func NewZoneInsightResource ¶
func NewZoneInsightResource() *ZoneInsightResource
func (*ZoneInsightResource) Descriptor ¶ added in v1.8.1
func (t *ZoneInsightResource) Descriptor() model.ResourceTypeDescriptor
func (*ZoneInsightResource) GetMeta ¶
func (t *ZoneInsightResource) GetMeta() model.ResourceMeta
func (*ZoneInsightResource) GetSpec ¶
func (t *ZoneInsightResource) GetSpec() model.ResourceSpec
func (*ZoneInsightResource) SetMeta ¶
func (t *ZoneInsightResource) SetMeta(m model.ResourceMeta)
func (*ZoneInsightResource) SetSpec ¶
func (t *ZoneInsightResource) SetSpec(spec model.ResourceSpec) error
type ZoneInsightResourceList ¶
type ZoneInsightResourceList struct { Items []*ZoneInsightResource Pagination model.Pagination }
func (*ZoneInsightResourceList) AddItem ¶
func (l *ZoneInsightResourceList) AddItem(r model.Resource) error
func (*ZoneInsightResourceList) GetItemType ¶
func (l *ZoneInsightResourceList) GetItemType() model.ResourceType
func (*ZoneInsightResourceList) GetItems ¶
func (l *ZoneInsightResourceList) GetItems() []model.Resource
func (*ZoneInsightResourceList) GetPagination ¶
func (l *ZoneInsightResourceList) GetPagination() *model.Pagination
func (*ZoneInsightResourceList) NewItem ¶
func (l *ZoneInsightResourceList) NewItem() model.Resource
type ZoneOverviewResource ¶
type ZoneOverviewResource struct { Meta model.ResourceMeta Spec *system_proto.ZoneOverview }
func NewZoneOverviewResource ¶
func NewZoneOverviewResource() *ZoneOverviewResource
func (*ZoneOverviewResource) Descriptor ¶ added in v1.8.1
func (t *ZoneOverviewResource) Descriptor() model.ResourceTypeDescriptor
func (*ZoneOverviewResource) GetMeta ¶
func (t *ZoneOverviewResource) GetMeta() model.ResourceMeta
func (*ZoneOverviewResource) GetSpec ¶
func (t *ZoneOverviewResource) GetSpec() model.ResourceSpec
func (*ZoneOverviewResource) SetMeta ¶
func (t *ZoneOverviewResource) SetMeta(m model.ResourceMeta)
func (*ZoneOverviewResource) SetSpec ¶
func (t *ZoneOverviewResource) SetSpec(spec model.ResourceSpec) error
type ZoneOverviewResourceList ¶
type ZoneOverviewResourceList struct { Items []*ZoneOverviewResource Pagination model.Pagination }
func NewZoneOverviews ¶
func NewZoneOverviews(zones ZoneResourceList, insights ZoneInsightResourceList) ZoneOverviewResourceList
func (*ZoneOverviewResourceList) AddItem ¶
func (l *ZoneOverviewResourceList) AddItem(r model.Resource) error
func (*ZoneOverviewResourceList) GetItemType ¶
func (l *ZoneOverviewResourceList) GetItemType() model.ResourceType
func (*ZoneOverviewResourceList) GetItems ¶
func (l *ZoneOverviewResourceList) GetItems() []model.Resource
func (*ZoneOverviewResourceList) GetPagination ¶
func (l *ZoneOverviewResourceList) GetPagination() *model.Pagination
func (*ZoneOverviewResourceList) NewItem ¶
func (l *ZoneOverviewResourceList) NewItem() model.Resource
type ZoneResource ¶
type ZoneResource struct { Meta model.ResourceMeta Spec *system_proto.Zone }
func NewZoneResource ¶
func NewZoneResource() *ZoneResource
func (*ZoneResource) Descriptor ¶ added in v1.8.1
func (t *ZoneResource) Descriptor() model.ResourceTypeDescriptor
func (*ZoneResource) GetMeta ¶
func (t *ZoneResource) GetMeta() model.ResourceMeta
func (*ZoneResource) GetSpec ¶
func (t *ZoneResource) GetSpec() model.ResourceSpec
func (*ZoneResource) SetMeta ¶
func (t *ZoneResource) SetMeta(m model.ResourceMeta)
func (*ZoneResource) SetSpec ¶
func (t *ZoneResource) SetSpec(spec model.ResourceSpec) error
type ZoneResourceList ¶
type ZoneResourceList struct { Items []*ZoneResource Pagination model.Pagination }
func (*ZoneResourceList) GetItemType ¶
func (l *ZoneResourceList) GetItemType() model.ResourceType
func (*ZoneResourceList) GetItems ¶
func (l *ZoneResourceList) GetItems() []model.Resource
func (*ZoneResourceList) GetPagination ¶
func (l *ZoneResourceList) GetPagination() *model.Pagination
func (*ZoneResourceList) NewItem ¶
func (l *ZoneResourceList) NewItem() model.Resource
Click to show internal directories.
Click to hide internal directories.