Documentation
¶
Index ¶
- func BehaviourReferenceTx(ctx context.Context, tx pgx.Tx, org, repo, head, target string, now time.Time) (string, error)
- func CollectValidation(target, format string, build, test sandbox.CommandResult) (*deployment.BuildValidation, error)
- func Meaningful(p deployment.Provenance) bool
- type Receipt
- type Service
- func (s *Service) Get(ctx context.Context, session auth.Session, org, id string) (Receipt, error)
- func (s *Service) List(ctx context.Context, session auth.Session, org, repo, cursor string, limit int) (domain.Page[Receipt], error)
- func (s *Service) Receive(ctx context.Context, org, repo string, signed deployment.SignedProvenance) (Receipt, error)
- func (s *Service) Request(ctx context.Context, session auth.Session, org, id string) (Receipt, deployment.PreviewRequest, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BehaviourReferenceTx ¶
func CollectValidation ¶
func CollectValidation(target, format string, build, test sandbox.CommandResult) (*deployment.BuildValidation, error)
func Meaningful ¶
func Meaningful(p deployment.Provenance) bool
Types ¶
type Receipt ¶
type Receipt struct {
Mode string `json:"mode,omitempty"`
ID string `json:"id"`
Provenance deployment.SignedProvenance `json:"provenance"`
ReceivedAt time.Time `json:"received_at"`
}
Click to show internal directories.
Click to hide internal directories.