client

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2023 License: Apache-2.0 Imports: 9 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(options *registry.Options, logger *zerolog.Logger) (*Client, error)

func (*Client) CargoRoot

func (c *Client) CargoRoot() string

func (*Client) GolangModule

func (c *Client) GolangModule(mod GolangModule) (*bytes.Buffer, error)

func (*Client) GolangRoot

func (c *Client) GolangRoot() string

func (*Client) NPMRoot

func (c *Client) NPMRoot() string

type GolangFile

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

func NewGolangFile

func NewGolangFile(name string, path string, content []byte) GolangFile

func (GolangFile) IsDir

func (g GolangFile) IsDir() bool

func (GolangFile) Lstat

func (g GolangFile) Lstat() (os.FileInfo, error)

func (GolangFile) ModTime

func (g GolangFile) ModTime() time.Time

func (GolangFile) Mode

func (g GolangFile) Mode() fs.FileMode

func (GolangFile) Name

func (g GolangFile) Name() string

func (GolangFile) Open

func (g GolangFile) Open() (io.ReadCloser, error)

func (GolangFile) Path

func (g GolangFile) Path() string

func (GolangFile) Size

func (g GolangFile) Size() int64

func (GolangFile) Sys

func (g GolangFile) Sys() any

type GolangModule

type GolangModule struct {
	CanonicalVersion string
	ImportPath       string
	Files            []GolangFile
}

func (*GolangModule) ModuleFiles

func (g *GolangModule) ModuleFiles() []zip.File

Jump to

Keyboard shortcuts

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