Documentation ¶
Index ¶
- func NewConverter(authConverter AuthConverter) *converter
- func NewRepository(conv EntityConverter) *repository
- func NewService(repo Repository, uidService UIDService) *service
- type AuthConverter
- type BundleConverter
- type BundleService
- type Collection
- type Converter
- type Entity
- type EntityConverter
- type Repository
- type Resolver
- func (r *Resolver) BundleByInstanceAuth(ctx context.Context, authID string) (*graphql.Bundle, error)
- func (r *Resolver) BundleInstanceAuth(ctx context.Context, id string) (*graphql.BundleInstanceAuth, error)
- func (r *Resolver) CreateBundleInstanceAuth(ctx context.Context, bundleID string, in graphql.BundleInstanceAuthCreateInput) (*graphql.BundleInstanceAuth, error)
- func (r *Resolver) DeleteBundleInstanceAuth(ctx context.Context, authID string) (*graphql.BundleInstanceAuth, error)
- func (r *Resolver) RequestBundleInstanceAuthCreation(ctx context.Context, bundleID string, ...) (*graphql.BundleInstanceAuth, error)
- func (r *Resolver) RequestBundleInstanceAuthDeletion(ctx context.Context, authID string) (*graphql.BundleInstanceAuth, error)
- func (r *Resolver) SetBundleInstanceAuth(ctx context.Context, authID string, in graphql.BundleInstanceAuthSetInput) (*graphql.BundleInstanceAuth, error)
- func (r *Resolver) UpdateBundleInstanceAuth(ctx context.Context, id string, bundleID string, ...) (*graphql.BundleInstanceAuth, error)
- type Service
- type UIDService
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 ¶
BundleConverter missing godoc
type BundleService ¶
BundleService missing godoc
type Converter ¶
type Converter interface { ToGraphQL(in *model.BundleInstanceAuth) (*graphql.BundleInstanceAuth, error) RequestInputFromGraphQL(in graphql.BundleInstanceAuthRequestInput) model.BundleInstanceAuthRequestInput SetInputFromGraphQL(in graphql.BundleInstanceAuthSetInput) (model.BundleInstanceAuthSetInput, error) CreateInputFromGraphQL(in graphql.BundleInstanceAuthCreateInput) (model.BundleInstanceAuthCreateInput, error) UpdateInputFromGraphQL(in graphql.BundleInstanceAuthUpdateInput) (model.BundleInstanceAuthUpdateInput, error) }
Converter 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 ¶
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