incluster

package
v0.0.82 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2022 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

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 GetEndpoint() (*schema.Endpoint, error)

func ProvideDatabase

func ProvideDatabase(ctx context.Context, db *Database, deps ExtensionDeps) (*postgres.DB, error)

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"`
	// contains filtered or unexported fields
}

func (*Database) Descriptor deprecated

func (*Database) Descriptor() ([]byte, []int)

Deprecated: Use Database.ProtoReflect.Descriptor instead.

func (*Database) GetName

func (x *Database) GetName() string

func (*Database) GetSchemaFile

func (x *Database) GetSchemaFile() *types.Resource

func (*Database) ProtoMessage

func (*Database) ProtoMessage()

func (*Database) ProtoReflect

func (x *Database) ProtoReflect() protoreflect.Message

func (*Database) Reset

func (x *Database) Reset()

func (*Database) String

func (x *Database) String() string

type ExtensionDeps

type ExtensionDeps struct {
	Creds *gencreds.Creds
	Wire  base.WireDatabase
}

Dependencies that are instantiated once for the lifetime of the extension.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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