system

package
v0.0.0-...-e97a364 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 28, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

nolint:whitespace

Index

Constants

View Source
const (
	ConfigType model.ResourceType = "Config"
)
View Source
const (
	DataSourceType model.ResourceType = "DataSource"
)
View Source
const (
	SecretType model.ResourceType = "Secret"
)
View Source
const (
	ZoneInsightType model.ResourceType = "ZoneInsight"
)
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,
	DDSFlags:            model.GlobalToAllZonesFlag,
	WsPath:              "",
	DubboctlArg:         "",
	DubboctlListArg:     "",
	AllowToInspect:      false,
	IsPolicy:            false,
	SingularDisplayName: "Config",
	PluralDisplayName:   "Configs",
	IsExperimental:      false,
}
View Source
var DataSourceResourceTypeDescriptor = model.ResourceTypeDescriptor{
	Name:                DataSourceType,
	Resource:            NewDataSourceResource(),
	ResourceList:        &DataSourceResourceList{},
	ReadOnly:            false,
	AdminOnly:           false,
	Scope:               model.ScopeGlobal,
	WsPath:              "datasources",
	DubboctlArg:         "datasource",
	DubboctlListArg:     "datasources",
	AllowToInspect:      false,
	IsPolicy:            false,
	SingularDisplayName: "Data Source",
	PluralDisplayName:   "Data Sources",
	IsExperimental:      false,
}
View Source
var SecretResourceTypeDescriptor = model.ResourceTypeDescriptor{
	Name:                SecretType,
	Resource:            NewSecretResource(),
	ResourceList:        &SecretResourceList{},
	ReadOnly:            false,
	AdminOnly:           false,
	Scope:               model.ScopeGlobal,
	WsPath:              "secrets",
	DubboctlArg:         "secret",
	DubboctlListArg:     "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",
	DubboctlArg:         "",
	DubboctlListArg:     "",
	AllowToInspect:      false,
	IsPolicy:            false,
	SingularDisplayName: "Zone Insight",
	PluralDisplayName:   "Zone Insights",
	IsExperimental:      false,
}
View Source
var ZoneResourceTypeDescriptor = model.ResourceTypeDescriptor{
	Name:                ZoneType,
	Resource:            NewZoneResource(),
	ResourceList:        &ZoneResourceList{},
	ReadOnly:            false,
	AdminOnly:           false,
	Scope:               model.ScopeGlobal,
	WsPath:              "zones",
	DubboctlArg:         "zone",
	DubboctlListArg:     "zones",
	AllowToInspect:      false,
	IsPolicy:            false,
	SingularDisplayName: "Zone",
	PluralDisplayName:   "Zones",
	IsExperimental:      false,
}

Functions

This section is empty.

Types

type ConfigResource

type ConfigResource struct {
	Meta model.ResourceMeta
	Spec *system_proto.Config
}

func NewConfigResource

func NewConfigResource() *ConfigResource

func (*ConfigResource) Descriptor

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) AddItem

func (l *ConfigResourceList) AddItem(r model.Resource) error

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

func (*ConfigResourceList) SetPagination

func (l *ConfigResourceList) SetPagination(p model.Pagination)

type DataSourceResource

type DataSourceResource struct {
	Meta model.ResourceMeta
	Spec *system_proto.DataSource
}

func NewDataSourceResource

func NewDataSourceResource() *DataSourceResource

func (*DataSourceResource) Descriptor

func (*DataSourceResource) GetMeta

func (t *DataSourceResource) GetMeta() model.ResourceMeta

func (*DataSourceResource) GetSpec

func (t *DataSourceResource) GetSpec() model.ResourceSpec

func (*DataSourceResource) SetMeta

func (t *DataSourceResource) SetMeta(m model.ResourceMeta)

func (*DataSourceResource) SetSpec

func (t *DataSourceResource) SetSpec(spec model.ResourceSpec) error

type DataSourceResourceList

type DataSourceResourceList struct {
	Items      []*DataSourceResource
	Pagination model.Pagination
}

func (*DataSourceResourceList) AddItem

func (*DataSourceResourceList) GetItemType

func (l *DataSourceResourceList) GetItemType() model.ResourceType

func (*DataSourceResourceList) GetItems

func (l *DataSourceResourceList) GetItems() []model.Resource

func (*DataSourceResourceList) GetPagination

func (l *DataSourceResourceList) GetPagination() *model.Pagination

func (*DataSourceResourceList) NewItem

func (l *DataSourceResourceList) NewItem() model.Resource

func (*DataSourceResourceList) SetPagination

func (l *DataSourceResourceList) SetPagination(p model.Pagination)

type SecretResource

type SecretResource struct {
	Meta model.ResourceMeta
	Spec *system_proto.Secret
}

func NewSecretResource

func NewSecretResource() *SecretResource

func (*SecretResource) Descriptor

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) AddItem

func (l *SecretResourceList) AddItem(r model.Resource) error

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

func (*SecretResourceList) SetPagination

func (l *SecretResourceList) SetPagination(p model.Pagination)

type ZoneInsightResource

type ZoneInsightResource struct {
	Meta model.ResourceMeta
	Spec *system_proto.ZoneInsight
}

func NewZoneInsightResource

func NewZoneInsightResource() *ZoneInsightResource

func (*ZoneInsightResource) Descriptor

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 (*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

func (*ZoneInsightResourceList) SetPagination

func (l *ZoneInsightResourceList) SetPagination(p model.Pagination)

type ZoneResource

type ZoneResource struct {
	Meta model.ResourceMeta
	Spec *system_proto.Zone
}

func NewZoneResource

func NewZoneResource() *ZoneResource

func (*ZoneResource) Descriptor

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) AddItem

func (l *ZoneResourceList) AddItem(r model.Resource) error

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

func (*ZoneResourceList) SetPagination

func (l *ZoneResourceList) SetPagination(p model.Pagination)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL