snowflakewif

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

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