Documentation ¶
Index ¶
- Constants
- Variables
- type ActionsOpts
- type ArtifactDownload
- type ArtifactDownloadOpts
- type ArtifactUpload
- type ArtifactUploadOpts
- type AttestaionResultRunnerContext
- type AttestationAdd
- type AttestationAddOpts
- type AttestationInit
- type AttestationInitOpts
- type AttestationPush
- type AttestationPushOpts
- type AttestationReset
- type AttestationResetOpts
- type AttestationStatus
- type AttestationStatusOpts
- type AttestationStatusResult
- type AttestationStatusResultMaterial
- type AttestationStatusWorkflowMeta
- type CASArtifact
- type ConfigContextItem
- type ConfigContextItemOCIRepo
- type ConfigContextItemUser
- type ConfigCurrentContext
- type DeleteAccount
- type EnvVar
- type ErrRunnerContextNotFound
- type IntegrationAddDeptrack
- type IntegrationAttachmentItem
- type IntegrationDelete
- type IntegrationItem
- type IntegrationList
- type Material
- type MembershipItem
- type MembershipList
- type MembershipSetCurrent
- type NewOCIRepositorySaveOpts
- type NewWorkflowCreateOpts
- type OCIRepositorySave
- type OrgItem
- type PaginatedWorkflowRunItem
- type PaginationOpts
- type ValidationStatus
- type WorkflowContractCreate
- type WorkflowContractDelete
- type WorkflowContractDescribe
- type WorkflowContractItem
- type WorkflowContractList
- type WorkflowContractUpdate
- type WorkflowContractVersionItem
- type WorkflowContractWithVersionItem
- type WorkflowCreate
- type WorkflowDelete
- type WorkflowIntegrationAttach
- type WorkflowIntegrationDetach
- type WorkflowIntegrationList
- type WorkflowItem
- type WorkflowList
- type WorkflowRobotAccountCreate
- type WorkflowRobotAccountItem
- type WorkflowRobotAccountList
- type WorkflowRobotAccountRevoke
- type WorkflowRunAttestationItem
- type WorkflowRunDescribe
- type WorkflowRunItem
- type WorkflowRunItemFull
- type WorkflowRunList
- type WorkflowRunListOpts
Constants ¶
View Source
const AttestationResetTriggerCancelled = "cancellation"
View Source
const AttestationResetTriggerFailed = "failure"
Variables ¶
View Source
var ErrAttestationAlreadyExist = errors.New("attestation already initialized")
ErrAttestationAlreadyExist means that there is an attestation in progress
View Source
var ErrAttestationNotInitialized = errors.New("attestation not yet initialized")
Functions ¶
This section is empty.
Types ¶
type ActionsOpts ¶
type ActionsOpts struct { CPConnecction *grpc.ClientConn Logger zerolog.Logger }
type ArtifactDownload ¶
type ArtifactDownload struct { *ActionsOpts // contains filtered or unexported fields }
func NewArtifactDownload ¶
func NewArtifactDownload(opts *ArtifactDownloadOpts) *ArtifactDownload
func (*ArtifactDownload) Run ¶
func (a *ArtifactDownload) Run(downloadPath, digest string) error
type ArtifactDownloadOpts ¶
type ArtifactDownloadOpts struct { *ActionsOpts ArtifactsCASConn *grpc.ClientConn }
type ArtifactUpload ¶
type ArtifactUpload struct { *ActionsOpts // contains filtered or unexported fields }
func NewArtifactUpload ¶
func NewArtifactUpload(opts *ArtifactUploadOpts) *ArtifactUpload
func (*ArtifactUpload) Run ¶
func (a *ArtifactUpload) Run(filePath string) (*CASArtifact, error)
type ArtifactUploadOpts ¶
type ArtifactUploadOpts struct { *ActionsOpts ArtifactsCASConn *grpc.ClientConn }
type AttestationAdd ¶
type AttestationAdd struct { *ActionsOpts // contains filtered or unexported fields }
func NewAttestationAdd ¶
func NewAttestationAdd(cfg *AttestationAddOpts) *AttestationAdd
func (*AttestationAdd) Run ¶
func (action *AttestationAdd) Run(k, v string) error
type AttestationAddOpts ¶
type AttestationAddOpts struct { *ActionsOpts ArtifacsCASConn *grpc.ClientConn }
type AttestationInit ¶
type AttestationInit struct { *ActionsOpts // contains filtered or unexported fields }
func NewAttestationInit ¶
func NewAttestationInit(cfg *AttestationInitOpts) *AttestationInit
func (*AttestationInit) Run ¶
func (action *AttestationInit) Run(contractRevision int) error
type AttestationInitOpts ¶
type AttestationInitOpts struct { *ActionsOpts Override, DryRun bool }
type AttestationPush ¶
type AttestationPush struct { *ActionsOpts // contains filtered or unexported fields }
func NewAttestationPush ¶
func NewAttestationPush(cfg *AttestationPushOpts) *AttestationPush
func (*AttestationPush) Run ¶
func (action *AttestationPush) Run() (interface{}, error)
TODO: Return defined type
type AttestationPushOpts ¶
type AttestationPushOpts struct { *ActionsOpts KeyPath, CLIversion, CLIDigest string }
type AttestationReset ¶
type AttestationReset struct { *ActionsOpts // contains filtered or unexported fields }
func NewAttestationReset ¶
func NewAttestationReset(opts *ActionsOpts) *AttestationReset
func (*AttestationReset) Run ¶
func (action *AttestationReset) Run(trigger, reason string) error
type AttestationResetOpts ¶
type AttestationResetOpts struct {
*ActionsOpts
}
type AttestationStatus ¶
type AttestationStatus struct { *ActionsOpts // contains filtered or unexported fields }
func NewAttestationStatus ¶
func NewAttestationStatus(cfg *AttestationStatusOpts) *AttestationStatus
func (*AttestationStatus) Run ¶
func (action *AttestationStatus) Run() (*AttestationStatusResult, error)
type AttestationStatusOpts ¶
type AttestationStatusOpts struct {
*ActionsOpts
}
type AttestationStatusResult ¶
type AttestationStatusResult struct { InitializedAt *time.Time WorkflowMeta *AttestationStatusWorkflowMeta Materials []AttestationStatusResultMaterial EnvVars map[string]string RunnerContext *AttestaionResultRunnerContext DryRun bool }
type AttestationStatusWorkflowMeta ¶
type AttestationStatusWorkflowMeta struct {
RunID, WorkflowID, Name, Team, Project, ContractRevision string
}
type CASArtifact ¶
type CASArtifact struct { Digest string // contains filtered or unexported fields }
type ConfigContextItem ¶
type ConfigContextItem struct { CurrentUser *ConfigContextItemUser CurrentOrg *OrgItem CurrentOCIRepo *ConfigContextItemOCIRepo }
type ConfigContextItemOCIRepo ¶
type ConfigContextItemOCIRepo struct {
ID, Repo string
CreatedAt *time.Time
ValidationStatus ValidationStatus
}
type ConfigContextItemUser ¶
type ConfigCurrentContext ¶
type ConfigCurrentContext struct {
// contains filtered or unexported fields
}
func NewConfigCurrentContext ¶
func NewConfigCurrentContext(cfg *ActionsOpts) *ConfigCurrentContext
func (*ConfigCurrentContext) Run ¶
func (action *ConfigCurrentContext) Run() (*ConfigContextItem, error)
type DeleteAccount ¶
type DeleteAccount struct {
*ActionsOpts
}
func NewDeleteAccount ¶
func NewDeleteAccount(cfg *ActionsOpts) *DeleteAccount
func (*DeleteAccount) Run ¶
func (a *DeleteAccount) Run() error
type ErrRunnerContextNotFound ¶
type ErrRunnerContextNotFound struct {
RunnerType string
}
func (ErrRunnerContextNotFound) Error ¶
func (e ErrRunnerContextNotFound) Error() string
type IntegrationAddDeptrack ¶
type IntegrationAddDeptrack struct {
// contains filtered or unexported fields
}
func NewIntegrationAddDeptrack ¶
func NewIntegrationAddDeptrack(cfg *ActionsOpts) *IntegrationAddDeptrack
func (*IntegrationAddDeptrack) Run ¶
func (action *IntegrationAddDeptrack) Run(host, apiKey string, allowAutoProjectCreation bool) (*IntegrationItem, error)
type IntegrationAttachmentItem ¶
type IntegrationAttachmentItem struct { ID string `json:"id"` CreatedAt *time.Time `json:"createdAt"` Config map[string]interface{} `json:"config"` Integration *IntegrationItem `json:"integration"` Workflow *WorkflowItem `json:"workflow"` }
type IntegrationDelete ¶
type IntegrationDelete struct {
// contains filtered or unexported fields
}
func NewIntegrationDelete ¶
func NewIntegrationDelete(cfg *ActionsOpts) *IntegrationDelete
func (*IntegrationDelete) Run ¶
func (action *IntegrationDelete) Run(id string) error
type IntegrationItem ¶
type IntegrationList ¶
type IntegrationList struct {
// contains filtered or unexported fields
}
func NewIntegrationList ¶
func NewIntegrationList(cfg *ActionsOpts) *IntegrationList
func (*IntegrationList) Run ¶
func (action *IntegrationList) Run() ([]*IntegrationItem, error)
type MembershipItem ¶
type MembershipList ¶
type MembershipList struct {
// contains filtered or unexported fields
}
func NewMembershipList ¶
func NewMembershipList(cfg *ActionsOpts) *MembershipList
func (*MembershipList) Run ¶
func (action *MembershipList) Run() ([]*MembershipItem, error)
type MembershipSetCurrent ¶
type MembershipSetCurrent struct {
// contains filtered or unexported fields
}
func NewMembershipSet ¶
func NewMembershipSet(cfg *ActionsOpts) *MembershipSetCurrent
func (*MembershipSetCurrent) Run ¶
func (action *MembershipSetCurrent) Run(id string) (*MembershipItem, error)
type NewOCIRepositorySaveOpts ¶
type NewOCIRepositorySaveOpts struct {
Repo, Username, Password string
}
type NewWorkflowCreateOpts ¶
type NewWorkflowCreateOpts struct {
Name, Project, Team, ContractID string
}
type OCIRepositorySave ¶
type OCIRepositorySave struct {
// contains filtered or unexported fields
}
func NewOCIRepositorySave ¶
func NewOCIRepositorySave(cfg *ActionsOpts) *OCIRepositorySave
func (*OCIRepositorySave) Run ¶
func (action *OCIRepositorySave) Run(opts *NewOCIRepositorySaveOpts) error
type PaginatedWorkflowRunItem ¶
type PaginatedWorkflowRunItem struct { Result []*WorkflowRunItem PaginationMeta *PaginationOpts }
type PaginationOpts ¶
type ValidationStatus ¶
type ValidationStatus string
const ( Valid ValidationStatus = "valid" Invalid ValidationStatus = "invalid" )
type WorkflowContractCreate ¶
type WorkflowContractCreate struct {
// contains filtered or unexported fields
}
func NewWorkflowContractCreate ¶
func NewWorkflowContractCreate(cfg *ActionsOpts) *WorkflowContractCreate
func (*WorkflowContractCreate) Run ¶
func (action *WorkflowContractCreate) Run(name, contractPath string) (*WorkflowContractItem, error)
type WorkflowContractDelete ¶
type WorkflowContractDelete struct {
// contains filtered or unexported fields
}
func NewWorkflowContractDelete ¶
func NewWorkflowContractDelete(cfg *ActionsOpts) *WorkflowContractDelete
func (*WorkflowContractDelete) Run ¶
func (action *WorkflowContractDelete) Run(contractID string) error
type WorkflowContractDescribe ¶
type WorkflowContractDescribe struct {
// contains filtered or unexported fields
}
func NewWorkflowContractDescribe ¶
func NewWorkflowContractDescribe(cfg *ActionsOpts) *WorkflowContractDescribe
func (*WorkflowContractDescribe) Run ¶
func (action *WorkflowContractDescribe) Run(id string, rev int32) (*WorkflowContractWithVersionItem, error)
type WorkflowContractItem ¶
type WorkflowContractList ¶
type WorkflowContractList struct {
// contains filtered or unexported fields
}
func NewWorkflowContractList ¶
func NewWorkflowContractList(cfg *ActionsOpts) *WorkflowContractList
func (*WorkflowContractList) Run ¶
func (action *WorkflowContractList) Run() ([]*WorkflowContractItem, error)
type WorkflowContractUpdate ¶
type WorkflowContractUpdate struct {
// contains filtered or unexported fields
}
func NewWorkflowContractUpdate ¶
func NewWorkflowContractUpdate(cfg *ActionsOpts) *WorkflowContractUpdate
func (*WorkflowContractUpdate) Run ¶
func (action *WorkflowContractUpdate) Run(contractID, name, contractPath string) (*WorkflowContractWithVersionItem, error)
type WorkflowContractWithVersionItem ¶
type WorkflowContractWithVersionItem struct { Contract *WorkflowContractItem `json:"contract"` Revision *WorkflowContractVersionItem `json:"revision"` }
type WorkflowCreate ¶
type WorkflowCreate struct {
// contains filtered or unexported fields
}
func NewWorkflowCreate ¶
func NewWorkflowCreate(cfg *ActionsOpts) *WorkflowCreate
func (*WorkflowCreate) Run ¶
func (action *WorkflowCreate) Run(opts *NewWorkflowCreateOpts) (*WorkflowItem, error)
type WorkflowDelete ¶
type WorkflowDelete struct {
// contains filtered or unexported fields
}
func NewWorkflowDelete ¶
func NewWorkflowDelete(cfg *ActionsOpts) *WorkflowDelete
func (*WorkflowDelete) Run ¶
func (action *WorkflowDelete) Run(workflowID string) error
type WorkflowIntegrationAttach ¶
type WorkflowIntegrationAttach struct {
// contains filtered or unexported fields
}
Attach a third party integration to a workflow
func NewWorkflowIntegrationAttach ¶
func NewWorkflowIntegrationAttach(cfg *ActionsOpts) *WorkflowIntegrationAttach
func (*WorkflowIntegrationAttach) RunDependencyTrack ¶
func (action *WorkflowIntegrationAttach) RunDependencyTrack(integrationID, workflowID, projectID, projectName string) (*IntegrationAttachmentItem, error)
type WorkflowIntegrationDetach ¶
type WorkflowIntegrationDetach struct {
// contains filtered or unexported fields
}
func NewWorkflowIntegrationDetach ¶
func NewWorkflowIntegrationDetach(cfg *ActionsOpts) *WorkflowIntegrationDetach
func (*WorkflowIntegrationDetach) Run ¶
func (action *WorkflowIntegrationDetach) Run(attachmentID string) error
type WorkflowIntegrationList ¶
type WorkflowIntegrationList struct {
// contains filtered or unexported fields
}
func NewWorkflowIntegrationList ¶
func NewWorkflowIntegrationList(cfg *ActionsOpts) *WorkflowIntegrationList
func (*WorkflowIntegrationList) Run ¶
func (action *WorkflowIntegrationList) Run() ([]*IntegrationAttachmentItem, error)
type WorkflowItem ¶
type WorkflowItem struct { Name string `json:"name"` ID string `json:"id"` Team string `json:"team"` Project string `json:"project,omitempty"` CreatedAt *time.Time `json:"createdAt"` RunsCount int32 `json:"runsCount"` ContractID string `json:"contractID,omitempty"` LastRun *WorkflowRunItem `json:"lastRun,omitempty"` }
func (*WorkflowItem) NamespacedName ¶
func (wi *WorkflowItem) NamespacedName() string
type WorkflowList ¶
type WorkflowList struct {
// contains filtered or unexported fields
}
func NewWorkflowList ¶
func NewWorkflowList(cfg *ActionsOpts) *WorkflowList
func (*WorkflowList) Run ¶
func (action *WorkflowList) Run() ([]*WorkflowItem, error)
type WorkflowRobotAccountCreate ¶
type WorkflowRobotAccountCreate struct {
// contains filtered or unexported fields
}
func NewWorkflowRobotAccountCreate ¶
func NewWorkflowRobotAccountCreate(cfg *ActionsOpts) *WorkflowRobotAccountCreate
func (*WorkflowRobotAccountCreate) Run ¶
func (action *WorkflowRobotAccountCreate) Run(workflowID, name string) (*WorkflowRobotAccountItem, error)
type WorkflowRobotAccountList ¶
type WorkflowRobotAccountList struct {
// contains filtered or unexported fields
}
func NewWorkflowRobotAccountList ¶
func NewWorkflowRobotAccountList(cfg *ActionsOpts) *WorkflowRobotAccountList
func (*WorkflowRobotAccountList) Run ¶
func (action *WorkflowRobotAccountList) Run(workflowID string, includeRevoked bool) ([]*WorkflowRobotAccountItem, error)
type WorkflowRobotAccountRevoke ¶
type WorkflowRobotAccountRevoke struct {
// contains filtered or unexported fields
}
func NewWorkflowRobotAccountRevoke ¶
func NewWorkflowRobotAccountRevoke(cfg *ActionsOpts) *WorkflowRobotAccountRevoke
func (*WorkflowRobotAccountRevoke) Run ¶
func (action *WorkflowRobotAccountRevoke) Run(accountID string) error
type WorkflowRunAttestationItem ¶
type WorkflowRunAttestationItem struct { ID string `json:"id"` CreatedAt *time.Time `json:"createdAt"` Envelope *dsse.Envelope `json:"envelope"` Materials []*Material `json:"materials,omitempty"` EnvVars []*EnvVar `json:"envvars,omitempty"` // contains filtered or unexported fields }
func (*WorkflowRunAttestationItem) Predicate ¶
func (i *WorkflowRunAttestationItem) Predicate() *renderer.ChainloopProvenancePredicateV1
func (*WorkflowRunAttestationItem) Statement ¶
func (i *WorkflowRunAttestationItem) Statement() *in_toto.Statement
type WorkflowRunDescribe ¶
type WorkflowRunDescribe struct {
// contains filtered or unexported fields
}
func NewWorkflowRunDescribe ¶
func NewWorkflowRunDescribe(cfg *ActionsOpts) *WorkflowRunDescribe
func (*WorkflowRunDescribe) Run ¶
func (action *WorkflowRunDescribe) Run(runID string, verify bool, publicKey string) (*WorkflowRunItemFull, error)
type WorkflowRunItem ¶
type WorkflowRunItem struct { ID string `json:"id"` State string `json:"state"` Reason string `json:"reason,omitempty"` CreatedAt *time.Time `json:"createdAt,omitempty"` FinishedAt *time.Time `json:"finishedAt,omitempty"` Workflow *WorkflowItem `json:"workflow,omitempty"` RunURL string `json:"runURL,omitempty"` RunnerType string `json:"runnerType,omitempty"` ContractVersion *WorkflowContractVersionItem `json:"contractVersion,omitempty"` }
type WorkflowRunItemFull ¶
type WorkflowRunItemFull struct { WorkflowRun *WorkflowRunItem `json:"workflowRun"` Workflow *WorkflowItem `json:"workflow"` Attestation *WorkflowRunAttestationItem `json:"attestation,omitempty"` Verified bool `json:"verified"` }
type WorkflowRunList ¶
type WorkflowRunList struct {
// contains filtered or unexported fields
}
func NewWorkflowRunList ¶
func NewWorkflowRunList(cfg *ActionsOpts) *WorkflowRunList
func (*WorkflowRunList) Run ¶
func (action *WorkflowRunList) Run(opts *WorkflowRunListOpts) (*PaginatedWorkflowRunItem, error)
type WorkflowRunListOpts ¶
type WorkflowRunListOpts struct { WorkflowID string Pagination *PaginationOpts }
Source Files ¶
- action.go
- artifact_download.go
- artifact_upload.go
- attestation_add.go
- attestation_init.go
- attestation_push.go
- attestation_reset.go
- attestation_status.go
- config_current_context.go
- delete_account.go
- integration_add_deptrack.go
- integration_delete.go
- integration_list.go
- membership_list.go
- membership_set.go
- ocirepository_save.go
- workflow_contract_create.go
- workflow_contract_delete.go
- workflow_contract_describe.go
- workflow_contract_list.go
- workflow_contract_update.go
- workflow_create.go
- workflow_delete.go
- workflow_integration_attach.go
- workflow_integration_detach.go
- workflow_integration_list.go
- workflow_list.go
- workflow_robotaccount_create.go
- workflow_robotaccount_list.go
- workflow_robotaccount_revoke.go
- workflow_run_describe.go
- workflow_run_list.go
Click to show internal directories.
Click to hide internal directories.