Documentation
¶
Index ¶
- Constants
- Variables
- func GetEndpoint() (*schema.Endpoint, error)
- func ProvideDatabase(ctx context.Context, db *Database, deps ExtensionDeps) (*postgres.DB, error)
- type Database
- func (*Database) Descriptor() ([]byte, []int)deprecated
- func (x *Database) GetName() string
- func (x *Database) GetResourceRef() string
- func (x *Database) GetSchemaFile() *types.Resource
- func (*Database) ProtoMessage()
- func (x *Database) ProtoReflect() protoreflect.Message
- func (x *Database) Reset()
- func (x *Database) String() string
- type ExtensionDeps
Constants ¶
View Source
const EndpointFlag = "postgresql_endpoint"
Variables ¶
View Source
var ( Package__udoubi = &core.Package{ PackageName: "namespacelabs.dev/foundation/universe/db/postgres/incluster", } Provider__udoubi = core.Provider{ Package: Package__udoubi, Instantiate: makeDeps__udoubi, } )
View Source
var File_universe_db_postgres_incluster_provider_proto protoreflect.FileDescriptor
Functions ¶
func GetEndpoint ¶
func ProvideDatabase ¶
Types ¶
type Database ¶
type Database struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` SchemaFile *types.Resource `protobuf:"bytes,2,opt,name=schema_file,json=schemaFile,proto3" json:"schema_file,omitempty"` // If set, uses this resource instead of "universe/db/postgres/server". // "name" and "schema_file" can't be set in this case. ResourceRef string `protobuf:"bytes,3,opt,name=resource_ref,json=resourceRef,proto3" json:"resource_ref,omitempty"` // contains filtered or unexported fields }
func (*Database) Descriptor
deprecated
func (*Database) GetResourceRef ¶ added in v0.0.114
func (*Database) GetSchemaFile ¶
func (*Database) ProtoMessage ¶
func (*Database) ProtoMessage()
func (*Database) ProtoReflect ¶
func (x *Database) ProtoReflect() protoreflect.Message
type ExtensionDeps ¶
type ExtensionDeps struct { Creds *gencreds.Creds Wire base.WireDatabase }
Dependencies that are instantiated once for the lifetime of the extension.
Click to show internal directories.
Click to hide internal directories.