bundleinstanceauth

package
v0.0.0-...-a423d60 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2024 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewConverter

func NewConverter(authConverter AuthConverter) *converter

NewConverter missing godoc

func NewRepository

func NewRepository(conv EntityConverter) *repository

NewRepository missing godoc

func NewService

func NewService(repo Repository, uidService UIDService) *service

NewService missing godoc

Types

type AuthConverter

type AuthConverter interface {
	ToGraphQL(in *model.Auth) (*graphql.Auth, error)
	InputFromGraphQL(in *graphql.AuthInput) (*model.AuthInput, error)
}

AuthConverter missing godoc

type BundleConverter

type BundleConverter interface {
	ToGraphQL(in *model.Bundle) (*graphql.Bundle, error)
}

BundleConverter missing godoc

type BundleService

type BundleService interface {
	Get(ctx context.Context, id string) (*model.Bundle, error)
}

BundleService missing godoc

type Collection

type Collection []Entity

Collection missing godoc

func (Collection) Len

func (c Collection) Len() int

Len missing godoc

type Entity

type Entity struct {
	ID               string         `db:"id"`
	BundleID         string         `db:"bundle_id"`
	OwnerID          string         `db:"owner_id"`
	RuntimeID        sql.NullString `db:"runtime_id"`
	RuntimeContextID sql.NullString `db:"runtime_context_id"`
	Context          sql.NullString `db:"context"`
	InputParams      sql.NullString `db:"input_params"`
	AuthValue        sql.NullString `db:"auth_value"`
	StatusCondition  string         `db:"status_condition"`
	StatusTimestamp  time.Time      `db:"status_timestamp"`
	StatusMessage    string         `db:"status_message"`
	StatusReason     string         `db:"status_reason"`
}

Entity missing godoc

func (*Entity) DecorateWithTenantID

func (e *Entity) DecorateWithTenantID(tenant string) interface{}

DecorateWithTenantID decorates the entity with the given tenant ID.

type EntityConverter

type EntityConverter interface {
	ToEntity(in *model.BundleInstanceAuth) (*Entity, error)
	FromEntity(entity *Entity) (*model.BundleInstanceAuth, error)
}

EntityConverter missing godoc

type Repository

type Repository interface {
	Create(ctx context.Context, item *model.BundleInstanceAuth) error
	GetByID(ctx context.Context, tenantID string, id string) (*model.BundleInstanceAuth, error)
	GetForBundle(ctx context.Context, tenant string, id string, bundleID string) (*model.BundleInstanceAuth, error)
	ListByBundleID(ctx context.Context, tenantID string, bundleID string) ([]*model.BundleInstanceAuth, error)
	ListByRuntimeID(ctx context.Context, tenantID string, runtimeID string) ([]*model.BundleInstanceAuth, error)
	Update(ctx context.Context, tenant string, item *model.BundleInstanceAuth) error
	Delete(ctx context.Context, tenantID string, id string) error
}

Repository missing godoc

type Resolver

type Resolver struct {
	// contains filtered or unexported fields
}

Resolver missing godoc

func NewResolver

func NewResolver(transact persistence.Transactioner, svc Service, bndlSvc BundleService, conv Converter, bndlConv BundleConverter) *Resolver

NewResolver missing godoc

func (*Resolver) BundleByInstanceAuth

func (r *Resolver) BundleByInstanceAuth(ctx context.Context, authID string) (*graphql.Bundle, error)

BundleByInstanceAuth missing godoc

func (*Resolver) BundleInstanceAuth

func (r *Resolver) BundleInstanceAuth(ctx context.Context, id string) (*graphql.BundleInstanceAuth, error)

BundleInstanceAuth missing godoc

func (*Resolver) CreateBundleInstanceAuth

func (r *Resolver) CreateBundleInstanceAuth(ctx context.Context, bundleID string, in graphql.BundleInstanceAuthCreateInput) (*graphql.BundleInstanceAuth, error)

CreateBundleInstanceAuth creates a BundleInstanceAuth for a Bundle with ID - bundleID from a given BundleInstanceAuthCreateInput

func (*Resolver) DeleteBundleInstanceAuth

func (r *Resolver) DeleteBundleInstanceAuth(ctx context.Context, authID string) (*graphql.BundleInstanceAuth, error)

DeleteBundleInstanceAuth missing godoc

func (*Resolver) RequestBundleInstanceAuthCreation

func (r *Resolver) RequestBundleInstanceAuthCreation(ctx context.Context, bundleID string, in graphql.BundleInstanceAuthRequestInput) (*graphql.BundleInstanceAuth, error)

RequestBundleInstanceAuthCreation missing godoc

func (*Resolver) RequestBundleInstanceAuthDeletion

func (r *Resolver) RequestBundleInstanceAuthDeletion(ctx context.Context, authID string) (*graphql.BundleInstanceAuth, error)

RequestBundleInstanceAuthDeletion missing godoc

func (*Resolver) SetBundleInstanceAuth

func (r *Resolver) SetBundleInstanceAuth(ctx context.Context, authID string, in graphql.BundleInstanceAuthSetInput) (*graphql.BundleInstanceAuth, error)

SetBundleInstanceAuth missing godoc

func (*Resolver) UpdateBundleInstanceAuth

func (r *Resolver) UpdateBundleInstanceAuth(ctx context.Context, id string, bundleID string, in graphql.BundleInstanceAuthUpdateInput) (*graphql.BundleInstanceAuth, error)

UpdateBundleInstanceAuth updates a BundleInstanceAuth with id for a Bundle with ID - bundleID from a given BundleInstanceAuthUpdateInput

type Service

type Service interface {
	RequestDeletion(ctx context.Context, instanceAuth *model.BundleInstanceAuth, defaultBundleInstanceAuth *model.Auth) (bool, error)
	Create(ctx context.Context, bundleID string, in model.BundleInstanceAuthRequestInput, defaultAuth *model.Auth, requestInputSchema *string) (string, error)
	CreateBundleInstanceAuth(ctx context.Context, bundleID string, in model.BundleInstanceAuthCreateInput, requestInputSchema *string) (string, error)
	Update(ctx context.Context, instanceAuth *model.BundleInstanceAuth) error
	Get(ctx context.Context, id string) (*model.BundleInstanceAuth, error)
	SetAuth(ctx context.Context, id string, in model.BundleInstanceAuthSetInput) error
	Delete(ctx context.Context, id string) error
}

Service missing godoc

type UIDService

type UIDService interface {
	Generate() string
}

UIDService missing godoc

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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