controllers

package
v0.0.0-...-0888c38 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 24, 2024 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var URLSigner = storage.SignedURL

URLSigner is the function used to sign urls.

Functions

This section is empty.

Types

type Server

type Server struct {
	// contains filtered or unexported fields
}

Server is the controller for the artifact tracker service.

func NewServer

func NewServer(client stiface.Client, bucket string, gcsSA *jwt.Config) *Server

NewServer creates a new artifact tracker server.

func (*Server) GetArtifactList

func (s *Server) GetArtifactList(ctx context.Context, in *apb.GetArtifactListRequest) (*vpb.ArtifactSet, error)

GetArtifactList returns a list of artifacts matching the passed in criteria.

GetDownloadLink returns a signed download link that can be used to download the artifact.

func (*Server) UpdateManifest

func (s *Server) UpdateManifest(m *manifest.ArtifactManifest) error

UpdateManifest switches the server's manifest to use the one given.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL