controller_adapters

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	MONTH_MAP = map[string]string{
		"":    "JANUARY",
		"Jan": "JANUARY",
		"Feb": "FEBRUARY",
		"Mar": "MARCH",
	}
)

Functions

This section is empty.

Types

type Database

type Database struct {
	v1alpha1.Database
}

Wrapper over api/v1alpha1.Database required to provide implementation of the DatabaseInterface defined in the package ndb_api

func (*Database) GetDBInstanceDatabaseNames

func (d *Database) GetDBInstanceDatabaseNames() string

func (*Database) GetDBInstanceName

func (d *Database) GetDBInstanceName() string

func (*Database) GetDBInstanceSize

func (d *Database) GetDBInstanceSize() int

func (*Database) GetDBInstanceTimeZone

func (d *Database) GetDBInstanceTimeZone() string

func (*Database) GetDBInstanceType

func (d *Database) GetDBInstanceType() string

func (*Database) GetNDBClusterId

func (d *Database) GetNDBClusterId() string

func (*Database) GetProfileResolvers

func (d *Database) GetProfileResolvers() ndb_api.ProfileResolvers

func (*Database) GetTMDetails added in v0.0.6

func (d *Database) GetTMDetails() (tmName, tmDescription, slaName string)

func (*Database) GetTMSchedule added in v0.0.6

func (d *Database) GetTMSchedule() (schedule ndb_api.Schedule, err error)

Returns a schedule struct for the time machine.

type Profile

type Profile struct {
	v1alpha1.Profile
	ProfileType string
}

Wrapper over api/v1alpha1.Profile required to provide implementation of the ProfileResolver interface defined in the package ndb_api

func (*Profile) GetId

func (p *Profile) GetId() (id string)

func (*Profile) GetName

func (p *Profile) GetName() (name string)

func (*Profile) Resolve

func (inputProfile *Profile) Resolve(ctx context.Context, allProfiles []ndb_api.ProfileResponse, filter func(p ndb_api.ProfileResponse) bool) (profile ndb_api.ProfileResponse, err error)

Jump to

Keyboard shortcuts

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