repository

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2025 License: Apache-2.0 Imports: 7 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 struct {
	// contains filtered or unexported fields
}

func New

func New(js jetstream.JetStream) *Client

func (*Client) Create

func (c *Client) Create(ctx context.Context, name, description string) error

func (*Client) Delete

func (c *Client) Delete(ctx context.Context, repository string) error

func (*Client) DeleteFile

func (c *Client) DeleteFile(ctx context.Context, repository, filename string) error

func (*Client) Get

func (c *Client) Get(ctx context.Context, name string) (*repository.Repository, error)

func (*Client) GetFile

func (c *Client) GetFile(ctx context.Context, repository, filename string) (*File, error)

func (*Client) List

func (c *Client) List(ctx context.Context) ([]*Repository, error)

func (*Client) ListFiles

func (c *Client) ListFiles(ctx context.Context, repository string) ([]*File, error)

func (*Client) PutFile

func (c *Client) PutFile(ctx context.Context, repository, filename string, reader io.Reader) error

type Error

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

func (*Error) Error

func (e *Error) Error() string

type File

type File struct {
	Name     string
	Size     uint64
	Modified time.Time
	// contains filtered or unexported fields
}

func (*File) Read

func (f *File) Read(b []byte) (int, error)

func (*File) ReadAt

func (f *File) ReadAt(b []byte, off int64) (int, error)

type Repository

type Repository struct {
	Name        string
	Description string
	Size        uint64
}

Jump to

Keyboard shortcuts

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