Versions in this module Expand all Collapse all v0 v0.2.0 Nov 14, 2024 v0.1.0 Jun 20, 2024 Changes in this version + var ErrContextNotFound = errors.New("context not found") + var ErrPolicyNotFound = errors.New("policy not found") + var ErrSpaceNotFound = errors.New("space not found") + var ErrStackNotFound = errors.New("stack not found") + func NewContextRepository(client client.Client) *contextRepository + func NewPolicyRepository(client client.Client) *policyRepository + func NewRunRepository(client client.Client) *runRepository + func NewSpaceRepository(client client.Client) *spaceRepository + func NewStackRepository(client client.Client) *stackRepository + type ContextRepository interface + Create func(context.Context, *v1beta1.Context) (*models.Context, error) + Get func(context.Context, *v1beta1.Context) (*models.Context, error) + Update func(context.Context, *v1beta1.Context) (*models.Context, error) + type CreateRunQuery struct + type CreateStackQuery struct + type PolicyRepository interface + Create func(context.Context, *v1beta1.Policy) (*models.Policy, error) + Get func(context.Context, *v1beta1.Policy) (*models.Policy, error) + Update func(context.Context, *v1beta1.Policy) (*models.Policy, error) + type PolicyType string + type RunRepository interface + Create func(context.Context, *v1beta1.Stack) (*models.Run, error) + Get func(context.Context, *v1beta1.Run) (*models.Run, error) + type SpaceRepository interface + Create func(context.Context, *v1beta1.Space) (*models.Space, error) + Get func(context.Context, *v1beta1.Space) (*models.Space, error) + Update func(context.Context, *v1beta1.Space) (*models.Space, error) + type StackRepository interface + Create func(context.Context, *v1beta1.Stack) (*models.Stack, error) + Get func(context.Context, *v1beta1.Stack) (*models.Stack, error) + Update func(context.Context, *v1beta1.Stack) (*models.Stack, error)