snowflakewif

package
v0.2.0-rc.3-linux-arm64 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2026 License: Apache-2.0 Imports: 6 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNotFound = xerror.NotFound(xerror.DataSource).Detail("workload identity binding not found")

Functions

This section is empty.

Types

type Binding

type Binding struct {
	Key
	Issuer  string
	Account string
	Desired bool
	State   string
	EntryID string
}

type Key

type Key struct {
	ID           int
	Organization slug.Slug
	DataSource   slug.Slug
}

type Repository

type Repository struct{}

func (Repository) Delete

func (Repository) Delete(ctx context.Context, db postgres.DBTX, key Key) error

func (Repository) Due

func (Repository) Due(ctx context.Context, db postgres.DBTX) ([]Key, error)

Due is a privileged control-plane enumeration; runtime access uses Ready only.

func (Repository) Get

func (Repository) Get(ctx context.Context, db postgres.DBTX, key Key) (Binding, error)

func (Repository) LockConnection

func (Repository) LockConnection(ctx context.Context, db postgres.DBTX, org, ds slug.Slug) error

func (Repository) OnboardingState

func (Repository) OnboardingState(ctx context.Context, db postgres.DBTX, org, ds slug.Slug, issuer, account string) (string, error)

OnboardingState exposes only the exact connection's public lifecycle state.

func (Repository) Ready

func (Repository) Ready(ctx context.Context, db postgres.DBTX, org, ds slug.Slug, issuer, account string) (bool, error)

func (Repository) RevokeOther

func (Repository) RevokeOther(ctx context.Context, db postgres.DBTX, org, ds slug.Slug, issuer, account string, enabled bool) error

func (Repository) SetState

func (Repository) SetState(ctx context.Context, db postgres.DBTX, binding Binding, state string) error

func (Repository) Upsert

func (Repository) Upsert(ctx context.Context, db postgres.DBTX, org, ds slug.Slug, issuer, account string) error

Jump to

Keyboard shortcuts

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