mirror of
https://github.com/harness/drone.git
synced 2025-05-08 01:10:27 +08:00
feat: [AH-349]: remove isLatest field (#3482)
* feat: [AH-349]: fix lint issues * feat: [AH-349]: remove isLatest field
This commit is contained in:
parent
563fedf028
commit
11dddf1221
@ -56,8 +56,10 @@ func GetRegistryArtifactMetadata(artifacts []types.ArtifactMetadata) []artifacta
|
|||||||
return artifactMetadataList
|
return artifactMetadataList
|
||||||
}
|
}
|
||||||
|
|
||||||
func GetMavenArtifactDetail(image *types.Image, artifact *types.Artifact,
|
func GetMavenArtifactDetail(
|
||||||
metadata database.MavenMetadata) artifactapi.ArtifactDetail {
|
image *types.Image, artifact *types.Artifact,
|
||||||
|
metadata database.MavenMetadata,
|
||||||
|
) artifactapi.ArtifactDetail {
|
||||||
createdAt := GetTimeInMs(artifact.CreatedAt)
|
createdAt := GetTimeInMs(artifact.CreatedAt)
|
||||||
modifiedAt := GetTimeInMs(artifact.UpdatedAt)
|
modifiedAt := GetTimeInMs(artifact.UpdatedAt)
|
||||||
var size int64
|
var size int64
|
||||||
@ -127,7 +129,6 @@ func toPackageType(packageTypeStr string) (artifactapi.PackageType, error) {
|
|||||||
func GetTagMetadata(
|
func GetTagMetadata(
|
||||||
ctx context.Context,
|
ctx context.Context,
|
||||||
tags *[]types.TagMetadata,
|
tags *[]types.TagMetadata,
|
||||||
latestTag string,
|
|
||||||
image string,
|
image string,
|
||||||
registryURL string,
|
registryURL string,
|
||||||
) []artifactapi.ArtifactVersionMetadata {
|
) []artifactapi.ArtifactVersionMetadata {
|
||||||
@ -136,7 +137,6 @@ func GetTagMetadata(
|
|||||||
modifiedAt := GetTimeInMs(tag.ModifiedAt)
|
modifiedAt := GetTimeInMs(tag.ModifiedAt)
|
||||||
size := GetImageSize(tag.Size)
|
size := GetImageSize(tag.Size)
|
||||||
digestCount := tag.DigestCount
|
digestCount := tag.DigestCount
|
||||||
isLatestVersion := latestTag == tag.Name
|
|
||||||
command := GetPullCommand(image, tag.Name, string(tag.PackageType), registryURL)
|
command := GetPullCommand(image, tag.Name, string(tag.PackageType), registryURL)
|
||||||
packageType, err := toPackageType(string(tag.PackageType))
|
packageType, err := toPackageType(string(tag.PackageType))
|
||||||
downloadCount := tag.DownloadCount
|
downloadCount := tag.DownloadCount
|
||||||
@ -145,14 +145,13 @@ func GetTagMetadata(
|
|||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
artifactVersionMetadata := &artifactapi.ArtifactVersionMetadata{
|
artifactVersionMetadata := &artifactapi.ArtifactVersionMetadata{
|
||||||
PackageType: &packageType,
|
PackageType: &packageType,
|
||||||
Name: tag.Name,
|
Name: tag.Name,
|
||||||
Size: &size,
|
Size: &size,
|
||||||
LastModified: &modifiedAt,
|
LastModified: &modifiedAt,
|
||||||
DigestCount: &digestCount,
|
DigestCount: &digestCount,
|
||||||
IslatestVersion: &isLatestVersion,
|
PullCommand: &command,
|
||||||
PullCommand: &command,
|
DownloadsCount: &downloadCount,
|
||||||
DownloadsCount: &downloadCount,
|
|
||||||
}
|
}
|
||||||
artifactVersionMetadataList = append(artifactVersionMetadataList, *artifactVersionMetadata)
|
artifactVersionMetadataList = append(artifactVersionMetadataList, *artifactVersionMetadata)
|
||||||
}
|
}
|
||||||
@ -216,7 +215,8 @@ func GetAllArtifactFilesResponse(
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
func GetArtifactFilesMetadata(metadata *[]types.FileNodeMetadata,
|
func GetArtifactFilesMetadata(
|
||||||
|
metadata *[]types.FileNodeMetadata,
|
||||||
registryURL string,
|
registryURL string,
|
||||||
artifactName string,
|
artifactName string,
|
||||||
version string,
|
version string,
|
||||||
@ -307,7 +307,6 @@ func GetAllArtifactLabelsResponse(
|
|||||||
func GetAllArtifactVersionResponse(
|
func GetAllArtifactVersionResponse(
|
||||||
ctx context.Context,
|
ctx context.Context,
|
||||||
tags *[]types.TagMetadata,
|
tags *[]types.TagMetadata,
|
||||||
latestTag string,
|
|
||||||
image string,
|
image string,
|
||||||
count int64,
|
count int64,
|
||||||
pageNumber int64,
|
pageNumber int64,
|
||||||
@ -315,7 +314,7 @@ func GetAllArtifactVersionResponse(
|
|||||||
registryURL string,
|
registryURL string,
|
||||||
) *artifactapi.ListArtifactVersionResponseJSONResponse {
|
) *artifactapi.ListArtifactVersionResponseJSONResponse {
|
||||||
artifactVersionMetadataList := GetTagMetadata(
|
artifactVersionMetadataList := GetTagMetadata(
|
||||||
ctx, tags, latestTag, image, registryURL,
|
ctx, tags, image, registryURL,
|
||||||
)
|
)
|
||||||
pageCount := GetPageCount(count, pageSize)
|
pageCount := GetPageCount(count, pageSize)
|
||||||
listArtifactVersions := &artifactapi.ListArtifactVersion{
|
listArtifactVersions := &artifactapi.ListArtifactVersion{
|
||||||
@ -335,7 +334,6 @@ func GetAllArtifactVersionResponse(
|
|||||||
func GetNonOCIAllArtifactVersionResponse(
|
func GetNonOCIAllArtifactVersionResponse(
|
||||||
ctx context.Context,
|
ctx context.Context,
|
||||||
artifacts *[]types.NonOCIArtifactMetadata,
|
artifacts *[]types.NonOCIArtifactMetadata,
|
||||||
latestTag string,
|
|
||||||
image string,
|
image string,
|
||||||
count int64,
|
count int64,
|
||||||
pageNumber int64,
|
pageNumber int64,
|
||||||
@ -343,7 +341,7 @@ func GetNonOCIAllArtifactVersionResponse(
|
|||||||
registryURL string,
|
registryURL string,
|
||||||
) *artifactapi.ListArtifactVersionResponseJSONResponse {
|
) *artifactapi.ListArtifactVersionResponseJSONResponse {
|
||||||
artifactVersionMetadataList := GetNonOCIArtifactMetadata(
|
artifactVersionMetadataList := GetNonOCIArtifactMetadata(
|
||||||
ctx, artifacts, latestTag, image, registryURL,
|
ctx, artifacts, image, registryURL,
|
||||||
)
|
)
|
||||||
pageCount := GetPageCount(count, pageSize)
|
pageCount := GetPageCount(count, pageSize)
|
||||||
listArtifactVersions := &artifactapi.ListArtifactVersion{
|
listArtifactVersions := &artifactapi.ListArtifactVersion{
|
||||||
@ -363,7 +361,6 @@ func GetNonOCIAllArtifactVersionResponse(
|
|||||||
func GetNonOCIArtifactMetadata(
|
func GetNonOCIArtifactMetadata(
|
||||||
ctx context.Context,
|
ctx context.Context,
|
||||||
tags *[]types.NonOCIArtifactMetadata,
|
tags *[]types.NonOCIArtifactMetadata,
|
||||||
latestTag string,
|
|
||||||
image string,
|
image string,
|
||||||
registryURL string,
|
registryURL string,
|
||||||
) []artifactapi.ArtifactVersionMetadata {
|
) []artifactapi.ArtifactVersionMetadata {
|
||||||
@ -371,7 +368,6 @@ func GetNonOCIArtifactMetadata(
|
|||||||
for _, tag := range *tags {
|
for _, tag := range *tags {
|
||||||
modifiedAt := GetTimeInMs(tag.ModifiedAt)
|
modifiedAt := GetTimeInMs(tag.ModifiedAt)
|
||||||
size := GetImageSize(tag.Size)
|
size := GetImageSize(tag.Size)
|
||||||
isLatestVersion := latestTag == tag.Name
|
|
||||||
command := GetPullCommand(image, tag.Name, string(tag.PackageType), registryURL)
|
command := GetPullCommand(image, tag.Name, string(tag.PackageType), registryURL)
|
||||||
packageType, err := toPackageType(string(tag.PackageType))
|
packageType, err := toPackageType(string(tag.PackageType))
|
||||||
downloadCount := tag.DownloadCount
|
downloadCount := tag.DownloadCount
|
||||||
@ -381,14 +377,13 @@ func GetNonOCIArtifactMetadata(
|
|||||||
}
|
}
|
||||||
fileCount := tag.FileCount
|
fileCount := tag.FileCount
|
||||||
artifactVersionMetadata := &artifactapi.ArtifactVersionMetadata{
|
artifactVersionMetadata := &artifactapi.ArtifactVersionMetadata{
|
||||||
PackageType: &packageType,
|
PackageType: &packageType,
|
||||||
FileCount: &fileCount,
|
FileCount: &fileCount,
|
||||||
Name: tag.Name,
|
Name: tag.Name,
|
||||||
Size: &size,
|
Size: &size,
|
||||||
LastModified: &modifiedAt,
|
LastModified: &modifiedAt,
|
||||||
IslatestVersion: &isLatestVersion,
|
PullCommand: &command,
|
||||||
PullCommand: &command,
|
DownloadsCount: &downloadCount,
|
||||||
DownloadsCount: &downloadCount,
|
|
||||||
}
|
}
|
||||||
artifactVersionMetadataList = append(artifactVersionMetadataList, *artifactVersionMetadata)
|
artifactVersionMetadataList = append(artifactVersionMetadataList, *artifactVersionMetadata)
|
||||||
}
|
}
|
||||||
@ -399,7 +394,6 @@ func GetDockerArtifactDetails(
|
|||||||
registry *types.Registry,
|
registry *types.Registry,
|
||||||
tag *types.TagDetail,
|
tag *types.TagDetail,
|
||||||
manifest *types.Manifest,
|
manifest *types.Manifest,
|
||||||
isLatestTag bool,
|
|
||||||
registryURL string,
|
registryURL string,
|
||||||
) *artifactapi.DockerArtifactDetailResponseJSONResponse {
|
) *artifactapi.DockerArtifactDetailResponseJSONResponse {
|
||||||
repoPath := getRepoPath(registry.Name, tag.ImageName, manifest.Digest.String())
|
repoPath := getRepoPath(registry.Name, tag.ImageName, manifest.Digest.String())
|
||||||
@ -408,17 +402,16 @@ func GetDockerArtifactDetails(
|
|||||||
modifiedAt := GetTimeInMs(tag.UpdatedAt)
|
modifiedAt := GetTimeInMs(tag.UpdatedAt)
|
||||||
size := GetSize(manifest.TotalSize)
|
size := GetSize(manifest.TotalSize)
|
||||||
artifactDetail := &artifactapi.DockerArtifactDetail{
|
artifactDetail := &artifactapi.DockerArtifactDetail{
|
||||||
ImageName: tag.ImageName,
|
ImageName: tag.ImageName,
|
||||||
Version: tag.Name,
|
Version: tag.Name,
|
||||||
PackageType: registry.PackageType,
|
PackageType: registry.PackageType,
|
||||||
IsLatestVersion: &isLatestTag,
|
CreatedAt: &createdAt,
|
||||||
CreatedAt: &createdAt,
|
ModifiedAt: &modifiedAt,
|
||||||
ModifiedAt: &modifiedAt,
|
RegistryPath: repoPath,
|
||||||
RegistryPath: repoPath,
|
PullCommand: &pullCommand,
|
||||||
PullCommand: &pullCommand,
|
Url: GetTagURL(tag.ImageName, tag.Name, registryURL),
|
||||||
Url: GetTagURL(tag.ImageName, tag.Name, registryURL),
|
Size: &size,
|
||||||
Size: &size,
|
DownloadsCount: &tag.DownloadCount,
|
||||||
DownloadsCount: &tag.DownloadCount,
|
|
||||||
}
|
}
|
||||||
|
|
||||||
response := &artifactapi.DockerArtifactDetailResponseJSONResponse{
|
response := &artifactapi.DockerArtifactDetailResponseJSONResponse{
|
||||||
@ -432,7 +425,6 @@ func GetHelmArtifactDetails(
|
|||||||
registry *types.Registry,
|
registry *types.Registry,
|
||||||
tag *types.TagDetail,
|
tag *types.TagDetail,
|
||||||
manifest *types.Manifest,
|
manifest *types.Manifest,
|
||||||
isLatestTag bool,
|
|
||||||
registryURL string,
|
registryURL string,
|
||||||
) *artifactapi.HelmArtifactDetailResponseJSONResponse {
|
) *artifactapi.HelmArtifactDetailResponseJSONResponse {
|
||||||
repoPath := getRepoPath(registry.Name, tag.ImageName, manifest.Digest.String())
|
repoPath := getRepoPath(registry.Name, tag.ImageName, manifest.Digest.String())
|
||||||
@ -442,17 +434,16 @@ func GetHelmArtifactDetails(
|
|||||||
size := GetSize(manifest.TotalSize)
|
size := GetSize(manifest.TotalSize)
|
||||||
downloadCount := tag.DownloadCount
|
downloadCount := tag.DownloadCount
|
||||||
artifactDetail := &artifactapi.HelmArtifactDetail{
|
artifactDetail := &artifactapi.HelmArtifactDetail{
|
||||||
Artifact: &tag.ImageName,
|
Artifact: &tag.ImageName,
|
||||||
Version: tag.Name,
|
Version: tag.Name,
|
||||||
PackageType: registry.PackageType,
|
PackageType: registry.PackageType,
|
||||||
IsLatestVersion: &isLatestTag,
|
CreatedAt: &createdAt,
|
||||||
CreatedAt: &createdAt,
|
ModifiedAt: &modifiedAt,
|
||||||
ModifiedAt: &modifiedAt,
|
RegistryPath: repoPath,
|
||||||
RegistryPath: repoPath,
|
PullCommand: &pullCommand,
|
||||||
PullCommand: &pullCommand,
|
Url: GetTagURL(tag.ImageName, tag.Name, registryURL),
|
||||||
Url: GetTagURL(tag.ImageName, tag.Name, registryURL),
|
Size: &size,
|
||||||
Size: &size,
|
DownloadsCount: &downloadCount,
|
||||||
DownloadsCount: &downloadCount,
|
|
||||||
}
|
}
|
||||||
|
|
||||||
response := &artifactapi.HelmArtifactDetailResponseJSONResponse{
|
response := &artifactapi.HelmArtifactDetailResponseJSONResponse{
|
||||||
@ -462,8 +453,10 @@ func GetHelmArtifactDetails(
|
|||||||
return response
|
return response
|
||||||
}
|
}
|
||||||
|
|
||||||
func GetGenericArtifactDetail(image *types.Image, artifact *types.Artifact,
|
func GetGenericArtifactDetail(
|
||||||
metadata database.GenericMetadata) artifactapi.ArtifactDetail {
|
image *types.Image, artifact *types.Artifact,
|
||||||
|
metadata database.GenericMetadata,
|
||||||
|
) artifactapi.ArtifactDetail {
|
||||||
createdAt := GetTimeInMs(artifact.CreatedAt)
|
createdAt := GetTimeInMs(artifact.CreatedAt)
|
||||||
modifiedAt := GetTimeInMs(artifact.UpdatedAt)
|
modifiedAt := GetTimeInMs(artifact.UpdatedAt)
|
||||||
artifactDetail := &artifactapi.ArtifactDetail{
|
artifactDetail := &artifactapi.ArtifactDetail{
|
||||||
@ -503,13 +496,11 @@ func GetArtifactVersionSummary(
|
|||||||
artifactName string,
|
artifactName string,
|
||||||
packageType artifactapi.PackageType,
|
packageType artifactapi.PackageType,
|
||||||
version string,
|
version string,
|
||||||
isLatestTag bool,
|
|
||||||
) *artifactapi.ArtifactVersionSummaryResponseJSONResponse {
|
) *artifactapi.ArtifactVersionSummaryResponseJSONResponse {
|
||||||
artifactVersionSummary := &artifactapi.ArtifactVersionSummary{
|
artifactVersionSummary := &artifactapi.ArtifactVersionSummary{
|
||||||
ImageName: artifactName,
|
ImageName: artifactName,
|
||||||
IsLatestVersion: &isLatestTag,
|
PackageType: packageType,
|
||||||
PackageType: packageType,
|
Version: version,
|
||||||
Version: version,
|
|
||||||
}
|
}
|
||||||
response := &artifactapi.ArtifactVersionSummaryResponseJSONResponse{
|
response := &artifactapi.ArtifactVersionSummaryResponseJSONResponse{
|
||||||
Data: *artifactVersionSummary,
|
Data: *artifactVersionSummary,
|
||||||
|
@ -98,15 +98,9 @@ func (c *APIController) GetDockerArtifactDetails(
|
|||||||
return getArtifactDetailsErrResponse(err)
|
return getArtifactDetailsErrResponse(err)
|
||||||
}
|
}
|
||||||
|
|
||||||
latestTag, err := c.TagStore.GetLatestTag(ctx, registry.ID, image)
|
|
||||||
if err != nil {
|
|
||||||
return getArtifactDetailsErrResponse(err)
|
|
||||||
}
|
|
||||||
|
|
||||||
return artifact.GetDockerArtifactDetails200JSONResponse{
|
return artifact.GetDockerArtifactDetails200JSONResponse{
|
||||||
DockerArtifactDetailResponseJSONResponse: *GetDockerArtifactDetails(
|
DockerArtifactDetailResponseJSONResponse: *GetDockerArtifactDetails(
|
||||||
registry, tag, m,
|
registry, tag, m, c.URLProvider.RegistryURL(ctx, regInfo.RootIdentifier, registry.Name),
|
||||||
latestTag.ID == tag.ID, c.URLProvider.RegistryURL(ctx, regInfo.RootIdentifier, registry.Name),
|
|
||||||
),
|
),
|
||||||
}, nil
|
}, nil
|
||||||
}
|
}
|
||||||
|
@ -89,12 +89,9 @@ func (c *APIController) GetHelmArtifactDetails(
|
|||||||
return getHelmArtifactDetailsErrResponse(err)
|
return getHelmArtifactDetailsErrResponse(err)
|
||||||
}
|
}
|
||||||
|
|
||||||
latestTag, _ := c.TagStore.GetLatestTag(ctx, registry.ID, image)
|
|
||||||
|
|
||||||
return artifact.GetHelmArtifactDetails200JSONResponse{
|
return artifact.GetHelmArtifactDetails200JSONResponse{
|
||||||
HelmArtifactDetailResponseJSONResponse: *GetHelmArtifactDetails(
|
HelmArtifactDetailResponseJSONResponse: *GetHelmArtifactDetails(
|
||||||
registry, tag, m,
|
registry, tag, m, c.URLProvider.RegistryURL(ctx, regInfo.RootIdentifier, regInfo.RegistryIdentifier),
|
||||||
latestTag.ID == tag.ID, c.URLProvider.RegistryURL(ctx, regInfo.RootIdentifier, regInfo.RegistryIdentifier),
|
|
||||||
),
|
),
|
||||||
}, nil
|
}, nil
|
||||||
}
|
}
|
||||||
|
@ -29,7 +29,7 @@ func (c *APIController) GetArtifactVersionSummary(
|
|||||||
ctx context.Context,
|
ctx context.Context,
|
||||||
r artifact.GetArtifactVersionSummaryRequestObject,
|
r artifact.GetArtifactVersionSummaryRequestObject,
|
||||||
) (artifact.GetArtifactVersionSummaryResponseObject, error) {
|
) (artifact.GetArtifactVersionSummaryResponseObject, error) {
|
||||||
image, version, pkgType, isLatestTag, err := c.FetchArtifactSummary(ctx, r)
|
image, version, pkgType, err := c.FetchArtifactSummary(ctx, r)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return artifact.GetArtifactVersionSummary500JSONResponse{
|
return artifact.GetArtifactVersionSummary500JSONResponse{
|
||||||
InternalServerErrorJSONResponse: artifact.InternalServerErrorJSONResponse(
|
InternalServerErrorJSONResponse: artifact.InternalServerErrorJSONResponse(
|
||||||
@ -39,7 +39,7 @@ func (c *APIController) GetArtifactVersionSummary(
|
|||||||
}
|
}
|
||||||
|
|
||||||
return artifact.GetArtifactVersionSummary200JSONResponse{
|
return artifact.GetArtifactVersionSummary200JSONResponse{
|
||||||
ArtifactVersionSummaryResponseJSONResponse: *GetArtifactVersionSummary(image, pkgType, version, isLatestTag),
|
ArtifactVersionSummaryResponseJSONResponse: *GetArtifactVersionSummary(image, pkgType, version),
|
||||||
}, nil
|
}, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -47,16 +47,16 @@ func (c *APIController) GetArtifactVersionSummary(
|
|||||||
func (c *APIController) FetchArtifactSummary(
|
func (c *APIController) FetchArtifactSummary(
|
||||||
ctx context.Context,
|
ctx context.Context,
|
||||||
r artifact.GetArtifactVersionSummaryRequestObject,
|
r artifact.GetArtifactVersionSummaryRequestObject,
|
||||||
) (string, string, artifact.PackageType, bool, error) {
|
) (string, string, artifact.PackageType, error) {
|
||||||
regInfo, err := c.GetRegistryRequestBaseInfo(ctx, "", string(r.RegistryRef))
|
regInfo, err := c.GetRegistryRequestBaseInfo(ctx, "", string(r.RegistryRef))
|
||||||
|
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return "", "", "", false, fmt.Errorf("failed to get registry request base info: %w", err)
|
return "", "", "", fmt.Errorf("failed to get registry request base info: %w", err)
|
||||||
}
|
}
|
||||||
|
|
||||||
space, err := c.SpaceFinder.FindByRef(ctx, regInfo.ParentRef)
|
space, err := c.SpaceFinder.FindByRef(ctx, regInfo.ParentRef)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return "", "", "", false, err
|
return "", "", "", err
|
||||||
}
|
}
|
||||||
|
|
||||||
session, _ := request.AuthSessionFrom(ctx)
|
session, _ := request.AuthSessionFrom(ctx)
|
||||||
@ -67,7 +67,7 @@ func (c *APIController) FetchArtifactSummary(
|
|||||||
session,
|
session,
|
||||||
permissionChecks...,
|
permissionChecks...,
|
||||||
); err != nil {
|
); err != nil {
|
||||||
return "", "", "", false, err
|
return "", "", "", err
|
||||||
}
|
}
|
||||||
|
|
||||||
image := string(r.Artifact)
|
image := string(r.Artifact)
|
||||||
@ -75,29 +75,23 @@ func (c *APIController) FetchArtifactSummary(
|
|||||||
|
|
||||||
registry, err := c.RegistryRepository.Get(ctx, regInfo.RegistryID)
|
registry, err := c.RegistryRepository.Get(ctx, regInfo.RegistryID)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return "", "", "", false, err
|
return "", "", "", err
|
||||||
}
|
}
|
||||||
|
|
||||||
if registry.PackageType == artifact.PackageTypeDOCKER || registry.PackageType == artifact.PackageTypeHELM {
|
if registry.PackageType == artifact.PackageTypeDOCKER || registry.PackageType == artifact.PackageTypeHELM {
|
||||||
tag, err := c.TagStore.GetTagMetadata(ctx, regInfo.parentID, regInfo.RegistryIdentifier, image, version)
|
tag, err := c.TagStore.GetTagMetadata(ctx, regInfo.parentID, regInfo.RegistryIdentifier, image, version)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return "", "", "", false, err
|
return "", "", "", err
|
||||||
}
|
}
|
||||||
|
|
||||||
latestTag, _ := c.TagStore.GetLatestTagName(ctx, regInfo.parentID, regInfo.RegistryIdentifier, image)
|
return image, tag.Name, tag.PackageType, nil
|
||||||
isLatestTag := latestTag == version
|
|
||||||
|
|
||||||
return image, tag.Name, tag.PackageType, isLatestTag, nil
|
|
||||||
}
|
}
|
||||||
artifact, err := c.ArtifactStore.GetArtifactMetadata(ctx, regInfo.parentID,
|
artifact, err := c.ArtifactStore.GetArtifactMetadata(ctx, regInfo.parentID,
|
||||||
regInfo.RegistryIdentifier, image, version)
|
regInfo.RegistryIdentifier, image, version)
|
||||||
|
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return "", "", "", false, err
|
return "", "", "", err
|
||||||
}
|
}
|
||||||
|
|
||||||
latestTag, _ := c.ArtifactStore.GetLatestVersionName(ctx, regInfo.parentID, regInfo.RegistryIdentifier, image)
|
return image, artifact.Name, artifact.PackageType, nil
|
||||||
isLatestTag := latestTag == version
|
|
||||||
|
|
||||||
return image, artifact.Name, artifact.PackageType, isLatestTag, nil
|
|
||||||
}
|
}
|
||||||
|
@ -88,8 +88,6 @@ func (c *APIController) GetAllArtifactVersions(
|
|||||||
image, regInfo.sortByField, regInfo.sortByOrder, regInfo.limit, regInfo.offset, regInfo.searchTerm,
|
image, regInfo.sortByField, regInfo.sortByOrder, regInfo.limit, regInfo.offset, regInfo.searchTerm,
|
||||||
)
|
)
|
||||||
|
|
||||||
latestTag, _ := c.TagStore.GetLatestTagName(ctx, regInfo.parentID, regInfo.RegistryIdentifier, image)
|
|
||||||
|
|
||||||
count, _ := c.TagStore.CountAllTagsByRepoAndImage(
|
count, _ := c.TagStore.CountAllTagsByRepoAndImage(
|
||||||
ctx, regInfo.parentID, regInfo.RegistryIdentifier,
|
ctx, regInfo.parentID, regInfo.RegistryIdentifier,
|
||||||
image, regInfo.searchTerm,
|
image, regInfo.searchTerm,
|
||||||
@ -105,7 +103,7 @@ func (c *APIController) GetAllArtifactVersions(
|
|||||||
|
|
||||||
return artifact.GetAllArtifactVersions200JSONResponse{
|
return artifact.GetAllArtifactVersions200JSONResponse{
|
||||||
ListArtifactVersionResponseJSONResponse: *GetAllArtifactVersionResponse(
|
ListArtifactVersionResponseJSONResponse: *GetAllArtifactVersionResponse(
|
||||||
ctx, tags, latestTag, image, count, regInfo.pageNumber, regInfo.limit,
|
ctx, tags, image, count, regInfo.pageNumber, regInfo.limit,
|
||||||
c.URLProvider.RegistryURL(ctx, regInfo.RootIdentifier, regInfo.RegistryIdentifier),
|
c.URLProvider.RegistryURL(ctx, regInfo.RootIdentifier, regInfo.RegistryIdentifier),
|
||||||
),
|
),
|
||||||
}, nil
|
}, nil
|
||||||
@ -118,8 +116,6 @@ func (c *APIController) GetAllArtifactVersions(
|
|||||||
return throw500Error(err)
|
return throw500Error(err)
|
||||||
}
|
}
|
||||||
|
|
||||||
latestVersion, _ := c.ArtifactStore.GetLatestVersionName(ctx, regInfo.parentID, regInfo.RegistryIdentifier, image)
|
|
||||||
|
|
||||||
cnt, _ := c.ArtifactStore.CountAllVersionsByRepoAndImage(
|
cnt, _ := c.ArtifactStore.CountAllVersionsByRepoAndImage(
|
||||||
ctx, regInfo.parentID, regInfo.RegistryIdentifier,
|
ctx, regInfo.parentID, regInfo.RegistryIdentifier,
|
||||||
image, regInfo.searchTerm,
|
image, regInfo.searchTerm,
|
||||||
@ -127,7 +123,7 @@ func (c *APIController) GetAllArtifactVersions(
|
|||||||
|
|
||||||
return artifact.GetAllArtifactVersions200JSONResponse{
|
return artifact.GetAllArtifactVersions200JSONResponse{
|
||||||
ListArtifactVersionResponseJSONResponse: *GetNonOCIAllArtifactVersionResponse(
|
ListArtifactVersionResponseJSONResponse: *GetNonOCIAllArtifactVersionResponse(
|
||||||
ctx, metadata, latestVersion, image, cnt, regInfo.pageNumber, regInfo.limit,
|
ctx, metadata, image, cnt, regInfo.pageNumber, regInfo.limit,
|
||||||
c.URLProvider.RegistryURL(ctx, regInfo.RootIdentifier, regInfo.RegistryIdentifier),
|
c.URLProvider.RegistryURL(ctx, regInfo.RootIdentifier, regInfo.RegistryIdentifier),
|
||||||
),
|
),
|
||||||
}, nil
|
}, nil
|
||||||
|
@ -1672,8 +1672,6 @@ components:
|
|||||||
fileCount:
|
fileCount:
|
||||||
type: integer
|
type: integer
|
||||||
format: int64
|
format: int64
|
||||||
islatestVersion:
|
|
||||||
type: boolean
|
|
||||||
lastModified:
|
lastModified:
|
||||||
type: string
|
type: string
|
||||||
packageType:
|
packageType:
|
||||||
@ -1916,8 +1914,6 @@ components:
|
|||||||
type: string
|
type: string
|
||||||
modifiedAt:
|
modifiedAt:
|
||||||
type: string
|
type: string
|
||||||
isLatestVersion:
|
|
||||||
type: boolean
|
|
||||||
required:
|
required:
|
||||||
- imageName
|
- imageName
|
||||||
- version
|
- version
|
||||||
@ -1971,8 +1967,6 @@ components:
|
|||||||
type: string
|
type: string
|
||||||
modifiedAt:
|
modifiedAt:
|
||||||
type: string
|
type: string
|
||||||
isLatestVersion:
|
|
||||||
type: boolean
|
|
||||||
required:
|
required:
|
||||||
- imageName
|
- imageName
|
||||||
- version
|
- version
|
||||||
@ -2011,8 +2005,6 @@ components:
|
|||||||
type: string
|
type: string
|
||||||
packageType:
|
packageType:
|
||||||
$ref: "#/components/schemas/PackageType"
|
$ref: "#/components/schemas/PackageType"
|
||||||
isLatestVersion:
|
|
||||||
type: boolean
|
|
||||||
required:
|
required:
|
||||||
- imageName
|
- imageName
|
||||||
- version
|
- version
|
||||||
@ -2070,8 +2062,6 @@ components:
|
|||||||
type: string
|
type: string
|
||||||
version:
|
version:
|
||||||
type: string
|
type: string
|
||||||
isLatestVersion:
|
|
||||||
type: boolean
|
|
||||||
manifests:
|
manifests:
|
||||||
type: array
|
type: array
|
||||||
items:
|
items:
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
// Package artifact provides primitives to interact with the openapi HTTP API.
|
// Package artifact provides primitives to interact with the openapi HTTP API.
|
||||||
//
|
//
|
||||||
// Code generated by github.com/deepmap/oapi-codegen version v1.16.3 DO NOT EDIT.
|
// Code generated by github.com/deepmap/oapi-codegen/v2 version v2.1.0 DO NOT EDIT.
|
||||||
package artifact
|
package artifact
|
||||||
|
|
||||||
import (
|
import (
|
||||||
@ -381,7 +381,7 @@ func (siw *ServerInterfaceWrapper) DeleteRegistry(w http.ResponseWriter, r *http
|
|||||||
// ------------- Path parameter "registry_ref" -------------
|
// ------------- Path parameter "registry_ref" -------------
|
||||||
var registryRef RegistryRefPathParam
|
var registryRef RegistryRefPathParam
|
||||||
|
|
||||||
err = runtime.BindStyledParameterWithLocation("simple", false, "registry_ref", runtime.ParamLocationPath, chi.URLParam(r, "registry_ref"), ®istryRef)
|
err = runtime.BindStyledParameterWithOptions("simple", "registry_ref", chi.URLParam(r, "registry_ref"), ®istryRef, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "registry_ref", Err: err})
|
siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "registry_ref", Err: err})
|
||||||
return
|
return
|
||||||
@ -407,7 +407,7 @@ func (siw *ServerInterfaceWrapper) GetRegistry(w http.ResponseWriter, r *http.Re
|
|||||||
// ------------- Path parameter "registry_ref" -------------
|
// ------------- Path parameter "registry_ref" -------------
|
||||||
var registryRef RegistryRefPathParam
|
var registryRef RegistryRefPathParam
|
||||||
|
|
||||||
err = runtime.BindStyledParameterWithLocation("simple", false, "registry_ref", runtime.ParamLocationPath, chi.URLParam(r, "registry_ref"), ®istryRef)
|
err = runtime.BindStyledParameterWithOptions("simple", "registry_ref", chi.URLParam(r, "registry_ref"), ®istryRef, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "registry_ref", Err: err})
|
siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "registry_ref", Err: err})
|
||||||
return
|
return
|
||||||
@ -433,7 +433,7 @@ func (siw *ServerInterfaceWrapper) ModifyRegistry(w http.ResponseWriter, r *http
|
|||||||
// ------------- Path parameter "registry_ref" -------------
|
// ------------- Path parameter "registry_ref" -------------
|
||||||
var registryRef RegistryRefPathParam
|
var registryRef RegistryRefPathParam
|
||||||
|
|
||||||
err = runtime.BindStyledParameterWithLocation("simple", false, "registry_ref", runtime.ParamLocationPath, chi.URLParam(r, "registry_ref"), ®istryRef)
|
err = runtime.BindStyledParameterWithOptions("simple", "registry_ref", chi.URLParam(r, "registry_ref"), ®istryRef, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "registry_ref", Err: err})
|
siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "registry_ref", Err: err})
|
||||||
return
|
return
|
||||||
@ -459,7 +459,7 @@ func (siw *ServerInterfaceWrapper) ListArtifactLabels(w http.ResponseWriter, r *
|
|||||||
// ------------- Path parameter "registry_ref" -------------
|
// ------------- Path parameter "registry_ref" -------------
|
||||||
var registryRef RegistryRefPathParam
|
var registryRef RegistryRefPathParam
|
||||||
|
|
||||||
err = runtime.BindStyledParameterWithLocation("simple", false, "registry_ref", runtime.ParamLocationPath, chi.URLParam(r, "registry_ref"), ®istryRef)
|
err = runtime.BindStyledParameterWithOptions("simple", "registry_ref", chi.URLParam(r, "registry_ref"), ®istryRef, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "registry_ref", Err: err})
|
siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "registry_ref", Err: err})
|
||||||
return
|
return
|
||||||
@ -512,7 +512,7 @@ func (siw *ServerInterfaceWrapper) GetArtifactStatsForRegistry(w http.ResponseWr
|
|||||||
// ------------- Path parameter "registry_ref" -------------
|
// ------------- Path parameter "registry_ref" -------------
|
||||||
var registryRef RegistryRefPathParam
|
var registryRef RegistryRefPathParam
|
||||||
|
|
||||||
err = runtime.BindStyledParameterWithLocation("simple", false, "registry_ref", runtime.ParamLocationPath, chi.URLParam(r, "registry_ref"), ®istryRef)
|
err = runtime.BindStyledParameterWithOptions("simple", "registry_ref", chi.URLParam(r, "registry_ref"), ®istryRef, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "registry_ref", Err: err})
|
siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "registry_ref", Err: err})
|
||||||
return
|
return
|
||||||
@ -557,7 +557,7 @@ func (siw *ServerInterfaceWrapper) DeleteArtifact(w http.ResponseWriter, r *http
|
|||||||
// ------------- Path parameter "registry_ref" -------------
|
// ------------- Path parameter "registry_ref" -------------
|
||||||
var registryRef RegistryRefPathParam
|
var registryRef RegistryRefPathParam
|
||||||
|
|
||||||
err = runtime.BindStyledParameterWithLocation("simple", false, "registry_ref", runtime.ParamLocationPath, chi.URLParam(r, "registry_ref"), ®istryRef)
|
err = runtime.BindStyledParameterWithOptions("simple", "registry_ref", chi.URLParam(r, "registry_ref"), ®istryRef, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "registry_ref", Err: err})
|
siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "registry_ref", Err: err})
|
||||||
return
|
return
|
||||||
@ -566,7 +566,7 @@ func (siw *ServerInterfaceWrapper) DeleteArtifact(w http.ResponseWriter, r *http
|
|||||||
// ------------- Path parameter "artifact" -------------
|
// ------------- Path parameter "artifact" -------------
|
||||||
var artifact ArtifactPathParam
|
var artifact ArtifactPathParam
|
||||||
|
|
||||||
err = runtime.BindStyledParameterWithLocation("simple", false, "artifact", runtime.ParamLocationPath, chi.URLParam(r, "artifact"), &artifact)
|
err = runtime.BindStyledParameterWithOptions("simple", "artifact", chi.URLParam(r, "artifact"), &artifact, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "artifact", Err: err})
|
siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "artifact", Err: err})
|
||||||
return
|
return
|
||||||
@ -592,7 +592,7 @@ func (siw *ServerInterfaceWrapper) UpdateArtifactLabels(w http.ResponseWriter, r
|
|||||||
// ------------- Path parameter "registry_ref" -------------
|
// ------------- Path parameter "registry_ref" -------------
|
||||||
var registryRef RegistryRefPathParam
|
var registryRef RegistryRefPathParam
|
||||||
|
|
||||||
err = runtime.BindStyledParameterWithLocation("simple", false, "registry_ref", runtime.ParamLocationPath, chi.URLParam(r, "registry_ref"), ®istryRef)
|
err = runtime.BindStyledParameterWithOptions("simple", "registry_ref", chi.URLParam(r, "registry_ref"), ®istryRef, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "registry_ref", Err: err})
|
siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "registry_ref", Err: err})
|
||||||
return
|
return
|
||||||
@ -601,7 +601,7 @@ func (siw *ServerInterfaceWrapper) UpdateArtifactLabels(w http.ResponseWriter, r
|
|||||||
// ------------- Path parameter "artifact" -------------
|
// ------------- Path parameter "artifact" -------------
|
||||||
var artifact ArtifactPathParam
|
var artifact ArtifactPathParam
|
||||||
|
|
||||||
err = runtime.BindStyledParameterWithLocation("simple", false, "artifact", runtime.ParamLocationPath, chi.URLParam(r, "artifact"), &artifact)
|
err = runtime.BindStyledParameterWithOptions("simple", "artifact", chi.URLParam(r, "artifact"), &artifact, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "artifact", Err: err})
|
siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "artifact", Err: err})
|
||||||
return
|
return
|
||||||
@ -627,7 +627,7 @@ func (siw *ServerInterfaceWrapper) GetArtifactStats(w http.ResponseWriter, r *ht
|
|||||||
// ------------- Path parameter "registry_ref" -------------
|
// ------------- Path parameter "registry_ref" -------------
|
||||||
var registryRef RegistryRefPathParam
|
var registryRef RegistryRefPathParam
|
||||||
|
|
||||||
err = runtime.BindStyledParameterWithLocation("simple", false, "registry_ref", runtime.ParamLocationPath, chi.URLParam(r, "registry_ref"), ®istryRef)
|
err = runtime.BindStyledParameterWithOptions("simple", "registry_ref", chi.URLParam(r, "registry_ref"), ®istryRef, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "registry_ref", Err: err})
|
siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "registry_ref", Err: err})
|
||||||
return
|
return
|
||||||
@ -636,7 +636,7 @@ func (siw *ServerInterfaceWrapper) GetArtifactStats(w http.ResponseWriter, r *ht
|
|||||||
// ------------- Path parameter "artifact" -------------
|
// ------------- Path parameter "artifact" -------------
|
||||||
var artifact ArtifactPathParam
|
var artifact ArtifactPathParam
|
||||||
|
|
||||||
err = runtime.BindStyledParameterWithLocation("simple", false, "artifact", runtime.ParamLocationPath, chi.URLParam(r, "artifact"), &artifact)
|
err = runtime.BindStyledParameterWithOptions("simple", "artifact", chi.URLParam(r, "artifact"), &artifact, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "artifact", Err: err})
|
siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "artifact", Err: err})
|
||||||
return
|
return
|
||||||
@ -681,7 +681,7 @@ func (siw *ServerInterfaceWrapper) GetArtifactSummary(w http.ResponseWriter, r *
|
|||||||
// ------------- Path parameter "registry_ref" -------------
|
// ------------- Path parameter "registry_ref" -------------
|
||||||
var registryRef RegistryRefPathParam
|
var registryRef RegistryRefPathParam
|
||||||
|
|
||||||
err = runtime.BindStyledParameterWithLocation("simple", false, "registry_ref", runtime.ParamLocationPath, chi.URLParam(r, "registry_ref"), ®istryRef)
|
err = runtime.BindStyledParameterWithOptions("simple", "registry_ref", chi.URLParam(r, "registry_ref"), ®istryRef, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "registry_ref", Err: err})
|
siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "registry_ref", Err: err})
|
||||||
return
|
return
|
||||||
@ -690,7 +690,7 @@ func (siw *ServerInterfaceWrapper) GetArtifactSummary(w http.ResponseWriter, r *
|
|||||||
// ------------- Path parameter "artifact" -------------
|
// ------------- Path parameter "artifact" -------------
|
||||||
var artifact ArtifactPathParam
|
var artifact ArtifactPathParam
|
||||||
|
|
||||||
err = runtime.BindStyledParameterWithLocation("simple", false, "artifact", runtime.ParamLocationPath, chi.URLParam(r, "artifact"), &artifact)
|
err = runtime.BindStyledParameterWithOptions("simple", "artifact", chi.URLParam(r, "artifact"), &artifact, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "artifact", Err: err})
|
siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "artifact", Err: err})
|
||||||
return
|
return
|
||||||
@ -716,7 +716,7 @@ func (siw *ServerInterfaceWrapper) DeleteArtifactVersion(w http.ResponseWriter,
|
|||||||
// ------------- Path parameter "registry_ref" -------------
|
// ------------- Path parameter "registry_ref" -------------
|
||||||
var registryRef RegistryRefPathParam
|
var registryRef RegistryRefPathParam
|
||||||
|
|
||||||
err = runtime.BindStyledParameterWithLocation("simple", false, "registry_ref", runtime.ParamLocationPath, chi.URLParam(r, "registry_ref"), ®istryRef)
|
err = runtime.BindStyledParameterWithOptions("simple", "registry_ref", chi.URLParam(r, "registry_ref"), ®istryRef, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "registry_ref", Err: err})
|
siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "registry_ref", Err: err})
|
||||||
return
|
return
|
||||||
@ -725,7 +725,7 @@ func (siw *ServerInterfaceWrapper) DeleteArtifactVersion(w http.ResponseWriter,
|
|||||||
// ------------- Path parameter "artifact" -------------
|
// ------------- Path parameter "artifact" -------------
|
||||||
var artifact ArtifactPathParam
|
var artifact ArtifactPathParam
|
||||||
|
|
||||||
err = runtime.BindStyledParameterWithLocation("simple", false, "artifact", runtime.ParamLocationPath, chi.URLParam(r, "artifact"), &artifact)
|
err = runtime.BindStyledParameterWithOptions("simple", "artifact", chi.URLParam(r, "artifact"), &artifact, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "artifact", Err: err})
|
siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "artifact", Err: err})
|
||||||
return
|
return
|
||||||
@ -734,7 +734,7 @@ func (siw *ServerInterfaceWrapper) DeleteArtifactVersion(w http.ResponseWriter,
|
|||||||
// ------------- Path parameter "version" -------------
|
// ------------- Path parameter "version" -------------
|
||||||
var version VersionPathParam
|
var version VersionPathParam
|
||||||
|
|
||||||
err = runtime.BindStyledParameterWithLocation("simple", false, "version", runtime.ParamLocationPath, chi.URLParam(r, "version"), &version)
|
err = runtime.BindStyledParameterWithOptions("simple", "version", chi.URLParam(r, "version"), &version, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "version", Err: err})
|
siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "version", Err: err})
|
||||||
return
|
return
|
||||||
@ -760,7 +760,7 @@ func (siw *ServerInterfaceWrapper) GetArtifactDetails(w http.ResponseWriter, r *
|
|||||||
// ------------- Path parameter "registry_ref" -------------
|
// ------------- Path parameter "registry_ref" -------------
|
||||||
var registryRef RegistryRefPathParam
|
var registryRef RegistryRefPathParam
|
||||||
|
|
||||||
err = runtime.BindStyledParameterWithLocation("simple", false, "registry_ref", runtime.ParamLocationPath, chi.URLParam(r, "registry_ref"), ®istryRef)
|
err = runtime.BindStyledParameterWithOptions("simple", "registry_ref", chi.URLParam(r, "registry_ref"), ®istryRef, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "registry_ref", Err: err})
|
siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "registry_ref", Err: err})
|
||||||
return
|
return
|
||||||
@ -769,7 +769,7 @@ func (siw *ServerInterfaceWrapper) GetArtifactDetails(w http.ResponseWriter, r *
|
|||||||
// ------------- Path parameter "artifact" -------------
|
// ------------- Path parameter "artifact" -------------
|
||||||
var artifact ArtifactPathParam
|
var artifact ArtifactPathParam
|
||||||
|
|
||||||
err = runtime.BindStyledParameterWithLocation("simple", false, "artifact", runtime.ParamLocationPath, chi.URLParam(r, "artifact"), &artifact)
|
err = runtime.BindStyledParameterWithOptions("simple", "artifact", chi.URLParam(r, "artifact"), &artifact, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "artifact", Err: err})
|
siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "artifact", Err: err})
|
||||||
return
|
return
|
||||||
@ -778,7 +778,7 @@ func (siw *ServerInterfaceWrapper) GetArtifactDetails(w http.ResponseWriter, r *
|
|||||||
// ------------- Path parameter "version" -------------
|
// ------------- Path parameter "version" -------------
|
||||||
var version VersionPathParam
|
var version VersionPathParam
|
||||||
|
|
||||||
err = runtime.BindStyledParameterWithLocation("simple", false, "version", runtime.ParamLocationPath, chi.URLParam(r, "version"), &version)
|
err = runtime.BindStyledParameterWithOptions("simple", "version", chi.URLParam(r, "version"), &version, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "version", Err: err})
|
siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "version", Err: err})
|
||||||
return
|
return
|
||||||
@ -815,7 +815,7 @@ func (siw *ServerInterfaceWrapper) GetDockerArtifactDetails(w http.ResponseWrite
|
|||||||
// ------------- Path parameter "registry_ref" -------------
|
// ------------- Path parameter "registry_ref" -------------
|
||||||
var registryRef RegistryRefPathParam
|
var registryRef RegistryRefPathParam
|
||||||
|
|
||||||
err = runtime.BindStyledParameterWithLocation("simple", false, "registry_ref", runtime.ParamLocationPath, chi.URLParam(r, "registry_ref"), ®istryRef)
|
err = runtime.BindStyledParameterWithOptions("simple", "registry_ref", chi.URLParam(r, "registry_ref"), ®istryRef, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "registry_ref", Err: err})
|
siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "registry_ref", Err: err})
|
||||||
return
|
return
|
||||||
@ -824,7 +824,7 @@ func (siw *ServerInterfaceWrapper) GetDockerArtifactDetails(w http.ResponseWrite
|
|||||||
// ------------- Path parameter "artifact" -------------
|
// ------------- Path parameter "artifact" -------------
|
||||||
var artifact ArtifactPathParam
|
var artifact ArtifactPathParam
|
||||||
|
|
||||||
err = runtime.BindStyledParameterWithLocation("simple", false, "artifact", runtime.ParamLocationPath, chi.URLParam(r, "artifact"), &artifact)
|
err = runtime.BindStyledParameterWithOptions("simple", "artifact", chi.URLParam(r, "artifact"), &artifact, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "artifact", Err: err})
|
siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "artifact", Err: err})
|
||||||
return
|
return
|
||||||
@ -833,7 +833,7 @@ func (siw *ServerInterfaceWrapper) GetDockerArtifactDetails(w http.ResponseWrite
|
|||||||
// ------------- Path parameter "version" -------------
|
// ------------- Path parameter "version" -------------
|
||||||
var version VersionPathParam
|
var version VersionPathParam
|
||||||
|
|
||||||
err = runtime.BindStyledParameterWithLocation("simple", false, "version", runtime.ParamLocationPath, chi.URLParam(r, "version"), &version)
|
err = runtime.BindStyledParameterWithOptions("simple", "version", chi.URLParam(r, "version"), &version, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "version", Err: err})
|
siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "version", Err: err})
|
||||||
return
|
return
|
||||||
@ -877,7 +877,7 @@ func (siw *ServerInterfaceWrapper) GetDockerArtifactLayers(w http.ResponseWriter
|
|||||||
// ------------- Path parameter "registry_ref" -------------
|
// ------------- Path parameter "registry_ref" -------------
|
||||||
var registryRef RegistryRefPathParam
|
var registryRef RegistryRefPathParam
|
||||||
|
|
||||||
err = runtime.BindStyledParameterWithLocation("simple", false, "registry_ref", runtime.ParamLocationPath, chi.URLParam(r, "registry_ref"), ®istryRef)
|
err = runtime.BindStyledParameterWithOptions("simple", "registry_ref", chi.URLParam(r, "registry_ref"), ®istryRef, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "registry_ref", Err: err})
|
siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "registry_ref", Err: err})
|
||||||
return
|
return
|
||||||
@ -886,7 +886,7 @@ func (siw *ServerInterfaceWrapper) GetDockerArtifactLayers(w http.ResponseWriter
|
|||||||
// ------------- Path parameter "artifact" -------------
|
// ------------- Path parameter "artifact" -------------
|
||||||
var artifact ArtifactPathParam
|
var artifact ArtifactPathParam
|
||||||
|
|
||||||
err = runtime.BindStyledParameterWithLocation("simple", false, "artifact", runtime.ParamLocationPath, chi.URLParam(r, "artifact"), &artifact)
|
err = runtime.BindStyledParameterWithOptions("simple", "artifact", chi.URLParam(r, "artifact"), &artifact, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "artifact", Err: err})
|
siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "artifact", Err: err})
|
||||||
return
|
return
|
||||||
@ -895,7 +895,7 @@ func (siw *ServerInterfaceWrapper) GetDockerArtifactLayers(w http.ResponseWriter
|
|||||||
// ------------- Path parameter "version" -------------
|
// ------------- Path parameter "version" -------------
|
||||||
var version VersionPathParam
|
var version VersionPathParam
|
||||||
|
|
||||||
err = runtime.BindStyledParameterWithLocation("simple", false, "version", runtime.ParamLocationPath, chi.URLParam(r, "version"), &version)
|
err = runtime.BindStyledParameterWithOptions("simple", "version", chi.URLParam(r, "version"), &version, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "version", Err: err})
|
siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "version", Err: err})
|
||||||
return
|
return
|
||||||
@ -939,7 +939,7 @@ func (siw *ServerInterfaceWrapper) GetDockerArtifactManifest(w http.ResponseWrit
|
|||||||
// ------------- Path parameter "registry_ref" -------------
|
// ------------- Path parameter "registry_ref" -------------
|
||||||
var registryRef RegistryRefPathParam
|
var registryRef RegistryRefPathParam
|
||||||
|
|
||||||
err = runtime.BindStyledParameterWithLocation("simple", false, "registry_ref", runtime.ParamLocationPath, chi.URLParam(r, "registry_ref"), ®istryRef)
|
err = runtime.BindStyledParameterWithOptions("simple", "registry_ref", chi.URLParam(r, "registry_ref"), ®istryRef, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "registry_ref", Err: err})
|
siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "registry_ref", Err: err})
|
||||||
return
|
return
|
||||||
@ -948,7 +948,7 @@ func (siw *ServerInterfaceWrapper) GetDockerArtifactManifest(w http.ResponseWrit
|
|||||||
// ------------- Path parameter "artifact" -------------
|
// ------------- Path parameter "artifact" -------------
|
||||||
var artifact ArtifactPathParam
|
var artifact ArtifactPathParam
|
||||||
|
|
||||||
err = runtime.BindStyledParameterWithLocation("simple", false, "artifact", runtime.ParamLocationPath, chi.URLParam(r, "artifact"), &artifact)
|
err = runtime.BindStyledParameterWithOptions("simple", "artifact", chi.URLParam(r, "artifact"), &artifact, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "artifact", Err: err})
|
siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "artifact", Err: err})
|
||||||
return
|
return
|
||||||
@ -957,7 +957,7 @@ func (siw *ServerInterfaceWrapper) GetDockerArtifactManifest(w http.ResponseWrit
|
|||||||
// ------------- Path parameter "version" -------------
|
// ------------- Path parameter "version" -------------
|
||||||
var version VersionPathParam
|
var version VersionPathParam
|
||||||
|
|
||||||
err = runtime.BindStyledParameterWithLocation("simple", false, "version", runtime.ParamLocationPath, chi.URLParam(r, "version"), &version)
|
err = runtime.BindStyledParameterWithOptions("simple", "version", chi.URLParam(r, "version"), &version, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "version", Err: err})
|
siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "version", Err: err})
|
||||||
return
|
return
|
||||||
@ -1001,7 +1001,7 @@ func (siw *ServerInterfaceWrapper) GetDockerArtifactManifests(w http.ResponseWri
|
|||||||
// ------------- Path parameter "registry_ref" -------------
|
// ------------- Path parameter "registry_ref" -------------
|
||||||
var registryRef RegistryRefPathParam
|
var registryRef RegistryRefPathParam
|
||||||
|
|
||||||
err = runtime.BindStyledParameterWithLocation("simple", false, "registry_ref", runtime.ParamLocationPath, chi.URLParam(r, "registry_ref"), ®istryRef)
|
err = runtime.BindStyledParameterWithOptions("simple", "registry_ref", chi.URLParam(r, "registry_ref"), ®istryRef, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "registry_ref", Err: err})
|
siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "registry_ref", Err: err})
|
||||||
return
|
return
|
||||||
@ -1010,7 +1010,7 @@ func (siw *ServerInterfaceWrapper) GetDockerArtifactManifests(w http.ResponseWri
|
|||||||
// ------------- Path parameter "artifact" -------------
|
// ------------- Path parameter "artifact" -------------
|
||||||
var artifact ArtifactPathParam
|
var artifact ArtifactPathParam
|
||||||
|
|
||||||
err = runtime.BindStyledParameterWithLocation("simple", false, "artifact", runtime.ParamLocationPath, chi.URLParam(r, "artifact"), &artifact)
|
err = runtime.BindStyledParameterWithOptions("simple", "artifact", chi.URLParam(r, "artifact"), &artifact, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "artifact", Err: err})
|
siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "artifact", Err: err})
|
||||||
return
|
return
|
||||||
@ -1019,7 +1019,7 @@ func (siw *ServerInterfaceWrapper) GetDockerArtifactManifests(w http.ResponseWri
|
|||||||
// ------------- Path parameter "version" -------------
|
// ------------- Path parameter "version" -------------
|
||||||
var version VersionPathParam
|
var version VersionPathParam
|
||||||
|
|
||||||
err = runtime.BindStyledParameterWithLocation("simple", false, "version", runtime.ParamLocationPath, chi.URLParam(r, "version"), &version)
|
err = runtime.BindStyledParameterWithOptions("simple", "version", chi.URLParam(r, "version"), &version, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "version", Err: err})
|
siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "version", Err: err})
|
||||||
return
|
return
|
||||||
@ -1045,7 +1045,7 @@ func (siw *ServerInterfaceWrapper) GetArtifactFiles(w http.ResponseWriter, r *ht
|
|||||||
// ------------- Path parameter "registry_ref" -------------
|
// ------------- Path parameter "registry_ref" -------------
|
||||||
var registryRef RegistryRefPathParam
|
var registryRef RegistryRefPathParam
|
||||||
|
|
||||||
err = runtime.BindStyledParameterWithLocation("simple", false, "registry_ref", runtime.ParamLocationPath, chi.URLParam(r, "registry_ref"), ®istryRef)
|
err = runtime.BindStyledParameterWithOptions("simple", "registry_ref", chi.URLParam(r, "registry_ref"), ®istryRef, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "registry_ref", Err: err})
|
siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "registry_ref", Err: err})
|
||||||
return
|
return
|
||||||
@ -1054,7 +1054,7 @@ func (siw *ServerInterfaceWrapper) GetArtifactFiles(w http.ResponseWriter, r *ht
|
|||||||
// ------------- Path parameter "artifact" -------------
|
// ------------- Path parameter "artifact" -------------
|
||||||
var artifact ArtifactPathParam
|
var artifact ArtifactPathParam
|
||||||
|
|
||||||
err = runtime.BindStyledParameterWithLocation("simple", false, "artifact", runtime.ParamLocationPath, chi.URLParam(r, "artifact"), &artifact)
|
err = runtime.BindStyledParameterWithOptions("simple", "artifact", chi.URLParam(r, "artifact"), &artifact, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "artifact", Err: err})
|
siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "artifact", Err: err})
|
||||||
return
|
return
|
||||||
@ -1063,7 +1063,7 @@ func (siw *ServerInterfaceWrapper) GetArtifactFiles(w http.ResponseWriter, r *ht
|
|||||||
// ------------- Path parameter "version" -------------
|
// ------------- Path parameter "version" -------------
|
||||||
var version VersionPathParam
|
var version VersionPathParam
|
||||||
|
|
||||||
err = runtime.BindStyledParameterWithLocation("simple", false, "version", runtime.ParamLocationPath, chi.URLParam(r, "version"), &version)
|
err = runtime.BindStyledParameterWithOptions("simple", "version", chi.URLParam(r, "version"), &version, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "version", Err: err})
|
siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "version", Err: err})
|
||||||
return
|
return
|
||||||
@ -1132,7 +1132,7 @@ func (siw *ServerInterfaceWrapper) GetHelmArtifactDetails(w http.ResponseWriter,
|
|||||||
// ------------- Path parameter "registry_ref" -------------
|
// ------------- Path parameter "registry_ref" -------------
|
||||||
var registryRef RegistryRefPathParam
|
var registryRef RegistryRefPathParam
|
||||||
|
|
||||||
err = runtime.BindStyledParameterWithLocation("simple", false, "registry_ref", runtime.ParamLocationPath, chi.URLParam(r, "registry_ref"), ®istryRef)
|
err = runtime.BindStyledParameterWithOptions("simple", "registry_ref", chi.URLParam(r, "registry_ref"), ®istryRef, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "registry_ref", Err: err})
|
siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "registry_ref", Err: err})
|
||||||
return
|
return
|
||||||
@ -1141,7 +1141,7 @@ func (siw *ServerInterfaceWrapper) GetHelmArtifactDetails(w http.ResponseWriter,
|
|||||||
// ------------- Path parameter "artifact" -------------
|
// ------------- Path parameter "artifact" -------------
|
||||||
var artifact ArtifactPathParam
|
var artifact ArtifactPathParam
|
||||||
|
|
||||||
err = runtime.BindStyledParameterWithLocation("simple", false, "artifact", runtime.ParamLocationPath, chi.URLParam(r, "artifact"), &artifact)
|
err = runtime.BindStyledParameterWithOptions("simple", "artifact", chi.URLParam(r, "artifact"), &artifact, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "artifact", Err: err})
|
siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "artifact", Err: err})
|
||||||
return
|
return
|
||||||
@ -1150,7 +1150,7 @@ func (siw *ServerInterfaceWrapper) GetHelmArtifactDetails(w http.ResponseWriter,
|
|||||||
// ------------- Path parameter "version" -------------
|
// ------------- Path parameter "version" -------------
|
||||||
var version VersionPathParam
|
var version VersionPathParam
|
||||||
|
|
||||||
err = runtime.BindStyledParameterWithLocation("simple", false, "version", runtime.ParamLocationPath, chi.URLParam(r, "version"), &version)
|
err = runtime.BindStyledParameterWithOptions("simple", "version", chi.URLParam(r, "version"), &version, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "version", Err: err})
|
siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "version", Err: err})
|
||||||
return
|
return
|
||||||
@ -1176,7 +1176,7 @@ func (siw *ServerInterfaceWrapper) GetHelmArtifactManifest(w http.ResponseWriter
|
|||||||
// ------------- Path parameter "registry_ref" -------------
|
// ------------- Path parameter "registry_ref" -------------
|
||||||
var registryRef RegistryRefPathParam
|
var registryRef RegistryRefPathParam
|
||||||
|
|
||||||
err = runtime.BindStyledParameterWithLocation("simple", false, "registry_ref", runtime.ParamLocationPath, chi.URLParam(r, "registry_ref"), ®istryRef)
|
err = runtime.BindStyledParameterWithOptions("simple", "registry_ref", chi.URLParam(r, "registry_ref"), ®istryRef, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "registry_ref", Err: err})
|
siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "registry_ref", Err: err})
|
||||||
return
|
return
|
||||||
@ -1185,7 +1185,7 @@ func (siw *ServerInterfaceWrapper) GetHelmArtifactManifest(w http.ResponseWriter
|
|||||||
// ------------- Path parameter "artifact" -------------
|
// ------------- Path parameter "artifact" -------------
|
||||||
var artifact ArtifactPathParam
|
var artifact ArtifactPathParam
|
||||||
|
|
||||||
err = runtime.BindStyledParameterWithLocation("simple", false, "artifact", runtime.ParamLocationPath, chi.URLParam(r, "artifact"), &artifact)
|
err = runtime.BindStyledParameterWithOptions("simple", "artifact", chi.URLParam(r, "artifact"), &artifact, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "artifact", Err: err})
|
siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "artifact", Err: err})
|
||||||
return
|
return
|
||||||
@ -1194,7 +1194,7 @@ func (siw *ServerInterfaceWrapper) GetHelmArtifactManifest(w http.ResponseWriter
|
|||||||
// ------------- Path parameter "version" -------------
|
// ------------- Path parameter "version" -------------
|
||||||
var version VersionPathParam
|
var version VersionPathParam
|
||||||
|
|
||||||
err = runtime.BindStyledParameterWithLocation("simple", false, "version", runtime.ParamLocationPath, chi.URLParam(r, "version"), &version)
|
err = runtime.BindStyledParameterWithOptions("simple", "version", chi.URLParam(r, "version"), &version, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "version", Err: err})
|
siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "version", Err: err})
|
||||||
return
|
return
|
||||||
@ -1220,7 +1220,7 @@ func (siw *ServerInterfaceWrapper) GetArtifactVersionSummary(w http.ResponseWrit
|
|||||||
// ------------- Path parameter "registry_ref" -------------
|
// ------------- Path parameter "registry_ref" -------------
|
||||||
var registryRef RegistryRefPathParam
|
var registryRef RegistryRefPathParam
|
||||||
|
|
||||||
err = runtime.BindStyledParameterWithLocation("simple", false, "registry_ref", runtime.ParamLocationPath, chi.URLParam(r, "registry_ref"), ®istryRef)
|
err = runtime.BindStyledParameterWithOptions("simple", "registry_ref", chi.URLParam(r, "registry_ref"), ®istryRef, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "registry_ref", Err: err})
|
siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "registry_ref", Err: err})
|
||||||
return
|
return
|
||||||
@ -1229,7 +1229,7 @@ func (siw *ServerInterfaceWrapper) GetArtifactVersionSummary(w http.ResponseWrit
|
|||||||
// ------------- Path parameter "artifact" -------------
|
// ------------- Path parameter "artifact" -------------
|
||||||
var artifact ArtifactPathParam
|
var artifact ArtifactPathParam
|
||||||
|
|
||||||
err = runtime.BindStyledParameterWithLocation("simple", false, "artifact", runtime.ParamLocationPath, chi.URLParam(r, "artifact"), &artifact)
|
err = runtime.BindStyledParameterWithOptions("simple", "artifact", chi.URLParam(r, "artifact"), &artifact, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "artifact", Err: err})
|
siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "artifact", Err: err})
|
||||||
return
|
return
|
||||||
@ -1238,7 +1238,7 @@ func (siw *ServerInterfaceWrapper) GetArtifactVersionSummary(w http.ResponseWrit
|
|||||||
// ------------- Path parameter "version" -------------
|
// ------------- Path parameter "version" -------------
|
||||||
var version VersionPathParam
|
var version VersionPathParam
|
||||||
|
|
||||||
err = runtime.BindStyledParameterWithLocation("simple", false, "version", runtime.ParamLocationPath, chi.URLParam(r, "version"), &version)
|
err = runtime.BindStyledParameterWithOptions("simple", "version", chi.URLParam(r, "version"), &version, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "version", Err: err})
|
siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "version", Err: err})
|
||||||
return
|
return
|
||||||
@ -1264,7 +1264,7 @@ func (siw *ServerInterfaceWrapper) GetAllArtifactVersions(w http.ResponseWriter,
|
|||||||
// ------------- Path parameter "registry_ref" -------------
|
// ------------- Path parameter "registry_ref" -------------
|
||||||
var registryRef RegistryRefPathParam
|
var registryRef RegistryRefPathParam
|
||||||
|
|
||||||
err = runtime.BindStyledParameterWithLocation("simple", false, "registry_ref", runtime.ParamLocationPath, chi.URLParam(r, "registry_ref"), ®istryRef)
|
err = runtime.BindStyledParameterWithOptions("simple", "registry_ref", chi.URLParam(r, "registry_ref"), ®istryRef, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "registry_ref", Err: err})
|
siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "registry_ref", Err: err})
|
||||||
return
|
return
|
||||||
@ -1273,7 +1273,7 @@ func (siw *ServerInterfaceWrapper) GetAllArtifactVersions(w http.ResponseWriter,
|
|||||||
// ------------- Path parameter "artifact" -------------
|
// ------------- Path parameter "artifact" -------------
|
||||||
var artifact ArtifactPathParam
|
var artifact ArtifactPathParam
|
||||||
|
|
||||||
err = runtime.BindStyledParameterWithLocation("simple", false, "artifact", runtime.ParamLocationPath, chi.URLParam(r, "artifact"), &artifact)
|
err = runtime.BindStyledParameterWithOptions("simple", "artifact", chi.URLParam(r, "artifact"), &artifact, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "artifact", Err: err})
|
siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "artifact", Err: err})
|
||||||
return
|
return
|
||||||
@ -1342,7 +1342,7 @@ func (siw *ServerInterfaceWrapper) GetAllArtifactsByRegistry(w http.ResponseWrit
|
|||||||
// ------------- Path parameter "registry_ref" -------------
|
// ------------- Path parameter "registry_ref" -------------
|
||||||
var registryRef RegistryRefPathParam
|
var registryRef RegistryRefPathParam
|
||||||
|
|
||||||
err = runtime.BindStyledParameterWithLocation("simple", false, "registry_ref", runtime.ParamLocationPath, chi.URLParam(r, "registry_ref"), ®istryRef)
|
err = runtime.BindStyledParameterWithOptions("simple", "registry_ref", chi.URLParam(r, "registry_ref"), ®istryRef, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "registry_ref", Err: err})
|
siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "registry_ref", Err: err})
|
||||||
return
|
return
|
||||||
@ -1419,7 +1419,7 @@ func (siw *ServerInterfaceWrapper) GetClientSetupDetails(w http.ResponseWriter,
|
|||||||
// ------------- Path parameter "registry_ref" -------------
|
// ------------- Path parameter "registry_ref" -------------
|
||||||
var registryRef RegistryRefPathParam
|
var registryRef RegistryRefPathParam
|
||||||
|
|
||||||
err = runtime.BindStyledParameterWithLocation("simple", false, "registry_ref", runtime.ParamLocationPath, chi.URLParam(r, "registry_ref"), ®istryRef)
|
err = runtime.BindStyledParameterWithOptions("simple", "registry_ref", chi.URLParam(r, "registry_ref"), ®istryRef, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "registry_ref", Err: err})
|
siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "registry_ref", Err: err})
|
||||||
return
|
return
|
||||||
@ -1464,7 +1464,7 @@ func (siw *ServerInterfaceWrapper) ListWebhooks(w http.ResponseWriter, r *http.R
|
|||||||
// ------------- Path parameter "registry_ref" -------------
|
// ------------- Path parameter "registry_ref" -------------
|
||||||
var registryRef RegistryRefPathParam
|
var registryRef RegistryRefPathParam
|
||||||
|
|
||||||
err = runtime.BindStyledParameterWithLocation("simple", false, "registry_ref", runtime.ParamLocationPath, chi.URLParam(r, "registry_ref"), ®istryRef)
|
err = runtime.BindStyledParameterWithOptions("simple", "registry_ref", chi.URLParam(r, "registry_ref"), ®istryRef, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "registry_ref", Err: err})
|
siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "registry_ref", Err: err})
|
||||||
return
|
return
|
||||||
@ -1533,7 +1533,7 @@ func (siw *ServerInterfaceWrapper) CreateWebhook(w http.ResponseWriter, r *http.
|
|||||||
// ------------- Path parameter "registry_ref" -------------
|
// ------------- Path parameter "registry_ref" -------------
|
||||||
var registryRef RegistryRefPathParam
|
var registryRef RegistryRefPathParam
|
||||||
|
|
||||||
err = runtime.BindStyledParameterWithLocation("simple", false, "registry_ref", runtime.ParamLocationPath, chi.URLParam(r, "registry_ref"), ®istryRef)
|
err = runtime.BindStyledParameterWithOptions("simple", "registry_ref", chi.URLParam(r, "registry_ref"), ®istryRef, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "registry_ref", Err: err})
|
siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "registry_ref", Err: err})
|
||||||
return
|
return
|
||||||
@ -1559,7 +1559,7 @@ func (siw *ServerInterfaceWrapper) DeleteWebhook(w http.ResponseWriter, r *http.
|
|||||||
// ------------- Path parameter "registry_ref" -------------
|
// ------------- Path parameter "registry_ref" -------------
|
||||||
var registryRef RegistryRefPathParam
|
var registryRef RegistryRefPathParam
|
||||||
|
|
||||||
err = runtime.BindStyledParameterWithLocation("simple", false, "registry_ref", runtime.ParamLocationPath, chi.URLParam(r, "registry_ref"), ®istryRef)
|
err = runtime.BindStyledParameterWithOptions("simple", "registry_ref", chi.URLParam(r, "registry_ref"), ®istryRef, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "registry_ref", Err: err})
|
siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "registry_ref", Err: err})
|
||||||
return
|
return
|
||||||
@ -1568,7 +1568,7 @@ func (siw *ServerInterfaceWrapper) DeleteWebhook(w http.ResponseWriter, r *http.
|
|||||||
// ------------- Path parameter "webhook_identifier" -------------
|
// ------------- Path parameter "webhook_identifier" -------------
|
||||||
var webhookIdentifier WebhookIdentifierPathParam
|
var webhookIdentifier WebhookIdentifierPathParam
|
||||||
|
|
||||||
err = runtime.BindStyledParameterWithLocation("simple", false, "webhook_identifier", runtime.ParamLocationPath, chi.URLParam(r, "webhook_identifier"), &webhookIdentifier)
|
err = runtime.BindStyledParameterWithOptions("simple", "webhook_identifier", chi.URLParam(r, "webhook_identifier"), &webhookIdentifier, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "webhook_identifier", Err: err})
|
siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "webhook_identifier", Err: err})
|
||||||
return
|
return
|
||||||
@ -1594,7 +1594,7 @@ func (siw *ServerInterfaceWrapper) GetWebhook(w http.ResponseWriter, r *http.Req
|
|||||||
// ------------- Path parameter "registry_ref" -------------
|
// ------------- Path parameter "registry_ref" -------------
|
||||||
var registryRef RegistryRefPathParam
|
var registryRef RegistryRefPathParam
|
||||||
|
|
||||||
err = runtime.BindStyledParameterWithLocation("simple", false, "registry_ref", runtime.ParamLocationPath, chi.URLParam(r, "registry_ref"), ®istryRef)
|
err = runtime.BindStyledParameterWithOptions("simple", "registry_ref", chi.URLParam(r, "registry_ref"), ®istryRef, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "registry_ref", Err: err})
|
siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "registry_ref", Err: err})
|
||||||
return
|
return
|
||||||
@ -1603,7 +1603,7 @@ func (siw *ServerInterfaceWrapper) GetWebhook(w http.ResponseWriter, r *http.Req
|
|||||||
// ------------- Path parameter "webhook_identifier" -------------
|
// ------------- Path parameter "webhook_identifier" -------------
|
||||||
var webhookIdentifier WebhookIdentifierPathParam
|
var webhookIdentifier WebhookIdentifierPathParam
|
||||||
|
|
||||||
err = runtime.BindStyledParameterWithLocation("simple", false, "webhook_identifier", runtime.ParamLocationPath, chi.URLParam(r, "webhook_identifier"), &webhookIdentifier)
|
err = runtime.BindStyledParameterWithOptions("simple", "webhook_identifier", chi.URLParam(r, "webhook_identifier"), &webhookIdentifier, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "webhook_identifier", Err: err})
|
siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "webhook_identifier", Err: err})
|
||||||
return
|
return
|
||||||
@ -1629,7 +1629,7 @@ func (siw *ServerInterfaceWrapper) UpdateWebhook(w http.ResponseWriter, r *http.
|
|||||||
// ------------- Path parameter "registry_ref" -------------
|
// ------------- Path parameter "registry_ref" -------------
|
||||||
var registryRef RegistryRefPathParam
|
var registryRef RegistryRefPathParam
|
||||||
|
|
||||||
err = runtime.BindStyledParameterWithLocation("simple", false, "registry_ref", runtime.ParamLocationPath, chi.URLParam(r, "registry_ref"), ®istryRef)
|
err = runtime.BindStyledParameterWithOptions("simple", "registry_ref", chi.URLParam(r, "registry_ref"), ®istryRef, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "registry_ref", Err: err})
|
siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "registry_ref", Err: err})
|
||||||
return
|
return
|
||||||
@ -1638,7 +1638,7 @@ func (siw *ServerInterfaceWrapper) UpdateWebhook(w http.ResponseWriter, r *http.
|
|||||||
// ------------- Path parameter "webhook_identifier" -------------
|
// ------------- Path parameter "webhook_identifier" -------------
|
||||||
var webhookIdentifier WebhookIdentifierPathParam
|
var webhookIdentifier WebhookIdentifierPathParam
|
||||||
|
|
||||||
err = runtime.BindStyledParameterWithLocation("simple", false, "webhook_identifier", runtime.ParamLocationPath, chi.URLParam(r, "webhook_identifier"), &webhookIdentifier)
|
err = runtime.BindStyledParameterWithOptions("simple", "webhook_identifier", chi.URLParam(r, "webhook_identifier"), &webhookIdentifier, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "webhook_identifier", Err: err})
|
siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "webhook_identifier", Err: err})
|
||||||
return
|
return
|
||||||
@ -1664,7 +1664,7 @@ func (siw *ServerInterfaceWrapper) ListWebhookExecutions(w http.ResponseWriter,
|
|||||||
// ------------- Path parameter "registry_ref" -------------
|
// ------------- Path parameter "registry_ref" -------------
|
||||||
var registryRef RegistryRefPathParam
|
var registryRef RegistryRefPathParam
|
||||||
|
|
||||||
err = runtime.BindStyledParameterWithLocation("simple", false, "registry_ref", runtime.ParamLocationPath, chi.URLParam(r, "registry_ref"), ®istryRef)
|
err = runtime.BindStyledParameterWithOptions("simple", "registry_ref", chi.URLParam(r, "registry_ref"), ®istryRef, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "registry_ref", Err: err})
|
siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "registry_ref", Err: err})
|
||||||
return
|
return
|
||||||
@ -1673,7 +1673,7 @@ func (siw *ServerInterfaceWrapper) ListWebhookExecutions(w http.ResponseWriter,
|
|||||||
// ------------- Path parameter "webhook_identifier" -------------
|
// ------------- Path parameter "webhook_identifier" -------------
|
||||||
var webhookIdentifier WebhookIdentifierPathParam
|
var webhookIdentifier WebhookIdentifierPathParam
|
||||||
|
|
||||||
err = runtime.BindStyledParameterWithLocation("simple", false, "webhook_identifier", runtime.ParamLocationPath, chi.URLParam(r, "webhook_identifier"), &webhookIdentifier)
|
err = runtime.BindStyledParameterWithOptions("simple", "webhook_identifier", chi.URLParam(r, "webhook_identifier"), &webhookIdentifier, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "webhook_identifier", Err: err})
|
siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "webhook_identifier", Err: err})
|
||||||
return
|
return
|
||||||
@ -1718,7 +1718,7 @@ func (siw *ServerInterfaceWrapper) GetWebhookExecution(w http.ResponseWriter, r
|
|||||||
// ------------- Path parameter "registry_ref" -------------
|
// ------------- Path parameter "registry_ref" -------------
|
||||||
var registryRef RegistryRefPathParam
|
var registryRef RegistryRefPathParam
|
||||||
|
|
||||||
err = runtime.BindStyledParameterWithLocation("simple", false, "registry_ref", runtime.ParamLocationPath, chi.URLParam(r, "registry_ref"), ®istryRef)
|
err = runtime.BindStyledParameterWithOptions("simple", "registry_ref", chi.URLParam(r, "registry_ref"), ®istryRef, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "registry_ref", Err: err})
|
siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "registry_ref", Err: err})
|
||||||
return
|
return
|
||||||
@ -1727,7 +1727,7 @@ func (siw *ServerInterfaceWrapper) GetWebhookExecution(w http.ResponseWriter, r
|
|||||||
// ------------- Path parameter "webhook_identifier" -------------
|
// ------------- Path parameter "webhook_identifier" -------------
|
||||||
var webhookIdentifier WebhookIdentifierPathParam
|
var webhookIdentifier WebhookIdentifierPathParam
|
||||||
|
|
||||||
err = runtime.BindStyledParameterWithLocation("simple", false, "webhook_identifier", runtime.ParamLocationPath, chi.URLParam(r, "webhook_identifier"), &webhookIdentifier)
|
err = runtime.BindStyledParameterWithOptions("simple", "webhook_identifier", chi.URLParam(r, "webhook_identifier"), &webhookIdentifier, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "webhook_identifier", Err: err})
|
siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "webhook_identifier", Err: err})
|
||||||
return
|
return
|
||||||
@ -1736,7 +1736,7 @@ func (siw *ServerInterfaceWrapper) GetWebhookExecution(w http.ResponseWriter, r
|
|||||||
// ------------- Path parameter "webhook_execution_id" -------------
|
// ------------- Path parameter "webhook_execution_id" -------------
|
||||||
var webhookExecutionId WebhookExecutionIdPathParam
|
var webhookExecutionId WebhookExecutionIdPathParam
|
||||||
|
|
||||||
err = runtime.BindStyledParameterWithLocation("simple", false, "webhook_execution_id", runtime.ParamLocationPath, chi.URLParam(r, "webhook_execution_id"), &webhookExecutionId)
|
err = runtime.BindStyledParameterWithOptions("simple", "webhook_execution_id", chi.URLParam(r, "webhook_execution_id"), &webhookExecutionId, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "webhook_execution_id", Err: err})
|
siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "webhook_execution_id", Err: err})
|
||||||
return
|
return
|
||||||
@ -1762,7 +1762,7 @@ func (siw *ServerInterfaceWrapper) ReTriggerWebhookExecution(w http.ResponseWrit
|
|||||||
// ------------- Path parameter "registry_ref" -------------
|
// ------------- Path parameter "registry_ref" -------------
|
||||||
var registryRef RegistryRefPathParam
|
var registryRef RegistryRefPathParam
|
||||||
|
|
||||||
err = runtime.BindStyledParameterWithLocation("simple", false, "registry_ref", runtime.ParamLocationPath, chi.URLParam(r, "registry_ref"), ®istryRef)
|
err = runtime.BindStyledParameterWithOptions("simple", "registry_ref", chi.URLParam(r, "registry_ref"), ®istryRef, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "registry_ref", Err: err})
|
siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "registry_ref", Err: err})
|
||||||
return
|
return
|
||||||
@ -1771,7 +1771,7 @@ func (siw *ServerInterfaceWrapper) ReTriggerWebhookExecution(w http.ResponseWrit
|
|||||||
// ------------- Path parameter "webhook_identifier" -------------
|
// ------------- Path parameter "webhook_identifier" -------------
|
||||||
var webhookIdentifier WebhookIdentifierPathParam
|
var webhookIdentifier WebhookIdentifierPathParam
|
||||||
|
|
||||||
err = runtime.BindStyledParameterWithLocation("simple", false, "webhook_identifier", runtime.ParamLocationPath, chi.URLParam(r, "webhook_identifier"), &webhookIdentifier)
|
err = runtime.BindStyledParameterWithOptions("simple", "webhook_identifier", chi.URLParam(r, "webhook_identifier"), &webhookIdentifier, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "webhook_identifier", Err: err})
|
siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "webhook_identifier", Err: err})
|
||||||
return
|
return
|
||||||
@ -1780,7 +1780,7 @@ func (siw *ServerInterfaceWrapper) ReTriggerWebhookExecution(w http.ResponseWrit
|
|||||||
// ------------- Path parameter "webhook_execution_id" -------------
|
// ------------- Path parameter "webhook_execution_id" -------------
|
||||||
var webhookExecutionId WebhookExecutionIdPathParam
|
var webhookExecutionId WebhookExecutionIdPathParam
|
||||||
|
|
||||||
err = runtime.BindStyledParameterWithLocation("simple", false, "webhook_execution_id", runtime.ParamLocationPath, chi.URLParam(r, "webhook_execution_id"), &webhookExecutionId)
|
err = runtime.BindStyledParameterWithOptions("simple", "webhook_execution_id", chi.URLParam(r, "webhook_execution_id"), &webhookExecutionId, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "webhook_execution_id", Err: err})
|
siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "webhook_execution_id", Err: err})
|
||||||
return
|
return
|
||||||
@ -1806,7 +1806,7 @@ func (siw *ServerInterfaceWrapper) GetArtifactStatsForSpace(w http.ResponseWrite
|
|||||||
// ------------- Path parameter "space_ref" -------------
|
// ------------- Path parameter "space_ref" -------------
|
||||||
var spaceRef SpaceRefPathParam
|
var spaceRef SpaceRefPathParam
|
||||||
|
|
||||||
err = runtime.BindStyledParameterWithLocation("simple", false, "space_ref", runtime.ParamLocationPath, chi.URLParam(r, "space_ref"), &spaceRef)
|
err = runtime.BindStyledParameterWithOptions("simple", "space_ref", chi.URLParam(r, "space_ref"), &spaceRef, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "space_ref", Err: err})
|
siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "space_ref", Err: err})
|
||||||
return
|
return
|
||||||
@ -1851,7 +1851,7 @@ func (siw *ServerInterfaceWrapper) GetAllArtifacts(w http.ResponseWriter, r *htt
|
|||||||
// ------------- Path parameter "space_ref" -------------
|
// ------------- Path parameter "space_ref" -------------
|
||||||
var spaceRef SpaceRefPathParam
|
var spaceRef SpaceRefPathParam
|
||||||
|
|
||||||
err = runtime.BindStyledParameterWithLocation("simple", false, "space_ref", runtime.ParamLocationPath, chi.URLParam(r, "space_ref"), &spaceRef)
|
err = runtime.BindStyledParameterWithOptions("simple", "space_ref", chi.URLParam(r, "space_ref"), &spaceRef, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "space_ref", Err: err})
|
siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "space_ref", Err: err})
|
||||||
return
|
return
|
||||||
@ -1944,7 +1944,7 @@ func (siw *ServerInterfaceWrapper) GetAllRegistries(w http.ResponseWriter, r *ht
|
|||||||
// ------------- Path parameter "space_ref" -------------
|
// ------------- Path parameter "space_ref" -------------
|
||||||
var spaceRef SpaceRefPathParam
|
var spaceRef SpaceRefPathParam
|
||||||
|
|
||||||
err = runtime.BindStyledParameterWithLocation("simple", false, "space_ref", runtime.ParamLocationPath, chi.URLParam(r, "space_ref"), &spaceRef)
|
err = runtime.BindStyledParameterWithOptions("simple", "space_ref", chi.URLParam(r, "space_ref"), &spaceRef, runtime.BindStyledParameterOptions{ParamLocation: runtime.ParamLocationPath, Explode: false, Required: true})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "space_ref", Err: err})
|
siw.ErrorHandlerFunc(w, r, &InvalidParamFormatError{ParamName: "space_ref", Err: err})
|
||||||
return
|
return
|
||||||
@ -5768,96 +5768,96 @@ func (sh *strictHandler) GetAllRegistries(w http.ResponseWriter, r *http.Request
|
|||||||
// Base64 encoded, gzipped, json marshaled Swagger object
|
// Base64 encoded, gzipped, json marshaled Swagger object
|
||||||
var swaggerSpec = []string{
|
var swaggerSpec = []string{
|
||||||
|
|
||||||
"H4sIAAAAAAAC/+xdW3PbuJL+KyzuPjKW55zsPvhNkeWJauzEK9s5NTXlcsEkJPGEIjkAaEcnpf++hRsJ",
|
"H4sIAAAAAAAC/+xdX3PbOJL/KizePTKWZzd3D35TbH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fy13cK1rfkLXq970a+0YDWZGmf6",
|
||||||
"DIM5r9duGZRasJpMjYN/XWnBaNlqyOY+lQ2XkTu1cns7du92rPEKvAmsuuiMXdiw2hCLFqzu234t+cg3",
|
"pj6CaNVpfhb+iy0Xf7u0TQfrcyvr03iT3IZDXZDDLixPbaRCBwxf2uqsuJq3RF/JMsQoEcSmum24VuO+",
|
||||||
"hI3JMtgoNtimum2cWe2iuI82O7loswrMChy04exanvFYxyjyTJh1S/MgCNjkTrNHjSVqGpxFdHEqFiom",
|
"dQjaOrqgrRrMShx04exKHrpYh/rxhJJN+3AvCNjkanBAjSVqWnwudOEeFiqmCMcwaqqvskDP1npprvoV",
|
||||||
"jyMxaqpvskDH1jpprurdca/A3r4Cy93ju+iuhuvAHgDHjpcu8mRuPqdWakFCx6wPKmhUKGuD4wnab1XS",
|
"7KDAXr8CK7zM++iulvu5AQCHDjsu001uPqdWakFCx6wPamhUKOuC4xHab3XSBjX4C6nBIgzKQmRKSSkD",
|
||||||
"ejX4C6nBPH7LQmQKSSkirXo1eGpq8NViRvUzaaUNlCiTRp2Xt9uGPCW0cjMMKhGRGicdm8ZbG+3CmVI4",
|
"lgY1eGxq8MliRvUzaaUNlGCNVp1XtNuFPCVCcTMMKoGFGq8Zm8Y7G+3DmUpUz6Afj1o/KpOsg6k5jGAn",
|
||||||
"Uq8fT1o/KpOsg6k5/mEn56OywER/ajdHSZZObA+kbsunh9UArRlE2CGJIw7ZFF8DEcEjY2OKuBwRZKNz",
|
"R5+ywFR/arfASZZObQ+kbqqnh/U4pzlg4tDEEYdsyuW/CISRISZleIuIVdF5AZiNZ5N51bwvRFGUPEFw",
|
||||||
"OjAbzybzqn7zCKIoeYXBLSAEorjblvw5SvzvG9b1q16Blu4gai1dszkwbGypwk2r5TC68Qjdc8NmH9oT",
|
"gygFHPfbkj9Eif99w7p+3U3P0j9DraVrtgCGjS1V+k11nDO3no57btjur3pEntCms2T9zUUldbHwVrE7",
|
||||||
"cuE2nSXrrzdKOZ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sGP8MkfNxa",
|
||||||
"lX59cUfQzxAOX7aW3T6JcUfZLQlNXXjZ0xy0AS5G1S1L7jXCH6kYgDQcvPzG5k+0VXsy/HbC39dkd0ye",
|
"dockxj1ltyI0TeFlT3PkDXAxqm9ZCq8R/kjFCKXh6PE3Nn+ircaT4TdT/r4mu2PynIydsnlOlBODVWLE",
|
||||||
"k7FTNs+JKDFIJUa8k6EQSIGkb20OiWgCKLpItFCop8YGHOG74iQzh0de6hqrRbdZt7mA0VLXYsX12tye",
|
"OxkKgTmQ9K0tgIomkKKLRAulemptwBG+K04yd3jkpa6xRnSbdZtLiFa6Fmuu1+b2tCx7Ku9zRXuFjb/+",
|
||||||
"lmWvxX2uaC+38deP6/8PAAD//4C6fVFS4wAA",
|
"tv7/AAAA//8STZpMmeIAAA==",
|
||||||
}
|
}
|
||||||
|
|
||||||
// GetSwagger returns the content of the embedded swagger specification file
|
// GetSwagger returns the content of the embedded swagger specification file
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
// Package artifact provides primitives to interact with the openapi HTTP API.
|
// Package artifact provides primitives to interact with the openapi HTTP API.
|
||||||
//
|
//
|
||||||
// Code generated by github.com/deepmap/oapi-codegen version v1.16.3 DO NOT EDIT.
|
// Code generated by github.com/deepmap/oapi-codegen/v2 version v2.1.0 DO NOT EDIT.
|
||||||
package artifact
|
package artifact
|
||||||
|
|
||||||
import (
|
import (
|
||||||
@ -156,12 +156,11 @@ type ArtifactSummary struct {
|
|||||||
|
|
||||||
// ArtifactVersionMetadata Artifact Version Metadata
|
// ArtifactVersionMetadata Artifact Version Metadata
|
||||||
type ArtifactVersionMetadata struct {
|
type ArtifactVersionMetadata struct {
|
||||||
DigestCount *int `json:"digestCount,omitempty"`
|
DigestCount *int `json:"digestCount,omitempty"`
|
||||||
DownloadsCount *int64 `json:"downloadsCount,omitempty"`
|
DownloadsCount *int64 `json:"downloadsCount,omitempty"`
|
||||||
FileCount *int64 `json:"fileCount,omitempty"`
|
FileCount *int64 `json:"fileCount,omitempty"`
|
||||||
IslatestVersion *bool `json:"islatestVersion,omitempty"`
|
LastModified *string `json:"lastModified,omitempty"`
|
||||||
LastModified *string `json:"lastModified,omitempty"`
|
Name string `json:"name"`
|
||||||
Name string `json:"name"`
|
|
||||||
|
|
||||||
// PackageType refers to package
|
// PackageType refers to package
|
||||||
PackageType *PackageType `json:"packageType,omitempty"`
|
PackageType *PackageType `json:"packageType,omitempty"`
|
||||||
@ -173,8 +172,7 @@ type ArtifactVersionMetadata struct {
|
|||||||
|
|
||||||
// ArtifactVersionSummary Docker Artifact Version Summary
|
// ArtifactVersionSummary Docker Artifact Version Summary
|
||||||
type ArtifactVersionSummary struct {
|
type ArtifactVersionSummary struct {
|
||||||
ImageName string `json:"imageName"`
|
ImageName string `json:"imageName"`
|
||||||
IsLatestVersion *bool `json:"isLatestVersion,omitempty"`
|
|
||||||
|
|
||||||
// PackageType refers to package
|
// PackageType refers to package
|
||||||
PackageType PackageType `json:"packageType"`
|
PackageType PackageType `json:"packageType"`
|
||||||
@ -234,11 +232,10 @@ type ClientSetupStepType string
|
|||||||
|
|
||||||
// DockerArtifactDetail Docker Artifact Detail
|
// DockerArtifactDetail Docker Artifact Detail
|
||||||
type DockerArtifactDetail struct {
|
type DockerArtifactDetail struct {
|
||||||
CreatedAt *string `json:"createdAt,omitempty"`
|
CreatedAt *string `json:"createdAt,omitempty"`
|
||||||
DownloadsCount *int64 `json:"downloadsCount,omitempty"`
|
DownloadsCount *int64 `json:"downloadsCount,omitempty"`
|
||||||
ImageName string `json:"imageName"`
|
ImageName string `json:"imageName"`
|
||||||
IsLatestVersion *bool `json:"isLatestVersion,omitempty"`
|
ModifiedAt *string `json:"modifiedAt,omitempty"`
|
||||||
ModifiedAt *string `json:"modifiedAt,omitempty"`
|
|
||||||
|
|
||||||
// PackageType refers to package
|
// PackageType refers to package
|
||||||
PackageType PackageType `json:"packageType"`
|
PackageType PackageType `json:"packageType"`
|
||||||
@ -283,10 +280,9 @@ type DockerManifestDetails struct {
|
|||||||
|
|
||||||
// DockerManifests Harness Manifests
|
// DockerManifests Harness Manifests
|
||||||
type DockerManifests struct {
|
type DockerManifests struct {
|
||||||
ImageName string `json:"imageName"`
|
ImageName string `json:"imageName"`
|
||||||
IsLatestVersion *bool `json:"isLatestVersion,omitempty"`
|
Manifests *[]DockerManifestDetails `json:"manifests,omitempty"`
|
||||||
Manifests *[]DockerManifestDetails `json:"manifests,omitempty"`
|
Version string `json:"version"`
|
||||||
Version string `json:"version"`
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Error defines model for Error.
|
// Error defines model for Error.
|
||||||
@ -323,11 +319,10 @@ type GenericArtifactDetailConfig struct {
|
|||||||
|
|
||||||
// HelmArtifactDetail Helm Artifact Detail
|
// HelmArtifactDetail Helm Artifact Detail
|
||||||
type HelmArtifactDetail struct {
|
type HelmArtifactDetail struct {
|
||||||
Artifact *string `json:"artifact,omitempty"`
|
Artifact *string `json:"artifact,omitempty"`
|
||||||
CreatedAt *string `json:"createdAt,omitempty"`
|
CreatedAt *string `json:"createdAt,omitempty"`
|
||||||
DownloadsCount *int64 `json:"downloadsCount,omitempty"`
|
DownloadsCount *int64 `json:"downloadsCount,omitempty"`
|
||||||
IsLatestVersion *bool `json:"isLatestVersion,omitempty"`
|
ModifiedAt *string `json:"modifiedAt,omitempty"`
|
||||||
ModifiedAt *string `json:"modifiedAt,omitempty"`
|
|
||||||
|
|
||||||
// PackageType refers to package
|
// PackageType refers to package
|
||||||
PackageType PackageType `json:"packageType"`
|
PackageType PackageType `json:"packageType"`
|
||||||
@ -1261,7 +1256,7 @@ func (t *ArtifactDetail) MergeDockerArtifactDetailConfig(v DockerArtifactDetailC
|
|||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
merged, err := runtime.JsonMerge(t.union, b)
|
merged, err := runtime.JSONMerge(t.union, b)
|
||||||
t.union = merged
|
t.union = merged
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
@ -1291,7 +1286,7 @@ func (t *ArtifactDetail) MergeHelmArtifactDetailConfig(v HelmArtifactDetailConfi
|
|||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
merged, err := runtime.JsonMerge(t.union, b)
|
merged, err := runtime.JSONMerge(t.union, b)
|
||||||
t.union = merged
|
t.union = merged
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
@ -1321,7 +1316,7 @@ func (t *ArtifactDetail) MergeGenericArtifactDetailConfig(v GenericArtifactDetai
|
|||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
merged, err := runtime.JsonMerge(t.union, b)
|
merged, err := runtime.JSONMerge(t.union, b)
|
||||||
t.union = merged
|
t.union = merged
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
@ -1351,7 +1346,7 @@ func (t *ArtifactDetail) MergeMavenArtifactDetailConfig(v MavenArtifactDetailCon
|
|||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
merged, err := runtime.JsonMerge(t.union, b)
|
merged, err := runtime.JSONMerge(t.union, b)
|
||||||
t.union = merged
|
t.union = merged
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
@ -1547,7 +1542,7 @@ func (t *ClientSetupSection) MergeClientSetupStepConfig(v ClientSetupStepConfig)
|
|||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
merged, err := runtime.JsonMerge(t.union, b)
|
merged, err := runtime.JSONMerge(t.union, b)
|
||||||
t.union = merged
|
t.union = merged
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
@ -1577,7 +1572,7 @@ func (t *ClientSetupSection) MergeTabSetupStepConfig(v TabSetupStepConfig) error
|
|||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
merged, err := runtime.JsonMerge(t.union, b)
|
merged, err := runtime.JSONMerge(t.union, b)
|
||||||
t.union = merged
|
t.union = merged
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
@ -1701,7 +1696,7 @@ func (t *RegistryConfig) MergeVirtualConfig(v VirtualConfig) error {
|
|||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
merged, err := runtime.JsonMerge(t.union, b)
|
merged, err := runtime.JSONMerge(t.union, b)
|
||||||
t.union = merged
|
t.union = merged
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
@ -1731,7 +1726,7 @@ func (t *RegistryConfig) MergeUpstreamConfig(v UpstreamConfig) error {
|
|||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
merged, err := runtime.JsonMerge(t.union, b)
|
merged, err := runtime.JSONMerge(t.union, b)
|
||||||
t.union = merged
|
t.union = merged
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
@ -1823,7 +1818,7 @@ func (t *UpstreamConfig_Auth) MergeUserPassword(v UserPassword) error {
|
|||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
merged, err := runtime.JsonMerge(t.union, b)
|
merged, err := runtime.JSONMerge(t.union, b)
|
||||||
t.union = merged
|
t.union = merged
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
@ -1849,7 +1844,7 @@ func (t *UpstreamConfig_Auth) MergeAnonymous(v Anonymous) error {
|
|||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
merged, err := runtime.JsonMerge(t.union, b)
|
merged, err := runtime.JSONMerge(t.union, b)
|
||||||
t.union = merged
|
t.union = merged
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
@ -1875,7 +1870,7 @@ func (t *UpstreamConfig_Auth) MergeAccessKeySecretKey(v AccessKeySecretKey) erro
|
|||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
merged, err := runtime.JsonMerge(t.union, b)
|
merged, err := runtime.JSONMerge(t.union, b)
|
||||||
t.union = merged
|
t.union = merged
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
@ -293,7 +293,6 @@ func (c *controller) HeadManifest(
|
|||||||
func (c *controller) ProxyBlob(
|
func (c *controller) ProxyBlob(
|
||||||
ctx context.Context, art pkg.RegistryInfo, repoKey string, proxy types.UpstreamProxy,
|
ctx context.Context, art pkg.RegistryInfo, repoKey string, proxy types.UpstreamProxy,
|
||||||
) (int64, io.ReadCloser, error) {
|
) (int64, io.ReadCloser, error) {
|
||||||
|
|
||||||
rHelper, err := NewRemoteHelper(ctx, c.spaceFinder, c.secretService, repoKey, proxy)
|
rHelper, err := NewRemoteHelper(ctx, c.spaceFinder, c.secretService, repoKey, proxy)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return 0, nil, err
|
return 0, nil, err
|
||||||
|
@ -442,10 +442,12 @@ type ArtifactRepository interface {
|
|||||||
// Create an Artifact
|
// Create an Artifact
|
||||||
CreateOrUpdate(ctx context.Context, artifact *types.Artifact) error
|
CreateOrUpdate(ctx context.Context, artifact *types.Artifact) error
|
||||||
Count(ctx context.Context) (int64, error)
|
Count(ctx context.Context) (int64, error)
|
||||||
GetAllArtifactsByParentID(ctx context.Context, id int64,
|
GetAllArtifactsByParentID(
|
||||||
|
ctx context.Context, id int64,
|
||||||
i *[]string, field string, order string,
|
i *[]string, field string, order string,
|
||||||
limit int, offset int, term string,
|
limit int, offset int, term string,
|
||||||
version bool, packageTypes []string) (*[]types.ArtifactMetadata, error)
|
version bool, packageTypes []string,
|
||||||
|
) (*[]types.ArtifactMetadata, error)
|
||||||
CountAllArtifactsByParentID(
|
CountAllArtifactsByParentID(
|
||||||
ctx context.Context, parentID int64,
|
ctx context.Context, parentID int64,
|
||||||
registryIDs *[]string, search string, latestVersion bool, packageTypes []string,
|
registryIDs *[]string, search string, latestVersion bool, packageTypes []string,
|
||||||
@ -459,17 +461,22 @@ type ArtifactRepository interface {
|
|||||||
ctx context.Context, parentID int64, repoKey string,
|
ctx context.Context, parentID int64, repoKey string,
|
||||||
search string, labels []string,
|
search string, labels []string,
|
||||||
) (int64, error)
|
) (int64, error)
|
||||||
GetLatestArtifactMetadata(ctx context.Context, id int64, identifier string,
|
GetLatestArtifactMetadata(
|
||||||
image string) (*types.ArtifactMetadata, error)
|
ctx context.Context, id int64, identifier string,
|
||||||
GetAllVersionsByRepoAndImage(ctx context.Context, id int64, identifier string, image string,
|
image string,
|
||||||
field string, order string, limit int, offset int, term string) (*[]types.NonOCIArtifactMetadata, error)
|
) (*types.ArtifactMetadata, error)
|
||||||
GetLatestVersionName(ctx context.Context, id int64, identifier string, image string) (string, error)
|
GetAllVersionsByRepoAndImage(
|
||||||
|
ctx context.Context, id int64, identifier string, image string,
|
||||||
|
field string, order string, limit int, offset int, term string,
|
||||||
|
) (*[]types.NonOCIArtifactMetadata, error)
|
||||||
CountAllVersionsByRepoAndImage(
|
CountAllVersionsByRepoAndImage(
|
||||||
ctx context.Context, parentID int64,
|
ctx context.Context, parentID int64,
|
||||||
repoKey string, image string, search string,
|
repoKey string, image string, search string,
|
||||||
) (int64, error)
|
) (int64, error)
|
||||||
GetArtifactMetadata(ctx context.Context, id int64, identifier string,
|
GetArtifactMetadata(
|
||||||
image string, version string) (*types.ArtifactMetadata, error)
|
ctx context.Context, id int64, identifier string,
|
||||||
|
image string, version string,
|
||||||
|
) (*types.ArtifactMetadata, error)
|
||||||
}
|
}
|
||||||
|
|
||||||
type DownloadStatRepository interface {
|
type DownloadStatRepository interface {
|
||||||
@ -523,10 +530,12 @@ type NodesRepository interface {
|
|||||||
name string,
|
name string,
|
||||||
) (*types.Node, error)
|
) (*types.Node, error)
|
||||||
|
|
||||||
FindByPathAndRegistryID(ctx context.Context, registryID int64, path string,
|
FindByPathAndRegistryID(
|
||||||
|
ctx context.Context, registryID int64, path string,
|
||||||
) (*types.Node, error)
|
) (*types.Node, error)
|
||||||
|
|
||||||
CountByPathAndRegistryID(ctx context.Context, registryID int64, path string,
|
CountByPathAndRegistryID(
|
||||||
|
ctx context.Context, registryID int64, path string,
|
||||||
) (int64, error)
|
) (int64, error)
|
||||||
// Create a node
|
// Create a node
|
||||||
Create(ctx context.Context, node *types.Node) error
|
Create(ctx context.Context, node *types.Node) error
|
||||||
@ -540,7 +549,8 @@ type NodesRepository interface {
|
|||||||
path string,
|
path string,
|
||||||
) (*types.Node, error)
|
) (*types.Node, error)
|
||||||
|
|
||||||
GetFilesMetadataByPathAndRegistryID(ctx context.Context, registryID int64, path string,
|
GetFilesMetadataByPathAndRegistryID(
|
||||||
|
ctx context.Context, registryID int64, path string,
|
||||||
sortByField string,
|
sortByField string,
|
||||||
sortByOrder string,
|
sortByOrder string,
|
||||||
limit int,
|
limit int,
|
||||||
|
@ -241,7 +241,7 @@ func (a ArtifactDao) GetAllArtifactsByParentID(
|
|||||||
if sortByField == downloadCount {
|
if sortByField == downloadCount {
|
||||||
sortField = downloadCount
|
sortField = downloadCount
|
||||||
}
|
}
|
||||||
q = q.OrderBy(sortField + " " + sortByOrder).Limit(uint64(limit)).Offset(uint64(offset))
|
q = q.OrderBy(sortField + " " + sortByOrder).Limit(uint64(limit)).Offset(uint64(offset)) //nolint:gosec
|
||||||
|
|
||||||
sql, args, err := q.ToSql()
|
sql, args, err := q.ToSql()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
@ -358,7 +358,7 @@ func (a ArtifactDao) GetAllArtifactsByRepo(
|
|||||||
} else if sortByField == imageName {
|
} else if sortByField == imageName {
|
||||||
sortField = name
|
sortField = name
|
||||||
}
|
}
|
||||||
q = q.OrderBy(sortField + " " + sortByOrder).Limit(uint64(limit)).Offset(uint64(offset))
|
q = q.OrderBy(sortField + " " + sortByOrder).Limit(uint64(limit)).Offset(uint64(offset)) //nolint:gosec
|
||||||
|
|
||||||
sql, args, err := q.ToSql()
|
sql, args, err := q.ToSql()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
@ -579,7 +579,7 @@ func (a ArtifactDao) GetAllVersionsByRepoAndImage(
|
|||||||
} else if sortByField == name {
|
} else if sortByField == name {
|
||||||
sortField = name
|
sortField = name
|
||||||
}
|
}
|
||||||
q = q.OrderBy(sortField + " " + sortByOrder).Limit(uint64(limit)).Offset(uint64(offset))
|
q = q.OrderBy(sortField + " " + sortByOrder).Limit(uint64(limit)).Offset(uint64(offset)) //nolint:gosec
|
||||||
|
|
||||||
sql, args, err := q.ToSql()
|
sql, args, err := q.ToSql()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
@ -627,37 +627,6 @@ func (a ArtifactDao) CountAllVersionsByRepoAndImage(
|
|||||||
return count, nil
|
return count, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (a ArtifactDao) GetLatestVersionName(
|
|
||||||
ctx context.Context,
|
|
||||||
parentID int64,
|
|
||||||
repoKey string,
|
|
||||||
imageName string,
|
|
||||||
) (string, error) {
|
|
||||||
q := databaseg.Builder.Select("artifact_version as name").
|
|
||||||
From("artifacts a").
|
|
||||||
Join("images ON i.image_id = a.artifact_image_id").
|
|
||||||
Join("registries ON i.image_registry_id = registry_id").
|
|
||||||
Where(
|
|
||||||
"registry_parent_id = ? AND registry_name = ? AND i.image_name = ?",
|
|
||||||
parentID, repoKey, imageName,
|
|
||||||
).
|
|
||||||
OrderBy("artifact_updated_at DESC").Limit(1)
|
|
||||||
|
|
||||||
sql, args, err := q.ToSql()
|
|
||||||
if err != nil {
|
|
||||||
return "", errors.Wrap(err, "Failed to convert query to sql")
|
|
||||||
}
|
|
||||||
|
|
||||||
db := dbtx.GetAccessor(ctx, a.db)
|
|
||||||
|
|
||||||
var tag string
|
|
||||||
err = db.QueryRowContext(ctx, sql, args...).Scan(&tag)
|
|
||||||
if err != nil {
|
|
||||||
return tag, databaseg.ProcessSQLErrorf(ctx, err, "Failed executing get tag name query")
|
|
||||||
}
|
|
||||||
return tag, nil
|
|
||||||
}
|
|
||||||
|
|
||||||
func (a ArtifactDao) GetArtifactMetadata(
|
func (a ArtifactDao) GetArtifactMetadata(
|
||||||
ctx context.Context,
|
ctx context.Context,
|
||||||
parentID int64,
|
parentID int64,
|
||||||
@ -709,7 +678,8 @@ func (a ArtifactDao) mapToArtifactMetadata(
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (a ArtifactDao) mapToNonOCIMetadata(
|
func (a ArtifactDao) mapToNonOCIMetadata(
|
||||||
dst *nonOCIArtifactMetadataDB) *types.NonOCIArtifactMetadata {
|
dst *nonOCIArtifactMetadataDB,
|
||||||
|
) *types.NonOCIArtifactMetadata {
|
||||||
var size string
|
var size string
|
||||||
var fileCount int64
|
var fileCount int64
|
||||||
|
|
||||||
@ -721,18 +691,18 @@ func (a ArtifactDao) mapToNonOCIMetadata(
|
|||||||
fileCount = *dst.FileCount
|
fileCount = *dst.FileCount
|
||||||
}
|
}
|
||||||
return &types.NonOCIArtifactMetadata{
|
return &types.NonOCIArtifactMetadata{
|
||||||
Name: dst.Name,
|
Name: dst.Name,
|
||||||
DownloadCount: dst.DownloadCount,
|
DownloadCount: dst.DownloadCount,
|
||||||
PackageType: dst.PackageType,
|
PackageType: dst.PackageType,
|
||||||
Size: size,
|
Size: size,
|
||||||
FileCount: fileCount,
|
FileCount: fileCount,
|
||||||
IsLatestVersion: dst.IsLatestVersion,
|
ModifiedAt: time.UnixMilli(dst.ModifiedAt),
|
||||||
ModifiedAt: time.UnixMilli(dst.ModifiedAt),
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (a ArtifactDao) mapToNonOCIMetadataList(
|
func (a ArtifactDao) mapToNonOCIMetadataList(
|
||||||
dst []*nonOCIArtifactMetadataDB) (*[]types.NonOCIArtifactMetadata, error) {
|
dst []*nonOCIArtifactMetadataDB,
|
||||||
|
) (*[]types.NonOCIArtifactMetadata, error) {
|
||||||
metadataList := make([]types.NonOCIArtifactMetadata, 0, len(dst))
|
metadataList := make([]types.NonOCIArtifactMetadata, 0, len(dst))
|
||||||
for _, d := range dst {
|
for _, d := range dst {
|
||||||
metadata := a.mapToNonOCIMetadata(d)
|
metadata := a.mapToNonOCIMetadata(d)
|
||||||
@ -742,13 +712,12 @@ func (a ArtifactDao) mapToNonOCIMetadataList(
|
|||||||
}
|
}
|
||||||
|
|
||||||
type nonOCIArtifactMetadataDB struct {
|
type nonOCIArtifactMetadataDB struct {
|
||||||
Name string `db:"name"`
|
Name string `db:"name"`
|
||||||
Size *string `db:"size"`
|
Size *string `db:"size"`
|
||||||
PackageType artifact.PackageType `db:"package_type"`
|
PackageType artifact.PackageType `db:"package_type"`
|
||||||
FileCount *int64 `db:"file_count"`
|
FileCount *int64 `db:"file_count"`
|
||||||
IsLatestVersion bool `db:"is_latest_version"`
|
ModifiedAt int64 `db:"modified_at"`
|
||||||
ModifiedAt int64 `db:"modified_at"`
|
DownloadCount int64 `db:"download_count"`
|
||||||
DownloadCount int64 `db:"download_count"`
|
|
||||||
}
|
}
|
||||||
|
|
||||||
type GenericMetadata struct {
|
type GenericMetadata struct {
|
||||||
|
@ -86,17 +86,16 @@ type artifactMetadataDB struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type tagMetadataDB struct {
|
type tagMetadataDB struct {
|
||||||
Name string `db:"name"`
|
Name string `db:"name"`
|
||||||
Size string `db:"size"`
|
Size string `db:"size"`
|
||||||
PackageType artifact.PackageType `db:"package_type"`
|
PackageType artifact.PackageType `db:"package_type"`
|
||||||
DigestCount int `db:"digest_count"`
|
DigestCount int `db:"digest_count"`
|
||||||
IsLatestVersion bool `db:"latest_version"`
|
ModifiedAt int64 `db:"modified_at"`
|
||||||
ModifiedAt int64 `db:"modified_at"`
|
SchemaVersion int `db:"manifest_schema_version"`
|
||||||
SchemaVersion int `db:"manifest_schema_version"`
|
NonConformant bool `db:"manifest_non_conformant"`
|
||||||
NonConformant bool `db:"manifest_non_conformant"`
|
Payload []byte `db:"manifest_payload"`
|
||||||
Payload []byte `db:"manifest_payload"`
|
MediaType string `db:"mt_media_type"`
|
||||||
MediaType string `db:"mt_media_type"`
|
DownloadCount int64 `db:"download_count"`
|
||||||
DownloadCount int64 `db:"download_count"`
|
|
||||||
}
|
}
|
||||||
|
|
||||||
type tagDetailDB struct {
|
type tagDetailDB struct {
|
||||||
@ -266,7 +265,7 @@ func (t tagDao) TagsPaginated(
|
|||||||
"tag_registry_id = ? AND tag_image_name = ? AND tag_name > ?",
|
"tag_registry_id = ? AND tag_image_name = ? AND tag_name > ?",
|
||||||
repoID, image, filters.LastEntry,
|
repoID, image, filters.LastEntry,
|
||||||
).
|
).
|
||||||
OrderBy("tag_name").Limit(uint64(filters.MaxEntries))
|
OrderBy("tag_name").Limit(uint64(filters.MaxEntries)) //nolint:gosec
|
||||||
|
|
||||||
db := dbtx.GetAccessor(ctx, t.db)
|
db := dbtx.GetAccessor(ctx, t.db)
|
||||||
|
|
||||||
@ -306,7 +305,7 @@ func (t tagDao) HasTagsAfterName(
|
|||||||
filters.PublishedAt, filters.LastEntry,
|
filters.PublishedAt, filters.LastEntry,
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
stmt = stmt.OrderBy("tag_name").GroupBy("tag_name").Limit(uint64(filters.MaxEntries))
|
stmt = stmt.OrderBy("tag_name").GroupBy("tag_name").Limit(uint64(filters.MaxEntries)) //nolint:gosec
|
||||||
|
|
||||||
db := dbtx.GetAccessor(ctx, t.db)
|
db := dbtx.GetAccessor(ctx, t.db)
|
||||||
|
|
||||||
@ -399,8 +398,10 @@ func (t tagDao) GetAllArtifactsByParentID(
|
|||||||
return t.mapToArtifactMetadataList(ctx, dst)
|
return t.mapToArtifactMetadataList(ctx, dst)
|
||||||
}
|
}
|
||||||
|
|
||||||
func (t tagDao) GetAllArtifactsQueryByParentIDForOCI(parentID int64, latestVersion bool, registryIDs *[]string,
|
func (t tagDao) GetAllArtifactsQueryByParentIDForOCI(
|
||||||
packageTypes []string, search string) sq.SelectBuilder {
|
parentID int64, latestVersion bool, registryIDs *[]string,
|
||||||
|
packageTypes []string, search string,
|
||||||
|
) sq.SelectBuilder {
|
||||||
q2 := databaseg.Builder.Select(
|
q2 := databaseg.Builder.Select(
|
||||||
`r.registry_name as repo_name,
|
`r.registry_name as repo_name,
|
||||||
t.tag_image_name as name,
|
t.tag_image_name as name,
|
||||||
@ -453,8 +454,10 @@ func (t tagDao) GetAllArtifactsQueryByParentIDForOCI(parentID int64, latestVersi
|
|||||||
return q2
|
return q2
|
||||||
}
|
}
|
||||||
|
|
||||||
func (t tagDao) GetAllArtifactOnParentIDQueryForNonOCI(parentID int64, latestVersion bool, registryIDs *[]string,
|
func (t tagDao) GetAllArtifactOnParentIDQueryForNonOCI(
|
||||||
packageTypes []string, search string) sq.SelectBuilder {
|
parentID int64, latestVersion bool, registryIDs *[]string,
|
||||||
|
packageTypes []string, search string,
|
||||||
|
) sq.SelectBuilder {
|
||||||
q1 := databaseg.Builder.Select(
|
q1 := databaseg.Builder.Select(
|
||||||
`r.registry_name as repo_name,
|
`r.registry_name as repo_name,
|
||||||
i.image_name as name,
|
i.image_name as name,
|
||||||
@ -900,7 +903,7 @@ func (t tagDao) GetAllArtifactsByRepo(
|
|||||||
if sortByField == downloadCount {
|
if sortByField == downloadCount {
|
||||||
sortField = downloadCount
|
sortField = downloadCount
|
||||||
}
|
}
|
||||||
q = q.OrderBy(sortField + " " + sortByOrder).Limit(uint64(limit)).Offset(uint64(offset))
|
q = q.OrderBy(sortField + " " + sortByOrder).Limit(uint64(limit)).Offset(uint64(offset)) //nolint:gosec
|
||||||
|
|
||||||
sql, args, err := q.ToSql()
|
sql, args, err := q.ToSql()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
@ -1010,7 +1013,7 @@ func (t tagDao) GetAllTagsByRepoAndImage(
|
|||||||
if sortByField == downloadCount {
|
if sortByField == downloadCount {
|
||||||
sortField = downloadCount
|
sortField = downloadCount
|
||||||
}
|
}
|
||||||
q = q.OrderBy(sortField + " " + sortByOrder).Limit(uint64(limit)).Offset(uint64(offset))
|
q = q.OrderBy(sortField + " " + sortByOrder).Limit(uint64(limit)).Offset(uint64(offset)) //nolint:gosec
|
||||||
|
|
||||||
sql, args, err := q.ToSql()
|
sql, args, err := q.ToSql()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
@ -1197,17 +1200,16 @@ func (t tagDao) mapToTagMetadata(
|
|||||||
dst *tagMetadataDB,
|
dst *tagMetadataDB,
|
||||||
) (*types.TagMetadata, error) {
|
) (*types.TagMetadata, error) {
|
||||||
return &types.TagMetadata{
|
return &types.TagMetadata{
|
||||||
Name: dst.Name,
|
Name: dst.Name,
|
||||||
Size: dst.Size,
|
Size: dst.Size,
|
||||||
PackageType: dst.PackageType,
|
PackageType: dst.PackageType,
|
||||||
DigestCount: dst.DigestCount,
|
DigestCount: dst.DigestCount,
|
||||||
IsLatestVersion: dst.IsLatestVersion,
|
ModifiedAt: time.UnixMilli(dst.ModifiedAt),
|
||||||
ModifiedAt: time.UnixMilli(dst.ModifiedAt),
|
SchemaVersion: dst.SchemaVersion,
|
||||||
SchemaVersion: dst.SchemaVersion,
|
NonConformant: dst.NonConformant,
|
||||||
NonConformant: dst.NonConformant,
|
MediaType: dst.MediaType,
|
||||||
MediaType: dst.MediaType,
|
Payload: dst.Payload,
|
||||||
Payload: dst.Payload,
|
DownloadCount: dst.DownloadCount,
|
||||||
DownloadCount: dst.DownloadCount,
|
|
||||||
}, nil
|
}, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -34,11 +34,10 @@ type Artifact struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type NonOCIArtifactMetadata struct {
|
type NonOCIArtifactMetadata struct {
|
||||||
Name string
|
Name string
|
||||||
Size string
|
Size string
|
||||||
PackageType artifact.PackageType
|
PackageType artifact.PackageType
|
||||||
FileCount int64
|
FileCount int64
|
||||||
IsLatestVersion bool
|
ModifiedAt time.Time
|
||||||
ModifiedAt time.Time
|
DownloadCount int64
|
||||||
DownloadCount int64
|
|
||||||
}
|
}
|
||||||
|
@ -46,17 +46,16 @@ type ArtifactMetadata struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type TagMetadata struct {
|
type TagMetadata struct {
|
||||||
Name string
|
Name string
|
||||||
Size string
|
Size string
|
||||||
PackageType artifact.PackageType
|
PackageType artifact.PackageType
|
||||||
DigestCount int
|
DigestCount int
|
||||||
IsLatestVersion bool
|
ModifiedAt time.Time
|
||||||
ModifiedAt time.Time
|
SchemaVersion int
|
||||||
SchemaVersion int
|
NonConformant bool
|
||||||
NonConformant bool
|
Payload Payload
|
||||||
Payload Payload
|
MediaType string
|
||||||
MediaType string
|
DownloadCount int64
|
||||||
DownloadCount int64
|
|
||||||
}
|
}
|
||||||
|
|
||||||
type TagDetail struct {
|
type TagDetail struct {
|
||||||
|
Loading…
Reference in New Issue
Block a user