storage

package
v0.0.0-...-d1be498 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client interface {
	Get(ctx context.Context, path string) (io.ReadCloser, error)
	Save(ctx context.Context, path string, mime MimeType, body []byte) error
	Remove(ctx context.Context, path string) error
}

type MimeType

type MimeType string
const (
	MimeTypeUnsupported MimeType = ""
	MimeTypeJSON        MimeType = "application/json"
	MimeTypeJWK         MimeType = "application/jwk+json"
	MimeTypePem         MimeType = "application/x-pem-file"
)

func (MimeType) String

func (m MimeType) String() string

Jump to

Keyboard shortcuts

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