branchclient

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CheckoutOptions

type CheckoutOptions struct{}

type Client

type Client interface {
	Get(ctx context.Context, branch string, opt GetOptions) ([]*branchpb.Get_Log, error)
	List(ctx context.Context, opt ListOptions) ([]*branchpb.BranchObject, error)
	Create(ctx context.Context, branch string, opt CreateOptions) error
	Delete(ctx context.Context, branch string, opt DeleteOptions) error
	Diff(ctx context.Context, srcbranch, dstbranch string, opt DiffOptions) ([]*branchpb.Diff_Diff, error)
	Merge(ctx context.Context, srcbranch, dstbranch string, opt MergeOptions) error
	Stash(ctx context.Context, branch string, opt StashOptions) error
	Checkout(ctx context.Context, branch string, opt CheckoutOptions) error
	StreamFiles(ctx context.Context, branch string) chan *branchpb.Get_File
	Watch(ctx context.Context, in *branchpb.Watch_Request, opts ...grpc.CallOption) chan *branchpb.Watch_Response
	Close() error
}

func NewClient

func NewClient(config *config.Config) (Client, error)

type CreateOptions

type CreateOptions struct{}

type DeleteOptions

type DeleteOptions struct{}

type DiffOptions

type DiffOptions struct{}

type GetOptions

type GetOptions struct{}

type ListOptions

type ListOptions struct{}

type MergeOptions

type MergeOptions struct{}

type StashOptions

type StashOptions struct{}

Jump to

Keyboard shortcuts

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