entity

package
v0.54.1 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2024 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 LoadAllUnsafe added in v0.53.1

func LoadAllUnsafe(ctx context.Context, db gorp.SqlExecutor) ([]sdk.Entity, error)

func LoadAndUnmarshalByRefTypeName added in v0.53.1

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

LoadAndUnmarshalByRefTypeName loads an entity by his repository, ref, type, name and unmarshal it

func LoadByRefTypeNameCommit added in v0.53.1

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

LoadByRefTypeNameCommit loads an entity by its repository, ref, 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 LoadByRepositoryAndRefAndCommit added in v0.53.1

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

LoadByRepositoryAndRef loads an entity by his repository, ref

func LoadByTypeAndRefCommit added in v0.53.1

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

LoadByTypeAndRef loads an entity by his repository, type and ref

func LoadEntityByPathAndRefAndCommit added in v0.53.1

func LoadEntityByPathAndRefAndCommit(ctx context.Context, db gorp.SqlExecutor, repositoryID string, path string, ref string, commit string) (*sdk.Entity, error)

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