Documentation
¶
Index ¶
- Constants
- Variables
- func CloneGitRepoToRef(ctx context.Context, ws world.WorldStorage, cloneOpts *git_block.CloneOpts, ...) (*bucket.ObjectRef, error)
- func ImportLocalRepoToRef(ctx context.Context, ws world.WorldState, localPath string) (repoRef *bucket.ObjectRef, headHash, branchName string, err error)
- func NewCreateGitRepoWizardOp() any
- type CreateGitRepoWizardOp
- func (o *CreateGitRepoWizardOp) ApplyWorldOp(ctx context.Context, le *logrus.Entry, ws world.WorldState, sender peer.ID) (sysErr bool, err error)
- func (m *CreateGitRepoWizardOp) CloneMessageVT() protobuf_go_lite.CloneMessage
- func (m *CreateGitRepoWizardOp) CloneVT() *CreateGitRepoWizardOp
- func (this *CreateGitRepoWizardOp) EqualMessageVT(thatMsg any) bool
- func (this *CreateGitRepoWizardOp) EqualVT(that *CreateGitRepoWizardOp) bool
- func (x *CreateGitRepoWizardOp) GetClone() bool
- func (x *CreateGitRepoWizardOp) GetCloneOpts() *block.CloneOpts
- func (x *CreateGitRepoWizardOp) GetName() string
- func (x *CreateGitRepoWizardOp) GetObjectKey() string
- func (x *CreateGitRepoWizardOp) GetTimestamp() *timestamppb.Timestamp
- func (x *CreateGitRepoWizardOp) MarshalJSON() ([]byte, error)
- func (x *CreateGitRepoWizardOp) MarshalProtoJSON(s *json.MarshalState)
- func (x *CreateGitRepoWizardOp) MarshalProtoText() string
- func (m *CreateGitRepoWizardOp) MarshalToSizedBufferVT(dAtA []byte) (int, error)
- func (m *CreateGitRepoWizardOp) MarshalToVT(dAtA []byte) (int, error)
- func (m *CreateGitRepoWizardOp) MarshalVT() (dAtA []byte, err error)
- func (*CreateGitRepoWizardOp) ProtoMessage()
- func (x *CreateGitRepoWizardOp) Reset()
- func (m *CreateGitRepoWizardOp) SizeVT() (n int)
- func (x *CreateGitRepoWizardOp) String() string
- func (*CreateGitRepoWizardOp) TypeID() string
- func (x *CreateGitRepoWizardOp) UnmarshalJSON(b []byte) error
- func (x *CreateGitRepoWizardOp) UnmarshalProtoJSON(s *json.UnmarshalState)
- func (m *CreateGitRepoWizardOp) UnmarshalVT(dAtA []byte) error
- func (o *CreateGitRepoWizardOp) Validate() error
Constants ¶
const CreateGitRepoWizardOpTypeID = "spacewave/git/repo/create"
CreateGitRepoWizardOpTypeID is the type ID of CreateGitRepoWizardOp.
Variables ¶
var GitTypes = []typeid.Type{ {ID: CreateGitRepoWizardOpTypeID, New: func() any { return new(CreateGitRepoWizardOp) }}, }
GitTypes lists the typed messages of git.proto.
Functions ¶
func CloneGitRepoToRef ¶
func CloneGitRepoToRef( ctx context.Context, ws world.WorldStorage, cloneOpts *git_block.CloneOpts, authMethod client.SSHAuth, progress sideband.Progress, ) (*bucket.ObjectRef, error)
CloneGitRepoToRef clones a remote Git repository through storage and returns its completed repo ref. Pass a World stage held until a transaction adopts the ref.
func ImportLocalRepoToRef ¶ added in v0.57.2
func ImportLocalRepoToRef( ctx context.Context, ws world.WorldState, localPath string, ) (repoRef *bucket.ObjectRef, headHash, branchName string, err error)
ImportLocalRepoToRef imports the committed graph of a local Git repository into an immutable World repo ref without copying configuration or contacting remotes. The World must be writable. It retains a verified repo for the canonical source path so subsequent imports reuse its packs and encode only missing objects. Previously returned refs keep their captured HEAD and references as the source advances.
func NewCreateGitRepoWizardOp ¶
func NewCreateGitRepoWizardOp() any
NewCreateGitRepoWizardOp constructs an empty CreateGitRepoWizardOp.
GoScript builds defer this package until the first call to this function, so schemas there construct the operation through it and match its type ID with opids.CreateRepoWizard.
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) 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 (m *CreateGitRepoWizardOp) CloneMessageVT() protobuf_go_lite.CloneMessage
func (*CreateGitRepoWizardOp) CloneVT ¶
func (m *CreateGitRepoWizardOp) CloneVT() *CreateGitRepoWizardOp
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) GetTimestamp ¶
func (x *CreateGitRepoWizardOp) GetTimestamp() *timestamppb.Timestamp
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) TypeID ¶
func (*CreateGitRepoWizardOp) TypeID() string
TypeID returns the type ID of CreateGitRepoWizardOp.
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 git_lfs implements a git-lfs standalone custom transfer agent that stores Git LFS objects in a Store.
|
Package git_lfs implements a git-lfs standalone custom transfer agent that stores Git LFS objects in a Store. |
|
Package opids declares Git operation identifiers without implementation dependencies.
|
Package opids declares Git operation identifiers without implementation dependencies. |
|
Package git_remote implements a Git remote helper that stores refs and objects in a Space's Git Repo object.
|
Package git_remote implements a Git remote helper that stores refs and objects in a Space's Git Repo object. |