Versions in this module Expand all Collapse all v0 v0.11.1 Jun 19, 2023 Changes in this version + func FromConfig(data Configuration, v any) error + type AttachmentRequest struct + Payload Configuration + RegistrationInfo *RegistrationResponse + type AttachmentResponse struct + type AvailableExtensions []FanOut + func (i AvailableExtensions) FindByID(id string) (FanOut, error) + type ChainloopMetadata struct + WorkflowID string + WorkflowName string + WorkflowProject string + WorkflowRunID string + type Configuration []byte + func ToConfig(m any) (Configuration, error) + type Core interface + Describe func() *IntegrationInfo + ValidateAttachmentRequest func(jsonPayload []byte) error + ValidateRegistrationRequest func(jsonPayload []byte) error + type Credentials struct + Password string + URL string + Username string + type ExecuteAttestation struct + Envelope *dsse.Envelope + Predicate chainloop.NormalizablePredicate + Statement *in_toto.Statement + type ExecuteInput struct + Attestation *ExecuteAttestation + Material *ExecuteMaterial + type ExecuteMaterial struct + Content []byte + type ExecutionRequest struct + AttachmentInfo *AttachmentResponse + Input *ExecuteInput + RegistrationInfo *RegistrationResponse + type FanOut interface + type FanOutExtension interface + Attach func(ctx context.Context, req *AttachmentRequest) (*AttachmentResponse, error) + Execute func(ctx context.Context, req *ExecutionRequest) error + Register func(ctx context.Context, req *RegistrationRequest) (*RegistrationResponse, error) + type FanOutFactory = func(l log.Logger) (FanOut, error) + type FanOutIntegration struct + Logger *log.Helper + func NewFanOut(p *NewParams, opts ...NewOpt) (*FanOutIntegration, error) + func (i *FanOutIntegration) Describe() *IntegrationInfo + func (i *FanOutIntegration) String() string + func (i *FanOutIntegration) ValidateAttachmentRequest(jsonPayload []byte) error + func (i *FanOutIntegration) ValidateRegistrationRequest(jsonPayload []byte) error + type InputMaterial struct + Type schemaapi.CraftingSchema_Material_MaterialType + type InputSchema struct + Attachment any + Registration any + type Inputs struct + DSSEnvelope bool + Materials []*InputMaterial + type IntegrationInfo struct + AttachmentJSONSchema []byte + Description string + ID string + RegistrationJSONSchema []byte + SubscribedInputs *Inputs + Version string + type NewOpt func(*FanOutIntegration) + func WithEnvelope() NewOpt + func WithInputMaterial(materialType schemaapi.CraftingSchema_Material_MaterialType) NewOpt + type NewParams struct + Description string + ID string + InputSchema *InputSchema + Logger log.Logger + Version string + type RegistrationRequest struct + Payload Configuration + type RegistrationResponse struct + Credentials *Credentials