api

package
v0.0.0-...-7b1ab2b Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Download

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

func DownloadWithWriter

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

func GraphQlQuery

func GraphQlQuery[TRes any, TVars any](ctx context.Context, baseUrl, token string, 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, token 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, token string, r io.Reader) (StoreResponse, error)

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

func Upload

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

func UploadWithReader

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

type UploadResponse

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