package
Version:
v0.2.0
Opens a new window with list of versions in this module.
Published: Dec 19, 2023
License: MIT
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Package resource contains the types used for interacting with Concourse CI.
type CheckRequest struct {
Source Source `json:"source"`
Version Version `json:"version"`
}
type InOutResponse struct {
Version Version `json:"version"`
Metadata []MetadataPair `json:"metadata"`
}
type InParams struct {
Globs []string `json:"globs"`
}
type InRequest struct {
Source Source `json:"source"`
Version *Version `json:"version"`
Params InParams `json:"params"`
}
type MetadataPair struct {
Name string `json:"name"`
Value string `json:"value"`
URL string `json:"url"`
Markdown bool `json:"markdown"`
}
type OutParams struct {
NamePath string `json:"name_path"`
BodyPath string `json:"body_path"`
TagPath string `json:"tag_path"`
TargetPath string `json:"target_path"`
IDPath string `json:"id_path"`
Globs []string `json:"globs"`
}
type OutRequest struct {
Source Source `json:"source"`
Params OutParams `json:"params"`
}
type Source struct {
GiteaURL string `json:"gitea_url"`
Owner string `json:"owner"`
Repository string `json:"repository"`
AccessToken string `json:"access_token"`
SemverConstraint string `json:"semver_constraint"`
PreRelease bool `json:"pre_release"`
}
type Version struct {
Tag string `json:"tag,omitempty"`
ID string `json:"id"`
Timestamp time.Time `json:"timestamp"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.