incluster

package
v0.0.83 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Package__r7qsle = &core.Package{
		PackageName: "namespacelabs.dev/foundation/universe/db/maria/incluster",
	}

	Provider__r7qsle = core.Provider{
		Package:     Package__r7qsle,
		Instantiate: makeDeps__r7qsle,
	}
)
View Source
var File_universe_db_maria_incluster_provider_proto protoreflect.FileDescriptor

Functions

func ProvideDatabase

func ProvideDatabase(ctx context.Context, db *Database, deps ExtensionDeps) (*sql.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          *creds.Creds
	ReadinessCheck core.Check
}

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