service

package
v0.128.0 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2024 License: Apache-2.0 Imports: 27 Imported by: 0

Documentation

Index

Constants

View Source
const DownloadPath = "/download/{digest}"

i.e /download/sha256:1234567890abcdef

Variables

ProviderSet is service providers.

Functions

This section is empty.

Types

type ByteStreamService

type ByteStreamService struct {
	*bytestream.UnimplementedByteStreamServer
	// contains filtered or unexported fields
}

Implements the bytestream interface https://github.com/googleapis/googleapis/blob/master/google/bytestream/bytestream.proto#L49 specifically both the write and the read methods

func NewByteStreamService

func NewByteStreamService(bp backend.Providers, opts ...NewOpt) *ByteStreamService

func (*ByteStreamService) Read

Server-side streaming RPC for reading blobs, implements the bytestream interface NOTE: Due to the fact that we are using the OCI backend, we can not stream the content directly from the backend but instead we need to download the whole artifact and then stream it to the client

func (*ByteStreamService) Write

Client-side streaming RPC for writing blobs. Iterate on the stream of file chunks, aggregate them in a buffer, send them to the backend and return a response with the commitedSize

type DownloadService added in v0.16.0

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

func NewDownloadService added in v0.16.0

func NewDownloadService(bp backend.Providers, opts ...NewOpt) *DownloadService

func (*DownloadService) ServeHTTP added in v0.16.0

func (s *DownloadService) ServeHTTP(w http.ResponseWriter, r *http.Request)

type NewOpt

type NewOpt func(s *commonService)

func WithLogger

func WithLogger(logger log.Logger) NewOpt

type ResourceService

type ResourceService struct {
	v1.UnimplementedResourceServiceServer
	// contains filtered or unexported fields
}

func NewResourceService

func NewResourceService(bp backend.Providers, opts ...NewOpt) *ResourceService

func (*ResourceService) Describe

Return the metadata if an artifact referenced by its content digest

type StatusService

type StatusService struct {
	pb.UnimplementedStatusServiceServer
	// contains filtered or unexported fields
}

func NewStatusService

func NewStatusService(version string, providers backend.Providers) *StatusService

func (*StatusService) Infoz

func (*StatusService) Statusz

Jump to

Keyboard shortcuts

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