environment

package
v0.0.0-...-02d1e04 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2019 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Environment

type Environment struct {
	gormsupport.Lifecycle
	ID            *uuid.UUID `sql:"type:uuid default uuid_generate_v4()" gorm:"primary_key"`
	Name          *string
	Type          *string
	SpaceID       *uuid.UUID `sql:"type:uuid"`
	NamespaceName *string
	ClusterURL    *string
}

func (Environment) TableName

func (e Environment) TableName() string

type GormRepository

type GormRepository struct {
	// contains filtered or unexported fields
}

func NewRepository

func NewRepository(db *gorm.DB) *GormRepository

func (*GormRepository) Create

func (r *GormRepository) Create(ctx context.Context, env *Environment) (*Environment, error)

func (*GormRepository) List

func (r *GormRepository) List(ctx context.Context, spaceID uuid.UUID) ([]*Environment, error)

func (*GormRepository) Load

func (r *GormRepository) Load(ctx context.Context, envID uuid.UUID) (*Environment, error)

type Repository

type Repository interface {
	Create(ctx context.Context, env *Environment) (*Environment, error)
	List(ctx context.Context, spaceID uuid.UUID) ([]*Environment, error)
	Load(ctx context.Context, envID uuid.UUID) (*Environment, error)
}

Jump to

Keyboard shortcuts

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