entity

package
v0.53.0 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2023 License: BSD-3-Clause Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Delete added in v0.53.0

func LoadAndUnmarshalByBranchTypeName added in v0.53.0

func LoadAndUnmarshalByBranchTypeName(ctx context.Context, db gorp.SqlExecutor, projectRepositoryID string, branch string, t string, name string, out interface{}, opts ...gorpmapping.GetOptionFunc) error

LoadAndUnmarshalByBranchTypeName loads an entity by his repository, branch, type, name and unmarshal it

func LoadByBranchTypeName

func LoadByBranchTypeName(ctx context.Context, db gorp.SqlExecutor, projectRepositoryID string, branch string, t string, name string, opts ...gorpmapping.GetOptionFunc) (*sdk.Entity, error)

LoadByBranchTypeName loads an entity by its repository, branch, type and name

func LoadByBranchTypeNameCommit added in v0.53.0

func LoadByBranchTypeNameCommit(ctx context.Context, db gorp.SqlExecutor, projectRepositoryID string, branch string, t string, name string, commit string, opts ...gorpmapping.GetOptionFunc) (*sdk.Entity, error)

LoadByBranchTypeNameCommit loads an entity by its repository, branch, type, name and commit

func LoadByRepository added in v0.53.0

func LoadByRepository(ctx context.Context, db gorp.SqlExecutor, projectRepositoryID string, opts ...gorpmapping.GetOptionFunc) ([]sdk.Entity, error)

LoadByRepository loads all an entities in the given repository,

func LoadByRepositoryAndBranch added in v0.53.0

func LoadByRepositoryAndBranch(ctx context.Context, db gorp.SqlExecutor, projectRepositoryID string, branch string, opts ...gorpmapping.GetOptionFunc) ([]sdk.Entity, error)

LoadByRepositoryAndBranch loads an entity by his repository, branch

func LoadByRepositoryAndType added in v0.53.0

func LoadByRepositoryAndType(ctx context.Context, db gorp.SqlExecutor, projectRepositoryID string, t string, opts ...gorpmapping.GetOptionFunc) ([]sdk.Entity, error)

LoadByRepositoryAndType loads an entity by his repository, type

func LoadByTypeAndBranch

func LoadByTypeAndBranch(ctx context.Context, db gorp.SqlExecutor, projectRepositoryID string, t string, branch string, opts ...gorpmapping.GetOptionFunc) ([]sdk.Entity, error)

LoadByTypeAndBranch loads an entity by his repository, type and branch

func UnsafeLoadAllByType added in v0.53.0

func UnsafeLoadAllByType(_ context.Context, db gorp.SqlExecutor, t string) ([]sdk.EntityFullName, error)

func UnsafeLoadAllByTypeAndProjectKeys added in v0.53.0

func UnsafeLoadAllByTypeAndProjectKeys(_ context.Context, db gorp.SqlExecutor, t string, keys []string) ([]sdk.EntityFullName, error)

func WorkerModelDecryptSecrets added in v0.53.0

func WorkerModelDecryptSecrets(ctx context.Context, db gorp.SqlExecutor, projectID int64, wm *sdk.V2WorkerModel, decryptFunc keys.DecryptFunc) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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