Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewSchemaConfigContext ¶
func NewSchemaConfigContext(parent context.Context, config SchemaConfig) context.Context
NewSchemaConfigContext returns a new context with the given SchemaConfig attached.
Types ¶
type SchemaConfig ¶
type SchemaConfig struct { Catalog string // Catalog table. Connector string // Connector table. CostReport string // CostReport table. DistributeLock string // DistributeLock table. Environment string // Environment table. EnvironmentConnectorRelationship string // EnvironmentConnectorRelationship table. Perspective string // Perspective table. Project string // Project table. Role string // Role table. Service string // Service table. ServiceRelationship string // ServiceRelationship table. ServiceResource string // ServiceResource table. ServiceResourceRelationship string // ServiceResourceRelationship table. ServiceRevision string // ServiceRevision table. Setting string // Setting table. Subject string // Subject table. SubjectRoleRelationship string // SubjectRoleRelationship table. Template string // Template table. TemplateVersion string // TemplateVersion table. Token string // Token table. Variable string // Variable table. }
SchemaConfig represents alternative schema names for all tables that can be passed at runtime.
func SchemaConfigFromContext ¶
func SchemaConfigFromContext(ctx context.Context) SchemaConfig
SchemaConfigFromContext returns a SchemaConfig stored inside a context, or empty if there isn't one.
Click to show internal directories.
Click to hide internal directories.