config

package
v0.0.0-...-9b598c7 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2023 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConnectorCatalogEntry

type ConnectorCatalogEntry struct {
	Channels      map[string]ConnectorChannelConfig `json:"channels,omitempty"`
	ConnectorType public.ConnectorType              `json:"connector_type"`
}

type ConnectorChannelConfig

type ConnectorChannelConfig struct {
	ShardMetadata map[string]interface{} `json:"shard_metadata,omitempty"`
}

type ConnectorMetadata

type ConnectorMetadata struct {
	ConnectorTypeId string            `json:"id" yaml:"id"`
	FeaturedRank    int32             `json:"featured-rank" yaml:"featured-rank"`
	Labels          []string          `json:"labels" yaml:"labels"`
	Annotations     map[string]string `json:"annotations" yaml:"annotations"`
}

type ConnectorsConfig

type ConnectorsConfig struct {
	ConnectorEvalDuration               time.Duration           `json:"connector_eval_duration"`
	ConnectorEvalOrganizations          []string                `json:"connector_eval_organizations"`
	ConnectorNamespaceLifecycleAPI      bool                    `json:"connector_namespace_lifecycle_api"`
	ConnectorEnableUnassignedConnectors bool                    `json:"connector_enable_unassigned_connectors"`
	ConnectorCatalogDirs                []string                `json:"connector_types"`
	ConnectorMetadataDirs               []string                `json:"connector_metadata"`
	CatalogEntries                      []ConnectorCatalogEntry `json:"connector_type_urls"`
	CatalogChecksums                    map[string]string       `json:"connector_catalog_checksums"`
	ConnectorsSupportedChannels         []string                `json:"connectors_supported_channels"`
}

func NewConnectorsConfig

func NewConnectorsConfig() *ConnectorsConfig

func (*ConnectorsConfig) AddFlags

func (c *ConnectorsConfig) AddFlags(fs *pflag.FlagSet)

func (*ConnectorsConfig) ReadFiles

func (c *ConnectorsConfig) ReadFiles() error

type ConnectorsQuotaConfig

type ConnectorsQuotaConfig struct {
	ConnectorsQuotaConfigFile    string
	EvalNamespaceQuotaProfile    string
	DefaultNamespaceQuotaProfile string
	// contains filtered or unexported fields
}

func NewConnectorsQuotaConfig

func NewConnectorsQuotaConfig() *ConnectorsQuotaConfig

func (*ConnectorsQuotaConfig) AddFlags

func (c *ConnectorsQuotaConfig) AddFlags(fs *pflag.FlagSet)

func (*ConnectorsQuotaConfig) GetEvalNamespaceQuota

func (c *ConnectorsQuotaConfig) GetEvalNamespaceQuota() (NamespaceQuota, bool)

func (*ConnectorsQuotaConfig) GetNamespaceQuota

func (c *ConnectorsQuotaConfig) GetNamespaceQuota(profileName string) (NamespaceQuota, bool)

func (*ConnectorsQuotaConfig) ReadFiles

func (c *ConnectorsQuotaConfig) ReadFiles() (err error)

type ConnectorsQuotaProfile

type ConnectorsQuotaProfile struct {
	Name   string `yaml:"profile-name"`
	Quotas Quotas `yaml:"quotas"`
}

ConnectorsQuotaProfile is a named quotas configuration

type ConnectorsQuotaProfileList

type ConnectorsQuotaProfileList []ConnectorsQuotaProfile

type ConnectorsQuotaProfileMap

type ConnectorsQuotaProfileMap map[string]Quotas

type NamespaceQuota

type NamespaceQuota struct {
	Connectors     int32  `yaml:"connectors,omitempty"`
	MemoryRequests string `yaml:"memory-requests,omitempty"`
	MemoryLimits   string `yaml:"memory-limits,omitempty"`
	CPURequests    string `yaml:"cpu-requests,omitempty"`
	CPULimits      string `yaml:"cpu-limits,omitempty"`
}

NamespaceQuota has resource limits for namespaces

type Quotas

type Quotas struct {
	NamespaceQuota NamespaceQuota `yaml:"namespace-quota,omitempty"`
}

Quotas has limits for various resource types, e.g. namespaces other resource limits can be added in the future, e.g clusters with limits on namespaces, connectors with limits on catalogs, etc.

Jump to

Keyboard shortcuts

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