Documentation
¶
Index ¶
- func Delete(_ context.Context, db gorpmapper.SqlExecutorWithTx, e *sdk.Entity) error
- func Insert(ctx context.Context, db gorpmapper.SqlExecutorWithTx, e *sdk.Entity) error
- func LoadAndUnmarshalByBranchTypeName(ctx context.Context, db gorp.SqlExecutor, projectRepositoryID string, ...) error
- func LoadByBranchTypeName(ctx context.Context, db gorp.SqlExecutor, projectRepositoryID string, ...) (*sdk.Entity, error)
- func LoadByBranchTypeNameCommit(ctx context.Context, db gorp.SqlExecutor, projectRepositoryID string, ...) (*sdk.Entity, error)
- func LoadByRepository(ctx context.Context, db gorp.SqlExecutor, projectRepositoryID string, ...) ([]sdk.Entity, error)
- func LoadByRepositoryAndBranch(ctx context.Context, db gorp.SqlExecutor, projectRepositoryID string, ...) ([]sdk.Entity, error)
- func LoadByRepositoryAndType(ctx context.Context, db gorp.SqlExecutor, projectRepositoryID string, t string, ...) ([]sdk.Entity, error)
- func LoadByTypeAndBranch(ctx context.Context, db gorp.SqlExecutor, projectRepositoryID string, t string, ...) ([]sdk.Entity, error)
- func UnsafeLoadAllByType(_ context.Context, db gorp.SqlExecutor, t string) ([]sdk.EntityFullName, error)
- func UnsafeLoadAllByTypeAndProjectKeys(_ context.Context, db gorp.SqlExecutor, t string, keys []string) ([]sdk.EntityFullName, error)
- func Update(ctx context.Context, db gorpmapper.SqlExecutorWithTx, e *sdk.Entity) error
- func WorkerModelDecryptSecrets(ctx context.Context, db gorp.SqlExecutor, projectID int64, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Delete ¶ added in v0.53.0
func Delete(_ context.Context, db gorpmapper.SqlExecutorWithTx, e *sdk.Entity) error
func Insert ¶
func Insert(ctx context.Context, db gorpmapper.SqlExecutorWithTx, e *sdk.Entity) error
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 Update ¶
func Update(ctx context.Context, db gorpmapper.SqlExecutorWithTx, e *sdk.Entity) 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.
Click to show internal directories.
Click to hide internal directories.