Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Artifact ¶
type Artifact struct { Path string `json:"path"` Info ArtifactInfo `json:"info"` }
Artifact represents the Artifact structure
type ArtifactInfo ¶
type ArtifactInfo struct { Length int `json:"length"` Hashes Hashes `json:"hashes"` Custom map[string]any `json:"custom,omitempty"` }
ArtifactInfo represents the ArtifactInfo structure
type ArtifactPayload ¶
type ArtifactPayload struct { Artifacts []Artifact `json:"artifacts"` AddTaskIDToCustom bool `json:"add_task_id_to_custom"` PublishTargets bool `json:"publish_targets"` }
ArtifactPayload represents the payload structure
type ArtifactsResponse ¶
type Hashes ¶
type Hashes struct {
Sha256 string `json:"sha256"`
}
Hashes represents the Hashes structure
type Publisher ¶
func NewPublisher ¶
type Response ¶
type Response struct {
Data ArtifactsResponse `json:"data"`
}
Click to show internal directories.
Click to hide internal directories.