This is done by inspecting the current hostname to determine if tenancy is enabled. The attestation commands also accepts a --hostname parameter, that is used to pick the current host, similar to how the GH_HOST variable can be used. Signed-off-by: Fredrik Skogman <kommendorkapten@github.com>
15 lines
278 B
Go
15 lines
278 B
Go
package api
|
|
|
|
const MetaPath = "meta"
|
|
|
|
type ArtifactAttestations struct {
|
|
TrustDomain string `json:"trust_domain"`
|
|
}
|
|
|
|
type Domain struct {
|
|
ArtifactAttestations ArtifactAttestations `json:"artifact_attestations"`
|
|
}
|
|
|
|
type MetaResponse struct {
|
|
Domains Domain `json:"domains"`
|
|
}
|