store

package
v0.0.0-...-1be23ea Latest Latest
Warning

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

Go to latest
Published: Dec 26, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

+gengo:operator:tag=store +gengo:operator:register=R

Package store GENERATED BY gengo:operator DON'T EDIT THIS FILE

Package store GENERATED BY gengo:runtimedoc DON'T EDIT THIS FILE

Index

Constants

This section is empty.

Variables

View Source
var R = courierhttp.GroupRouter("/store")

Functions

This section is empty.

Types

type GetStoreBlob

type GetStoreBlob struct {
	courierhttp.MethodGet `path:"/{scope...}/blobs/{digest}"`
	Scope                 string `name:"scope" in:"path"`
	Digest                string `name:"digest" in:"path"`
}

获取 blob

func (*GetStoreBlob) Output

func (req *GetStoreBlob) Output(ctx context.Context) (any, error)

func (*GetStoreBlob) ResponseContent

func (*GetStoreBlob) ResponseContent() any

func (*GetStoreBlob) ResponseData

func (*GetStoreBlob) ResponseData() *string

func (GetStoreBlob) RuntimeDoc

func (v GetStoreBlob) RuntimeDoc(names ...string) ([]string, bool)

type UploadStoreBlob

type UploadStoreBlob struct {
	courierhttp.MethodPost `path:"/{scope...}/blobs/uploads"`
	Scope                  string        `name:"scope" in:"path"`
	Blob                   io.ReadCloser `in:"body" mime:"octet-stream"`
}

上传 blob

func (*UploadStoreBlob) Output

func (req *UploadStoreBlob) Output(ctx context.Context) (any, error)

func (*UploadStoreBlob) ResponseContent

func (*UploadStoreBlob) ResponseContent() any

func (*UploadStoreBlob) ResponseData

func (*UploadStoreBlob) ResponseData() *courier.NoContent

func (UploadStoreBlob) RuntimeDoc

func (v UploadStoreBlob) RuntimeDoc(names ...string) ([]string, bool)

Jump to

Keyboard shortcuts

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