Documentation ¶
Index ¶
- Constants
- Variables
- type Condition
- type ConditionList
- type Connector
- type ConnectorAnnotation
- type ConnectorCatalogEntry
- type ConnectorChannel
- type ConnectorCluster
- type ConnectorClusterAnnotation
- type ConnectorClusterList
- type ConnectorClusterPhaseEnum
- type ConnectorClusterPlatform
- type ConnectorClusterStatus
- type ConnectorDeployment
- type ConnectorDeploymentList
- type ConnectorDeploymentStatus
- type ConnectorDesiredState
- type ConnectorList
- type ConnectorNamespace
- type ConnectorNamespaceAnnotation
- type ConnectorNamespaceList
- type ConnectorNamespacePhaseEnum
- type ConnectorNamespaceStatus
- type ConnectorOperator
- type ConnectorShardMetadata
- type ConnectorStatus
- type ConnectorStatusPhase
- type ConnectorTenantOrganisation
- type ConnectorTenantUser
- type ConnectorType
- func (ct *ConnectorType) CapabilitiesNames() []string
- func (ct *ConnectorType) ChannelNames() []string
- func (ct *ConnectorType) JsonSchemaAsMap() (map[string]interface{}, *errors.ServiceError)
- func (ct *ConnectorType) LabelNames() []string
- func (ct *ConnectorType) SetCapabilities(capabilities []string)
- func (ct *ConnectorType) SetChannels(channels []string)
- func (ct *ConnectorType) SetLabels(labels []string)
- func (ct *ConnectorType) SetSchema(schema map[string]interface{}) error
- type ConnectorTypeAnnotation
- type ConnectorTypeCapability
- type ConnectorTypeLabel
- type ConnectorTypeLabelCount
- type ConnectorTypeLabelCountList
- type ConnectorTypeList
- type ConnectorWithConditions
- type ConnectorWithConditionsList
- type KafkaConnectionSettings
- type OperatorList
- type OperatorStatus
- type SchemaRegistryConnectionSettings
- type ServiceAccount
Constants ¶
View Source
const ( ConnectorUnassigned ConnectorDesiredState = "unassigned" ConnectorReady ConnectorDesiredState = "ready" ConnectorStopped ConnectorDesiredState = "stopped" ConnectorDeleted ConnectorDesiredState = "deleted" ConnectorStatusPhaseAssigning ConnectorStatusPhase = "assigning" // set by kas-fleet-manager - user request ConnectorStatusPhaseAssigned ConnectorStatusPhase = "assigned" // set by kas-fleet-manager - worker ConnectorStatusPhaseUpdating ConnectorStatusPhase = "updating" // set by kas-fleet-manager - user request ConnectorStatusPhaseStopped ConnectorStatusPhase = "stopped" // set by kas-fleet-manager - user request ConnectorStatusPhaseProvisioning ConnectorStatusPhase = "provisioning" // set by kas-agent ConnectorStatusPhaseReady ConnectorStatusPhase = "ready" // set by the agent ConnectorStatusPhaseFailed ConnectorStatusPhase = "failed" // set by the agent ConnectorStatusPhaseDeprovisioning ConnectorStatusPhase = "deprovisioning" // set by kas-agent ConnectorStatusPhaseDeleting ConnectorStatusPhase = "deleting" // set by the kas-fleet-manager - user request ConnectorStatusPhaseDeleted ConnectorStatusPhase = "deleted" // set by the agent )
View Source
const ( // ConnectorClusterPhaseDisconnected - cluster status when first created ConnectorClusterPhaseDisconnected ConnectorClusterPhaseEnum = "disconnected" // ConnectorClusterPhaseReady - cluster status when it operational ConnectorClusterPhaseReady ConnectorClusterPhaseEnum = "ready" // ConnectorClusterPhaseDeleting - cluster status when in the process of being deleted ConnectorClusterPhaseDeleting ConnectorClusterPhaseEnum = "deleting" ConnectorClusterOrgIdAnnotation string = "cos.bf2.org/organisation-id" )
View Source
const (
ConnectorTypePricingTierAnnotation = "cos.bf2.org/pricing-tier"
)
Variables ¶
View Source
var AgentConnectorStatusPhase = []string{ string(ConnectorStatusPhaseProvisioning), string(ConnectorStatusPhaseDeprovisioning), string(ConnectorStatusPhaseStopped), string(ConnectorStatusPhaseReady), string(ConnectorStatusPhaseFailed), string(ConnectorStatusPhaseDeleted), }
View Source
var AgentRequestConnectorClusterStatus = []string{ string(ConnectorClusterPhaseReady), }
View Source
var AllConnectorNamespaceStatus = []ConnectorNamespacePhaseEnum{ ConnectorNamespacePhaseDisconnected, ConnectorNamespacePhaseReady, ConnectorNamespacePhaseDeleting, ConnectorNamespacePhaseDeleted, }
View Source
var ValidDesiredStates = []string{ string(ConnectorUnassigned), string(ConnectorReady), string(ConnectorStopped), string(ConnectorDeleted), }
Functions ¶
This section is empty.
Types ¶
type ConditionList ¶
type ConditionList []Condition
func (*ConditionList) Scan ¶
func (c *ConditionList) Scan(value interface{}) error
type Connector ¶
type Connector struct { db.Model NamespaceId *string CloudProvider string Region string MultiAZ bool Name string Owner string OrganisationId string Version int64 `gorm:"type:bigserial;index:"` Annotations []ConnectorAnnotation `gorm:"foreignKey:ConnectorID;references:ID"` ConnectorTypeId string ConnectorSpec api.JSON `gorm:"type:jsonb"` DesiredState ConnectorDesiredState Channel string Kafka KafkaConnectionSettings `gorm:"embedded;embeddedPrefix:kafka_"` SchemaRegistry SchemaRegistryConnectionSettings `gorm:"embedded;embeddedPrefix:schema_registry_"` ServiceAccount ServiceAccount `gorm:"embedded;embeddedPrefix:service_account_"` Status ConnectorStatus `gorm:"foreignKey:ID"` }
type ConnectorAnnotation ¶
type ConnectorCatalogEntry ¶
type ConnectorCatalogEntry struct { ConnectorType *ConnectorType Channels map[string]*ConnectorShardMetadata }
type ConnectorChannel ¶
type ConnectorCluster ¶
type ConnectorCluster struct { db.Model Owner string OrganisationId string Name string ClientId string ClientSecret string Annotations []ConnectorClusterAnnotation `gorm:"foreignKey:ConnectorClusterID;references:ID"` Status ConnectorClusterStatus `gorm:"embedded;embeddedPrefix:status_"` }
type ConnectorClusterList ¶
type ConnectorClusterList []ConnectorCluster
type ConnectorClusterPhaseEnum ¶
type ConnectorClusterPhaseEnum string
type ConnectorClusterStatus ¶
type ConnectorClusterStatus struct { Phase ConnectorClusterPhaseEnum // the version of the agent Version string Platform ConnectorClusterPlatform `gorm:"embedded;embeddedPrefix:platform_"` Conditions ConditionList `gorm:"type:jsonb"` Operators OperatorList `gorm:"type:jsonb"` }
type ConnectorDeployment ¶
type ConnectorDeployment struct { db.Model Version int64 ConnectorID string Connector Connector OperatorID string ConnectorVersion int64 ConnectorShardMetadataID int64 ConnectorShardMetadata ConnectorShardMetadata ClusterID string NamespaceID string AllowUpgrade bool Status ConnectorDeploymentStatus `gorm:"foreignKey:ID;references:ID"` Annotations []ConnectorAnnotation `gorm:"foreignKey:ConnectorID;references:ConnectorID"` }
ConnectorDeployment Holds the deployment configuration of a connector
type ConnectorDeploymentList ¶
type ConnectorDeploymentList []ConnectorDeployment
type ConnectorDesiredState ¶
type ConnectorDesiredState string
type ConnectorList ¶
type ConnectorList []*Connector
type ConnectorNamespace ¶
type ConnectorNamespace struct { db.Model Name string `gorm:"not null;uniqueIndex:idx_connector_namespaces_name_cluster_id"` ClusterId string `gorm:"not null;uniqueIndex:idx_connector_namespaces_name_cluster_id;index"` Owner string `gorm:"not null;index"` Version int64 `gorm:"type:bigserial;index"` Expiration *time.Time // metadata Annotations []ConnectorNamespaceAnnotation `gorm:"foreignKey:NamespaceId;references:ID"` // tenant, only one of the below fields can be not null TenantUserId *string `gorm:"index:connector_namespaces_user_organisation_idx;index:,where:tenant_user_id is not null"` TenantOrganisationId *string `gorm:"index:connector_namespaces_user_organisation_idx;index:,where:tenant_organisation_id is not null"` TenantUser *ConnectorTenantUser `gorm:"foreignKey:TenantUserId"` TenantOrganisation *ConnectorTenantOrganisation `gorm:"foreignKey:TenantOrganisationId"` Status ConnectorNamespaceStatus `gorm:"embedded;embeddedPrefix:status_"` }
type ConnectorNamespaceList ¶
type ConnectorNamespaceList []*ConnectorNamespace
type ConnectorNamespacePhaseEnum ¶
type ConnectorNamespacePhaseEnum string
const ( // ConnectorNamespacePhaseDisconnected - Namespace status when first created ConnectorNamespacePhaseDisconnected ConnectorNamespacePhaseEnum = "disconnected" // ConnectorNamespacePhaseReady- Namespace status when it operational ConnectorNamespacePhaseReady ConnectorNamespacePhaseEnum = "ready" // ConnectorNamespacePhaseDeleting- Namespace status when in the process of being deleted ConnectorNamespacePhaseDeleting ConnectorNamespacePhaseEnum = "deleting" // ConnectorNamespacePhaseDeleted- Namespace status after agent acknowledges namespace delete ConnectorNamespacePhaseDeleted ConnectorNamespacePhaseEnum = "deleted" )
type ConnectorNamespaceStatus ¶
type ConnectorNamespaceStatus struct { Phase ConnectorNamespacePhaseEnum `gorm:"not null;index"` // the version of the agent Version string ConnectorsDeployed int32 `gorm:"-:all"` // gorm ignored field set using query from connector_deployments table Conditions ConditionList `gorm:"type:jsonb"` }
type ConnectorOperator ¶
type ConnectorShardMetadata ¶
type ConnectorShardMetadata struct { ID int64 `gorm:"primaryKey:autoIncrement"` ConnectorTypeId string `gorm:"index:idx_typeid_channel_revision;index:idx_typeid_channel"` Channel string `gorm:"index:idx_typeid_channel_revision;index:idx_typeid_channel"` Revision int64 `gorm:"index:idx_typeid_channel_revision;default:0"` LatestRevision *int64 ShardMetadata api.JSON `gorm:"type:jsonb"` }
type ConnectorStatus ¶
type ConnectorStatus struct { db.Model NamespaceID *string Phase ConnectorStatusPhase }
type ConnectorStatusPhase ¶
type ConnectorStatusPhase string
type ConnectorTenantUser ¶
type ConnectorType ¶
type ConnectorType struct { db.Model Version string Name string `gorm:"index"` Description string Deprecated bool `gorm:"not null;default:false"` // A json schema that can be used to validate a connector's connector_spec field. JsonSchema api.JSON `gorm:"type:jsonb"` // Type's channels Channels []ConnectorChannel `gorm:"many2many:connector_type_channels;"` // URL to an icon of the connector. IconHref string // labels used to categorize the connector Labels []ConnectorTypeLabel `gorm:"foreignKey:ConnectorTypeID"` // annotations metadata Annotations []ConnectorTypeAnnotation `gorm:"foreignKey:ConnectorTypeID;references:ID"` // connector capabilities used to understand what features a connector support Capabilities []ConnectorTypeCapability `gorm:"foreignKey:ConnectorTypeID"` Checksum *string FeaturedRank int32 `gorm:"not null;default:0"` }
func (*ConnectorType) CapabilitiesNames ¶
func (ct *ConnectorType) CapabilitiesNames() []string
func (*ConnectorType) ChannelNames ¶
func (ct *ConnectorType) ChannelNames() []string
func (*ConnectorType) JsonSchemaAsMap ¶
func (ct *ConnectorType) JsonSchemaAsMap() (map[string]interface{}, *errors.ServiceError)
func (*ConnectorType) LabelNames ¶
func (ct *ConnectorType) LabelNames() []string
func (*ConnectorType) SetCapabilities ¶
func (ct *ConnectorType) SetCapabilities(capabilities []string)
func (*ConnectorType) SetChannels ¶
func (ct *ConnectorType) SetChannels(channels []string)
func (*ConnectorType) SetLabels ¶
func (ct *ConnectorType) SetLabels(labels []string)
func (*ConnectorType) SetSchema ¶
func (ct *ConnectorType) SetSchema(schema map[string]interface{}) error
type ConnectorTypeAnnotation ¶
type ConnectorTypeCapability ¶
type ConnectorTypeLabel ¶
type ConnectorTypeLabelCount ¶
type ConnectorTypeLabelCountList ¶
type ConnectorTypeLabelCountList []*ConnectorTypeLabelCount
type ConnectorTypeList ¶
type ConnectorTypeList []*ConnectorType
type ConnectorWithConditions ¶
type ConnectorWithConditionsList ¶
type ConnectorWithConditionsList []*ConnectorWithConditions
type KafkaConnectionSettings ¶
type OperatorList ¶
type OperatorList []OperatorStatus
func (*OperatorList) Scan ¶
func (o *OperatorList) Scan(value interface{}) error
type OperatorStatus ¶
type ServiceAccount ¶
Click to show internal directories.
Click to hide internal directories.