repo

package
v0.0.0-...-b2ef75b Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2025 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	RemoteServeTypeUnspecified = RemoteServeType(iota)
	RemoteServeTypeSocketUnix
	RemoteServeTypePortHTTP
	RemoteServeTypeStdioLocal
)
View Source
const (
	RemoteTypeUnspecified = RemoteType(iota)
	RemoteTypeNativeDotenvXDG
	RemoteTypeSocketUnix
	RemoteTypePortHTTP
	RemoteTypeStdioLocal
	RemoteTypeStdioSSH
)

Variables

This section is empty.

Functions

This section is empty.

Types

type LocalRepo

type LocalRepo interface {
	Repo
	GetRepoLayout() env_repo.Env
}

type LocalWorkingCopy

type LocalWorkingCopy interface {
	WorkingCopy
	LocalRepo
}

type RemoteServeType

type RemoteServeType int

func (*RemoteServeType) Set

func (t *RemoteServeType) Set(v string) (err error)

func (RemoteServeType) String

func (i RemoteServeType) String() string

type RemoteTransferOptions

type RemoteTransferOptions struct {
	PrintCopies         bool
	IncludeObjects      bool
	IncludeBlobs        bool
	AllowMergeConflicts bool
}

TODO add HTTP header options for these flags

func (*RemoteTransferOptions) SetFlagSet

func (options *RemoteTransferOptions) SetFlagSet(f *flag.FlagSet)

func (RemoteTransferOptions) WithPrintCopies

func (options RemoteTransferOptions) WithPrintCopies(
	value bool,
) RemoteTransferOptions

type RemoteType

type RemoteType int

func GetAllRemoteTypes

func GetAllRemoteTypes() []RemoteType

func (*RemoteType) Set

func (t *RemoteType) Set(v string) (err error)

func (RemoteType) String

func (i RemoteType) String() string

type Repo

type Repo interface {
	GetEnv() env_ui.Env
	GetStoreVersion() interfaces.StoreVersion
	GetRepoType() repo_type.Type
	GetBlobStore() interfaces.BlobStore
	GetInventoryListStore() sku.InventoryListStore
}

TODO explore permissions for who can read / write from the inventory list store

type UnixSocket

type UnixSocket struct {
	net.Listener
	Path string
}

type WorkingCopy

type WorkingCopy interface {
	Repo

	MakeExternalQueryGroup(
		builderOptions query.BuilderOptions,
		externalQueryOptions sku.ExternalQueryOptions,
		args ...string,
	) (qg *query.Group, err error)

	MakeInventoryList(
		qg *query.Group,
	) (list *sku.List, err error)

	PullQueryGroupFromRemote(
		remote Repo,
		qg *query.Group,
		options RemoteTransferOptions,
	) (err error)

	ReadObjectHistory(
		oid *ids.ObjectId,
	) (skus []*sku.Transacted, err error)
}

Jump to

Keyboard shortcuts

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