s4wave_git

package
v0.57.5 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2026 License: Apache-2.0 Imports: 29 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CreateGitRepoWizardOpId = opids.CreateRepoWizard

CreateGitRepoWizardOpId is the operation id for CreateGitRepoWizardOp.

Functions

func CloneGitRepoToRef

func CloneGitRepoToRef(
	ctx context.Context,
	ws worldStorageAccessor,
	cloneOpts *git_block.CloneOpts,
	authMethod client.SSHAuth,
	progress sideband.Progress,
) (*bucket.ObjectRef, error)

CloneGitRepoToRef clones a remote Git repository and returns its completed repo ref.

func ImportLocalRepoToRef added in v0.57.2

func ImportLocalRepoToRef(
	ctx context.Context,
	ws worldStorageAccessor,
	localPath string,
) (repoRef *bucket.ObjectRef, headHash, branchName string, err error)

ImportLocalRepoToRef imports the committed graph of a local Git repository into a World repo ref without copying configuration or contacting remotes.

func LookupCreateGitRepoWizardOp

func LookupCreateGitRepoWizardOp(ctx context.Context, operationTypeID string) (world.Operation, error)

LookupCreateGitRepoWizardOp looks up a CreateGitRepoWizardOp operation type.

Types

type CreateGitRepoWizardOp

type CreateGitRepoWizardOp struct {

	// ObjectKey is the object key for the new git/repo.
	ObjectKey string `protobuf:"bytes,1,opt,name=object_key,json=objectKey,proto3" json:"objectKey,omitempty"`
	// Name is the repository display name.
	Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	// Clone indicates this is a clone operation (vs new empty repo).
	Clone bool `protobuf:"varint,3,opt,name=clone,proto3" json:"clone,omitempty"`
	// CloneOpts contains the clone configuration (URL, ref, depth, etc).
	// Only used when clone is true.
	CloneOpts *block.CloneOpts `protobuf:"bytes,4,opt,name=clone_opts,json=cloneOpts,proto3" json:"cloneOpts,omitempty"`
	// Timestamp is the creation timestamp.
	Timestamp *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	// contains filtered or unexported fields
}

CreateGitRepoWizardOp creates a git repository from wizard configuration. Dispatches to GitInitOp (new repo) or GitCloneOp (clone) based on mode.

func (*CreateGitRepoWizardOp) ApplyWorldObjectOp

func (o *CreateGitRepoWizardOp) ApplyWorldObjectOp(
	ctx context.Context,
	le *logrus.Entry,
	os world.ObjectState,
	sender peer.ID,
) (sysErr bool, err error)

ApplyWorldObjectOp applies the operation to a world object handle.

func (*CreateGitRepoWizardOp) ApplyWorldOp

func (o *CreateGitRepoWizardOp) ApplyWorldOp(
	ctx context.Context,
	le *logrus.Entry,
	ws world.WorldState,
	sender peer.ID,
) (sysErr bool, err error)

ApplyWorldOp applies the operation as a world operation.

func (*CreateGitRepoWizardOp) CloneMessageVT

func (*CreateGitRepoWizardOp) CloneVT

func (*CreateGitRepoWizardOp) EqualMessageVT

func (this *CreateGitRepoWizardOp) EqualMessageVT(thatMsg any) bool

func (*CreateGitRepoWizardOp) EqualVT

func (this *CreateGitRepoWizardOp) EqualVT(that *CreateGitRepoWizardOp) bool

func (*CreateGitRepoWizardOp) GetClone

func (x *CreateGitRepoWizardOp) GetClone() bool

func (*CreateGitRepoWizardOp) GetCloneOpts

func (x *CreateGitRepoWizardOp) GetCloneOpts() *block.CloneOpts

func (*CreateGitRepoWizardOp) GetName

func (x *CreateGitRepoWizardOp) GetName() string

func (*CreateGitRepoWizardOp) GetObjectKey

func (x *CreateGitRepoWizardOp) GetObjectKey() string

func (*CreateGitRepoWizardOp) GetOperationTypeId

func (o *CreateGitRepoWizardOp) GetOperationTypeId() string

GetOperationTypeId returns the operation type identifier.

func (*CreateGitRepoWizardOp) GetTimestamp

func (x *CreateGitRepoWizardOp) GetTimestamp() *timestamppb.Timestamp

func (*CreateGitRepoWizardOp) MarshalBlock

func (o *CreateGitRepoWizardOp) MarshalBlock() ([]byte, error)

MarshalBlock marshals the block to binary.

func (*CreateGitRepoWizardOp) MarshalJSON

func (x *CreateGitRepoWizardOp) MarshalJSON() ([]byte, error)

MarshalJSON marshals the CreateGitRepoWizardOp to JSON.

func (*CreateGitRepoWizardOp) MarshalProtoJSON

func (x *CreateGitRepoWizardOp) MarshalProtoJSON(s *json.MarshalState)

MarshalProtoJSON marshals the CreateGitRepoWizardOp message to JSON.

func (*CreateGitRepoWizardOp) MarshalProtoText

func (x *CreateGitRepoWizardOp) MarshalProtoText() string

func (*CreateGitRepoWizardOp) MarshalToSizedBufferVT

func (m *CreateGitRepoWizardOp) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*CreateGitRepoWizardOp) MarshalToVT

func (m *CreateGitRepoWizardOp) MarshalToVT(dAtA []byte) (int, error)

func (*CreateGitRepoWizardOp) MarshalVT

func (m *CreateGitRepoWizardOp) MarshalVT() (dAtA []byte, err error)

func (*CreateGitRepoWizardOp) ProtoMessage

func (*CreateGitRepoWizardOp) ProtoMessage()

func (*CreateGitRepoWizardOp) Reset

func (x *CreateGitRepoWizardOp) Reset()

func (*CreateGitRepoWizardOp) SizeVT

func (m *CreateGitRepoWizardOp) SizeVT() (n int)

func (*CreateGitRepoWizardOp) String

func (x *CreateGitRepoWizardOp) String() string

func (*CreateGitRepoWizardOp) UnmarshalBlock

func (o *CreateGitRepoWizardOp) UnmarshalBlock(data []byte) error

UnmarshalBlock unmarshals the block to the object.

func (*CreateGitRepoWizardOp) UnmarshalJSON

func (x *CreateGitRepoWizardOp) UnmarshalJSON(b []byte) error

UnmarshalJSON unmarshals the CreateGitRepoWizardOp from JSON.

func (*CreateGitRepoWizardOp) UnmarshalProtoJSON

func (x *CreateGitRepoWizardOp) UnmarshalProtoJSON(s *json.UnmarshalState)

UnmarshalProtoJSON unmarshals the CreateGitRepoWizardOp message from JSON.

func (*CreateGitRepoWizardOp) UnmarshalVT

func (m *CreateGitRepoWizardOp) UnmarshalVT(dAtA []byte) error

func (*CreateGitRepoWizardOp) Validate

func (o *CreateGitRepoWizardOp) Validate() error

Validate performs cursory validation of the operation.

Directories

Path Synopsis
Package opids declares Git operation identifiers without implementation dependencies.
Package opids declares Git operation identifiers without implementation dependencies.

Jump to

Keyboard shortcuts

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