api

package
v0.5.1-ci-fix-test9 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2024 License: Apache-2.0 Imports: 9 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Download

func Download(ctx context.Context, baseUrl string, gitoid string) (dsse.Envelope, error)

func DownloadWithWriter

func DownloadWithWriter(ctx context.Context, baseUrl, gitoid string, dst io.Writer) error

func GraphQlQuery

func GraphQlQuery[TRes any, TVars any](ctx context.Context, baseUrl, query string, vars TVars) (TRes, error)

Types

type StoreResponse deprecated

type StoreResponse = UploadResponse

Deprecated: Use UploadResponse instead. It will be removed in version >= v0.6.0

func Store deprecated

func Store(ctx context.Context, baseUrl string, envelope dsse.Envelope) (StoreResponse, error)

Deprecated: Use Upload instead. It will be removed in version >= v0.6.0

func StoreWithReader deprecated

func StoreWithReader(ctx context.Context, baseUrl string, r io.Reader) (StoreResponse, error)

Deprecated: Use UploadWithReader instead. It will be removed in version >= v0.6.0

func Upload added in v0.4.0

func Upload(ctx context.Context, baseUrl string, envelope dsse.Envelope) (StoreResponse, error)

func UploadWithReader added in v0.4.0

func UploadWithReader(ctx context.Context, baseUrl string, r io.Reader) (StoreResponse, error)

type UploadResponse added in v0.4.0

type UploadResponse struct {
	Gitoid string `json:"gitoid"`
}

Jump to

Keyboard shortcuts

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