repository

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrContextNotFound = errors.New("context not found")
)
View Source
var ErrPolicyNotFound = errors.New("policy not found")
View Source
var ErrSpaceNotFound = errors.New("space not found")
View Source
var (
	ErrStackNotFound = errors.New("stack not found")
)

Functions

func NewContextRepository

func NewContextRepository(client client.Client) *contextRepository

func NewPolicyRepository

func NewPolicyRepository(client client.Client) *policyRepository

func NewRunRepository

func NewRunRepository(client client.Client) *runRepository

func NewSpaceRepository

func NewSpaceRepository(client client.Client) *spaceRepository

func NewStackRepository

func NewStackRepository(client client.Client) *stackRepository

Types

type ContextRepository

type ContextRepository interface {
	Create(context.Context, *v1beta1.Context) (*models.Context, error)
	Update(context.Context, *v1beta1.Context) (*models.Context, error)
	Get(context.Context, *v1beta1.Context) (*models.Context, error)
}

type CreateRunQuery

type CreateRunQuery struct {
}

type CreateStackQuery

type CreateStackQuery struct {
}

type PolicyRepository

type PolicyRepository interface {
	Create(context.Context, *v1beta1.Policy) (*models.Policy, error)
	Update(context.Context, *v1beta1.Policy) (*models.Policy, error)
	Get(context.Context, *v1beta1.Policy) (*models.Policy, error)
}

type PolicyType

type PolicyType string

type RunRepository

type RunRepository interface {
	Create(context.Context, *v1beta1.Stack) (*models.Run, error)
	Get(context.Context, *v1beta1.Run) (*models.Run, error)
}

type SpaceRepository

type SpaceRepository interface {
	Create(context.Context, *v1beta1.Space) (*models.Space, error)
	Update(context.Context, *v1beta1.Space) (*models.Space, error)
	Get(context.Context, *v1beta1.Space) (*models.Space, error)
}

type StackRepository

type StackRepository interface {
	Create(context.Context, *v1beta1.Stack) (*models.Stack, error)
	Update(context.Context, *v1beta1.Stack) (*models.Stack, error)
	Get(context.Context, *v1beta1.Stack) (*models.Stack, error)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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