localdir

package
v5.0.0 Latest Latest
Warning

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

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

Documentation

Overview

Package localdir implements RepoClient on local source code.

Package localdir is local repo containing source code.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateLocalDirClient

func CreateLocalDirClient(ctx context.Context, logger *log.Logger) clients.RepoClient

CreateLocalDirClient returns a client which implements RepoClient interface.

func MakeLocalDirRepo

func MakeLocalDirRepo(pathfn string) (clients.Repo, error)

MakeLocalDirRepo returns an implementation of clients.Repo interface.

Types

type Repo

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

func (*Repo) AppendMetadata

func (r *Repo) AppendMetadata(m ...string)

AppendMetadata implements Repo.AppendMetadata.

func (*Repo) Host

func (r *Repo) Host() string

func (*Repo) IsValid

func (r *Repo) IsValid() error

IsValid implements Repo.IsValid.

func (*Repo) Metadata

func (r *Repo) Metadata() []string

Metadata implements Repo.Metadata.

func (*Repo) Path

func (r *Repo) Path() string

Path() implements RepoClient.Path.

func (*Repo) String

func (r *Repo) String() string

String implements Repo.String.

func (*Repo) URI

func (r *Repo) URI() string

URI implements Repo.URI().

Jump to

Keyboard shortcuts

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