resolved

package
v0.0.0-...-ff101a3 Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MigrationName

func MigrationName(sourceName, targetName string) (string, error)

func ResolveDatabaseName

func ResolveDatabaseName(app *nais_io_v1alpha1.Application) (string, error)

Types

type GcpProject

type GcpProject struct {
	Id string
}

func ResolveGcpProject

func ResolveGcpProject(ctx context.Context, cfg *config.Config, mgr *common_main.Manager) (*GcpProject, error)

func (*GcpProject) GcpComponentURI

func (r *GcpProject) GcpComponentURI(kind, name string) string

func (*GcpProject) GcpParentURI

func (r *GcpProject) GcpParentURI() string

type Instance

type Instance struct {
	Name             string
	PrimaryIp        string
	OutgoingIp       string
	AppUsername      string
	AppPassword      string
	PostgresPassword string
	SslCert          SslCert
}

func ResolveInstance

func ResolveInstance(ctx context.Context, app *nais_io_v1alpha1.Application, mgr *common_main.Manager) (*Instance, error)

type Resolved

type Resolved struct {
	GcpProjectId string
	DatabaseName string
	Source       Instance
	Target       Instance
}

type SslCert

type SslCert struct {
	SslClientKey  string
	SslClientCert string
	SslCaCert     string
}

Jump to

Keyboard shortcuts

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