mongodb

package
v0.0.0-...-8ecd7f4 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2024 License: BSD-3-Clause Imports: 31 Imported by: 2

Documentation

Index

Constants

View Source
const PoolCollectionName = "pool"

Variables

This section is empty.

Functions

This section is empty.

Types

type PlanStorage

type PlanStorage struct{}

func (*PlanStorage) Delete

func (s *PlanStorage) Delete(ctx context.Context, p app.Plan) error

func (*PlanStorage) FindAll

func (s *PlanStorage) FindAll(ctx context.Context) ([]app.Plan, error)

func (*PlanStorage) FindByName

func (s *PlanStorage) FindByName(ctx context.Context, name string) (*app.Plan, error)

func (*PlanStorage) FindDefault

func (s *PlanStorage) FindDefault(ctx context.Context) (*app.Plan, error)

func (*PlanStorage) Insert

func (s *PlanStorage) Insert(ctx context.Context, p app.Plan) error

type PlatformImageStorage

type PlatformImageStorage struct{}

func (*PlatformImageStorage) Append

func (s *PlatformImageStorage) Append(ctx context.Context, name string, version int, images []string) error

func (*PlatformImageStorage) Delete

func (s *PlatformImageStorage) Delete(ctx context.Context, name string) error

func (*PlatformImageStorage) FindByName

func (s *PlatformImageStorage) FindByName(ctx context.Context, name string) (*image.PlatformImage, error)

func (*PlatformImageStorage) Upsert

type PlatformStorage

type PlatformStorage struct{}

func (*PlatformStorage) Delete

func (s *PlatformStorage) Delete(ctx context.Context, p app.Platform) error

func (*PlatformStorage) FindAll

func (s *PlatformStorage) FindAll(ctx context.Context) ([]app.Platform, error)

func (*PlatformStorage) FindByName

func (s *PlatformStorage) FindByName(ctx context.Context, name string) (*app.Platform, error)

func (*PlatformStorage) FindEnabled

func (s *PlatformStorage) FindEnabled(ctx context.Context) ([]app.Platform, error)

func (*PlatformStorage) Insert

func (s *PlatformStorage) Insert(ctx context.Context, p app.Platform) error

func (*PlatformStorage) Update

func (s *PlatformStorage) Update(ctx context.Context, p app.Platform) error

type PoolStorage

type PoolStorage struct{}

func (*PoolStorage) FindAll

func (ps *PoolStorage) FindAll(ctx context.Context) ([]provision.Pool, error)

func (*PoolStorage) FindByName

func (ps *PoolStorage) FindByName(ctx context.Context, name string) (*provision.Pool, error)

type TeamStorage

type TeamStorage struct{}

func (*TeamStorage) Delete

func (s *TeamStorage) Delete(ctx context.Context, t auth.Team) error

func (*TeamStorage) FindAll

func (s *TeamStorage) FindAll(ctx context.Context) ([]auth.Team, error)

func (*TeamStorage) FindByName

func (s *TeamStorage) FindByName(ctx context.Context, name string) (*auth.Team, error)

func (*TeamStorage) FindByNames

func (s *TeamStorage) FindByNames(ctx context.Context, names []string) ([]auth.Team, error)

func (*TeamStorage) Insert

func (s *TeamStorage) Insert(ctx context.Context, t auth.Team) error

func (*TeamStorage) Update

func (s *TeamStorage) Update(ctx context.Context, t auth.Team) error

Jump to

Keyboard shortcuts

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