repository

package
v0.5.4 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2023 License: MIT Imports: 21 Imported by: 0

Documentation

Overview

Package repository GENERATED BY gengo:runtimedoc DON'T EDIT THIS FILE

Index

Constants

View Source
const AdminGroupID group.ID = 10000

Variables

This section is empty.

Functions

func AdminGroup

func AdminGroup() *group.Group

func SeedForGroupEnv

func SeedForGroupEnv(env *group.Env) *vault.Seed

Types

type GetAccountID

type GetAccountID = func(ctx context.Context) (account.ID, error)

type GroupAccountRepository

type GroupAccountRepository struct {
	Group *group.Group
}

func NewGroupAccountRepository

func NewGroupAccountRepository(g *group.Group) *GroupAccountRepository

func (*GroupAccountRepository) Delete

func (r *GroupAccountRepository) Delete(ctx context.Context, accountID account.ID) error

func (*GroupAccountRepository) List

func (r *GroupAccountRepository) List(ctx context.Context, where b.SqlExpr) ([]*group.Account, error)

func (*GroupAccountRepository) ListAccountRobot

func (r *GroupAccountRepository) ListAccountRobot(
	ctx context.Context,
	params group.RobotQueryParams,
	rangeIdentity RangeIdentity,
) (*group.RobotDataList, error)

func (*GroupAccountRepository) ListAccountUser

func (r *GroupAccountRepository) ListAccountUser(
	ctx context.Context,
	params group.UserQueryParams,
	rangeIdentity RangeIdentity,
) (*group.UserDataList, error)

func (*GroupAccountRepository) Put

func (r *GroupAccountRepository) Put(ctx context.Context, roleType group.RoleType, accountID account.ID) (*group.Account, error)

func (GroupAccountRepository) RuntimeDoc

func (v GroupAccountRepository) RuntimeDoc(names ...string) ([]string, bool)

type GroupEnvDeploymentRepository

type GroupEnvDeploymentRepository struct {
	GroupEnv *group.Env
	// contains filtered or unexported fields
}

func NewGroupEnvDeploymentRepository

func NewGroupEnvDeploymentRepository(g *group.Env) *GroupEnvDeploymentRepository

func (*GroupEnvDeploymentRepository) BindKubepkg

func (r *GroupEnvDeploymentRepository) BindKubepkg(ctx context.Context, deploymentName string, kubepkgRel group.KubepkgRel) (*group.Deployment, error)

func (*GroupEnvDeploymentRepository) Delete added in v0.4.0

func (v *GroupEnvDeploymentRepository) Delete(ctx context.Context, deploymentName string) error

func (*GroupEnvDeploymentRepository) Get added in v0.4.0

func (*GroupEnvDeploymentRepository) GetSettingValues added in v0.4.1

func (r *GroupEnvDeploymentRepository) GetSettingValues(ctx context.Context, deploymentID group.DeploymentID, deploymentSettingID group.DeploymentSettingID) (*group.DeploymentValues, error)

func (*GroupEnvDeploymentRepository) ListKubePkgHistory

func (r *GroupEnvDeploymentRepository) ListKubePkgHistory(ctx context.Context, deploymentID group.DeploymentID, pager *datatypes.Pager) ([]*v1alpha1.KubePkg, error)

func (*GroupEnvDeploymentRepository) ListKubepkg

func (*GroupEnvDeploymentRepository) RecordDeployment

func (r *GroupEnvDeploymentRepository) RecordDeployment(ctx context.Context, deploymentID group.DeploymentID, kubepkgRef *kubepkg.Ref) (*group.DeploymentHistory, error)

func (*GroupEnvDeploymentRepository) RecordSetting

func (r *GroupEnvDeploymentRepository) RecordSetting(ctx context.Context, deploymentID group.DeploymentID, settings map[string]any) (*group.DeploymentSetting, error)

func (GroupEnvDeploymentRepository) RuntimeDoc

func (v GroupEnvDeploymentRepository) RuntimeDoc(names ...string) ([]string, bool)

type GroupEnvRepository

type GroupEnvRepository struct {
	Group *group.Group
}

func NewGroupEnvRepository

func NewGroupEnvRepository(g *group.Group) *GroupEnvRepository

func (*GroupEnvRepository) BindCluster

func (r *GroupEnvRepository) BindCluster(ctx context.Context, envName string, clusterID cluster.ID) (*group.EnvWithCluster, error)

func (*GroupEnvRepository) Delete

func (repo *GroupEnvRepository) Delete(ctx context.Context, envName string) error

func (*GroupEnvRepository) Get

func (*GroupEnvRepository) List

func (*GroupEnvRepository) Put

func (GroupEnvRepository) RuntimeDoc

func (v GroupEnvRepository) RuntimeDoc(names ...string) ([]string, bool)

type GroupRepository

type GroupRepository struct {
}

func NewGroupRepository

func NewGroupRepository() *GroupRepository

func (GroupRepository) Delete

func (GroupRepository) Delete(ctx context.Context, name string) error

func (GroupRepository) Get

func (GroupRepository) Get(ctx context.Context, name string) (*group.Group, error)

func (GroupRepository) List

func (GroupRepository) Put

func (GroupRepository) Put(ctx context.Context, name string, info group.Info) (*group.Group, error)

func (GroupRepository) RangeGroupAccount

func (GroupRepository) RangeGroupAccount(ctx context.Context, where sqlbuilder.SqlExpr, each func(ga *group.Account) error) error

type RangeIdentity

type RangeIdentity = func(ctx context.Context, ids []account.ID, each func(i *account.Identity) error) error

Jump to

Keyboard shortcuts

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