// SPDX-License-Identifier: MIT // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.36.12 // protoc (unknown) // source: ermite/mirror.proto package ermite import ( protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" timestamppb "google.golang.org/protobuf/types/known/timestamppb" reflect "reflect" sync "sync" unsafe "unsafe" ) const ( // Verify that this generated code is sufficiently up-to-date. _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) // Verify that runtime/protoimpl is sufficiently up-to-date. _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) ) // MirrorSource says which configuration applies to a repository. type MirrorSource int32 const ( // MIRROR_SOURCE_DISABLED: nothing applies; MIRROR_SOURCE_GLOBAL: the global // template; MIRROR_SOURCE_OVERRIDE: a per-repository URL; // MIRROR_SOURCE_EXCLUDED: opted out of the global template. MirrorSource_MIRROR_SOURCE_UNSPECIFIED MirrorSource = 0 MirrorSource_MIRROR_SOURCE_DISABLED MirrorSource = 1 MirrorSource_MIRROR_SOURCE_GLOBAL MirrorSource = 2 MirrorSource_MIRROR_SOURCE_OVERRIDE MirrorSource = 3 MirrorSource_MIRROR_SOURCE_EXCLUDED MirrorSource = 4 ) // Enum value maps for MirrorSource. var ( MirrorSource_name = map[int32]string{ 0: "MIRROR_SOURCE_UNSPECIFIED", 1: "MIRROR_SOURCE_DISABLED", 2: "MIRROR_SOURCE_GLOBAL", 3: "MIRROR_SOURCE_OVERRIDE", 4: "MIRROR_SOURCE_EXCLUDED", } MirrorSource_value = map[string]int32{ "MIRROR_SOURCE_UNSPECIFIED": 0, "MIRROR_SOURCE_DISABLED": 1, "MIRROR_SOURCE_GLOBAL": 2, "MIRROR_SOURCE_OVERRIDE": 3, "MIRROR_SOURCE_EXCLUDED": 4, } ) func (x MirrorSource) Enum() *MirrorSource { p := new(MirrorSource) *p = x return p } func (x MirrorSource) String() string { return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) } func (MirrorSource) Descriptor() protoreflect.EnumDescriptor { return file_ermite_mirror_proto_enumTypes[0].Descriptor() } func (MirrorSource) Type() protoreflect.EnumType { return &file_ermite_mirror_proto_enumTypes[0] } func (x MirrorSource) Number() protoreflect.EnumNumber { return protoreflect.EnumNumber(x) } // Deprecated: Use MirrorSource.Descriptor instead. func (MirrorSource) EnumDescriptor() ([]byte, []int) { return file_ermite_mirror_proto_rawDescGZIP(), []int{0} } // MirrorState is the current state of a push mirror. type MirrorState int32 const ( // MIRROR_STATE_OK: last sync succeeded; MIRROR_STATE_FAILING: retrying with // backoff; MIRROR_STATE_PAUSED: stopped until a forced sync or a config change. MirrorState_MIRROR_STATE_UNSPECIFIED MirrorState = 0 MirrorState_MIRROR_STATE_DISABLED MirrorState = 1 MirrorState_MIRROR_STATE_OK MirrorState = 2 MirrorState_MIRROR_STATE_FAILING MirrorState = 3 MirrorState_MIRROR_STATE_PAUSED MirrorState = 4 ) // Enum value maps for MirrorState. var ( MirrorState_name = map[int32]string{ 0: "MIRROR_STATE_UNSPECIFIED", 1: "MIRROR_STATE_DISABLED", 2: "MIRROR_STATE_OK", 3: "MIRROR_STATE_FAILING", 4: "MIRROR_STATE_PAUSED", } MirrorState_value = map[string]int32{ "MIRROR_STATE_UNSPECIFIED": 0, "MIRROR_STATE_DISABLED": 1, "MIRROR_STATE_OK": 2, "MIRROR_STATE_FAILING": 3, "MIRROR_STATE_PAUSED": 4, } ) func (x MirrorState) Enum() *MirrorState { p := new(MirrorState) *p = x return p } func (x MirrorState) String() string { return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) } func (MirrorState) Descriptor() protoreflect.EnumDescriptor { return file_ermite_mirror_proto_enumTypes[1].Descriptor() } func (MirrorState) Type() protoreflect.EnumType { return &file_ermite_mirror_proto_enumTypes[1] } func (x MirrorState) Number() protoreflect.EnumNumber { return protoreflect.EnumNumber(x) } // Deprecated: Use MirrorState.Descriptor instead. func (MirrorState) EnumDescriptor() ([]byte, []int) { return file_ermite_mirror_proto_rawDescGZIP(), []int{1} } // MirrorKey is the public SSH key used for push mirrors. Private key material // is never returned. type MirrorKey struct { state protoimpl.MessageState `protogen:"open.v1"` // AuthorizedKey is the SSH authorized_keys line. AuthorizedKey string `protobuf:"bytes,1,opt,name=authorized_key,json=authorizedKey,proto3" json:"authorized_key,omitempty"` // Fingerprint is the SHA256 fingerprint of the public key. Fingerprint string `protobuf:"bytes,2,opt,name=fingerprint,proto3" json:"fingerprint,omitempty"` // CreatedAt is when the key was created. CreatedAt *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *MirrorKey) Reset() { *x = MirrorKey{} mi := &file_ermite_mirror_proto_msgTypes[0] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *MirrorKey) String() string { return protoimpl.X.MessageStringOf(x) } func (*MirrorKey) ProtoMessage() {} func (x *MirrorKey) ProtoReflect() protoreflect.Message { mi := &file_ermite_mirror_proto_msgTypes[0] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use MirrorKey.ProtoReflect.Descriptor instead. func (*MirrorKey) Descriptor() ([]byte, []int) { return file_ermite_mirror_proto_rawDescGZIP(), []int{0} } func (x *MirrorKey) GetAuthorizedKey() string { if x != nil { return x.AuthorizedKey } return "" } func (x *MirrorKey) GetFingerprint() string { if x != nil { return x.Fingerprint } return "" } func (x *MirrorKey) GetCreatedAt() *timestamppb.Timestamp { if x != nil { return x.CreatedAt } return nil } // GetMirrorKeyRequest selects the input of GetMirrorKey. type GetMirrorKeyRequest struct { state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *GetMirrorKeyRequest) Reset() { *x = GetMirrorKeyRequest{} mi := &file_ermite_mirror_proto_msgTypes[1] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *GetMirrorKeyRequest) String() string { return protoimpl.X.MessageStringOf(x) } func (*GetMirrorKeyRequest) ProtoMessage() {} func (x *GetMirrorKeyRequest) ProtoReflect() protoreflect.Message { mi := &file_ermite_mirror_proto_msgTypes[1] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use GetMirrorKeyRequest.ProtoReflect.Descriptor instead. func (*GetMirrorKeyRequest) Descriptor() ([]byte, []int) { return file_ermite_mirror_proto_rawDescGZIP(), []int{1} } // GetMirrorKeyResponse holds the result of GetMirrorKey. type GetMirrorKeyResponse struct { state protoimpl.MessageState `protogen:"open.v1"` // Key is the public mirror key. Key *MirrorKey `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *GetMirrorKeyResponse) Reset() { *x = GetMirrorKeyResponse{} mi := &file_ermite_mirror_proto_msgTypes[2] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *GetMirrorKeyResponse) String() string { return protoimpl.X.MessageStringOf(x) } func (*GetMirrorKeyResponse) ProtoMessage() {} func (x *GetMirrorKeyResponse) ProtoReflect() protoreflect.Message { mi := &file_ermite_mirror_proto_msgTypes[2] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use GetMirrorKeyResponse.ProtoReflect.Descriptor instead. func (*GetMirrorKeyResponse) Descriptor() ([]byte, []int) { return file_ermite_mirror_proto_rawDescGZIP(), []int{2} } func (x *GetMirrorKeyResponse) GetKey() *MirrorKey { if x != nil { return x.Key } return nil } // RotateMirrorKeyRequest selects the input of RotateMirrorKey. type RotateMirrorKeyRequest struct { state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *RotateMirrorKeyRequest) Reset() { *x = RotateMirrorKeyRequest{} mi := &file_ermite_mirror_proto_msgTypes[3] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *RotateMirrorKeyRequest) String() string { return protoimpl.X.MessageStringOf(x) } func (*RotateMirrorKeyRequest) ProtoMessage() {} func (x *RotateMirrorKeyRequest) ProtoReflect() protoreflect.Message { mi := &file_ermite_mirror_proto_msgTypes[3] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use RotateMirrorKeyRequest.ProtoReflect.Descriptor instead. func (*RotateMirrorKeyRequest) Descriptor() ([]byte, []int) { return file_ermite_mirror_proto_rawDescGZIP(), []int{3} } // RotateMirrorKeyResponse holds the result of RotateMirrorKey. type RotateMirrorKeyResponse struct { state protoimpl.MessageState `protogen:"open.v1"` // Key is the public mirror key. Key *MirrorKey `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` // PreviousFingerprint is the fingerprint of the replaced key. PreviousFingerprint string `protobuf:"bytes,2,opt,name=previous_fingerprint,json=previousFingerprint,proto3" json:"previous_fingerprint,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *RotateMirrorKeyResponse) Reset() { *x = RotateMirrorKeyResponse{} mi := &file_ermite_mirror_proto_msgTypes[4] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *RotateMirrorKeyResponse) String() string { return protoimpl.X.MessageStringOf(x) } func (*RotateMirrorKeyResponse) ProtoMessage() {} func (x *RotateMirrorKeyResponse) ProtoReflect() protoreflect.Message { mi := &file_ermite_mirror_proto_msgTypes[4] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use RotateMirrorKeyResponse.ProtoReflect.Descriptor instead. func (*RotateMirrorKeyResponse) Descriptor() ([]byte, []int) { return file_ermite_mirror_proto_rawDescGZIP(), []int{4} } func (x *RotateMirrorKeyResponse) GetKey() *MirrorKey { if x != nil { return x.Key } return nil } func (x *RotateMirrorKeyResponse) GetPreviousFingerprint() string { if x != nil { return x.PreviousFingerprint } return "" } // MirrorConfig is the server-wide push mirror policy. type MirrorConfig struct { state protoimpl.MessageState `protogen:"open.v1"` // Enabled says whether mirroring is enabled. Enabled bool `protobuf:"varint,1,opt,name=enabled,proto3" json:"enabled,omitempty"` // URLTemplate is an SSH URL containing "{repo}", replaced with the // repository name. UrlTemplate string `protobuf:"bytes,2,opt,name=url_template,json=urlTemplate,proto3" json:"url_template,omitempty"` // Cron is a five-field cron expression in UTC, no more frequent than every // five minutes. Cron string `protobuf:"bytes,3,opt,name=cron,proto3" json:"cron,omitempty"` // AllBranches includes every branch rather than only the default branch. // Tags are always included. AllBranches bool `protobuf:"varint,4,opt,name=all_branches,json=allBranches,proto3" json:"all_branches,omitempty"` // UpdatedAt is when the configuration was last changed. UpdatedAt *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *MirrorConfig) Reset() { *x = MirrorConfig{} mi := &file_ermite_mirror_proto_msgTypes[5] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *MirrorConfig) String() string { return protoimpl.X.MessageStringOf(x) } func (*MirrorConfig) ProtoMessage() {} func (x *MirrorConfig) ProtoReflect() protoreflect.Message { mi := &file_ermite_mirror_proto_msgTypes[5] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use MirrorConfig.ProtoReflect.Descriptor instead. func (*MirrorConfig) Descriptor() ([]byte, []int) { return file_ermite_mirror_proto_rawDescGZIP(), []int{5} } func (x *MirrorConfig) GetEnabled() bool { if x != nil { return x.Enabled } return false } func (x *MirrorConfig) GetUrlTemplate() string { if x != nil { return x.UrlTemplate } return "" } func (x *MirrorConfig) GetCron() string { if x != nil { return x.Cron } return "" } func (x *MirrorConfig) GetAllBranches() bool { if x != nil { return x.AllBranches } return false } func (x *MirrorConfig) GetUpdatedAt() *timestamppb.Timestamp { if x != nil { return x.UpdatedAt } return nil } // GetMirrorConfigRequest selects the input of GetMirrorConfig. type GetMirrorConfigRequest struct { state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *GetMirrorConfigRequest) Reset() { *x = GetMirrorConfigRequest{} mi := &file_ermite_mirror_proto_msgTypes[6] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *GetMirrorConfigRequest) String() string { return protoimpl.X.MessageStringOf(x) } func (*GetMirrorConfigRequest) ProtoMessage() {} func (x *GetMirrorConfigRequest) ProtoReflect() protoreflect.Message { mi := &file_ermite_mirror_proto_msgTypes[6] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use GetMirrorConfigRequest.ProtoReflect.Descriptor instead. func (*GetMirrorConfigRequest) Descriptor() ([]byte, []int) { return file_ermite_mirror_proto_rawDescGZIP(), []int{6} } // GetMirrorConfigResponse holds the result of GetMirrorConfig. type GetMirrorConfigResponse struct { state protoimpl.MessageState `protogen:"open.v1"` // Config is the global mirror policy. Config *MirrorConfig `protobuf:"bytes,1,opt,name=config,proto3" json:"config,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *GetMirrorConfigResponse) Reset() { *x = GetMirrorConfigResponse{} mi := &file_ermite_mirror_proto_msgTypes[7] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *GetMirrorConfigResponse) String() string { return protoimpl.X.MessageStringOf(x) } func (*GetMirrorConfigResponse) ProtoMessage() {} func (x *GetMirrorConfigResponse) ProtoReflect() protoreflect.Message { mi := &file_ermite_mirror_proto_msgTypes[7] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use GetMirrorConfigResponse.ProtoReflect.Descriptor instead. func (*GetMirrorConfigResponse) Descriptor() ([]byte, []int) { return file_ermite_mirror_proto_rawDescGZIP(), []int{7} } func (x *GetMirrorConfigResponse) GetConfig() *MirrorConfig { if x != nil { return x.Config } return nil } // SetMirrorConfigRequest selects the input of SetMirrorConfig. type SetMirrorConfigRequest struct { state protoimpl.MessageState `protogen:"open.v1"` // Enabled says whether mirroring is enabled. Unset means unchanged. Enabled *bool `protobuf:"varint,1,opt,name=enabled,proto3,oneof" json:"enabled,omitempty"` // URLTemplate is an SSH URL containing "{repo}", replaced with the // repository name. Unset means unchanged. UrlTemplate *string `protobuf:"bytes,2,opt,name=url_template,json=urlTemplate,proto3,oneof" json:"url_template,omitempty"` // Cron is a five-field cron expression in UTC, no more frequent than every // five minutes. Unset means unchanged. Cron *string `protobuf:"bytes,3,opt,name=cron,proto3,oneof" json:"cron,omitempty"` // AllBranches includes every branch rather than only the default branch. // Tags are always included. Unset means unchanged. AllBranches *bool `protobuf:"varint,4,opt,name=all_branches,json=allBranches,proto3,oneof" json:"all_branches,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *SetMirrorConfigRequest) Reset() { *x = SetMirrorConfigRequest{} mi := &file_ermite_mirror_proto_msgTypes[8] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *SetMirrorConfigRequest) String() string { return protoimpl.X.MessageStringOf(x) } func (*SetMirrorConfigRequest) ProtoMessage() {} func (x *SetMirrorConfigRequest) ProtoReflect() protoreflect.Message { mi := &file_ermite_mirror_proto_msgTypes[8] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use SetMirrorConfigRequest.ProtoReflect.Descriptor instead. func (*SetMirrorConfigRequest) Descriptor() ([]byte, []int) { return file_ermite_mirror_proto_rawDescGZIP(), []int{8} } func (x *SetMirrorConfigRequest) GetEnabled() bool { if x != nil && x.Enabled != nil { return *x.Enabled } return false } func (x *SetMirrorConfigRequest) GetUrlTemplate() string { if x != nil && x.UrlTemplate != nil { return *x.UrlTemplate } return "" } func (x *SetMirrorConfigRequest) GetCron() string { if x != nil && x.Cron != nil { return *x.Cron } return "" } func (x *SetMirrorConfigRequest) GetAllBranches() bool { if x != nil && x.AllBranches != nil { return *x.AllBranches } return false } // SetMirrorConfigResponse holds the result of SetMirrorConfig. type SetMirrorConfigResponse struct { state protoimpl.MessageState `protogen:"open.v1"` // Config is the global mirror policy. Config *MirrorConfig `protobuf:"bytes,1,opt,name=config,proto3" json:"config,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *SetMirrorConfigResponse) Reset() { *x = SetMirrorConfigResponse{} mi := &file_ermite_mirror_proto_msgTypes[9] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *SetMirrorConfigResponse) String() string { return protoimpl.X.MessageStringOf(x) } func (*SetMirrorConfigResponse) ProtoMessage() {} func (x *SetMirrorConfigResponse) ProtoReflect() protoreflect.Message { mi := &file_ermite_mirror_proto_msgTypes[9] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use SetMirrorConfigResponse.ProtoReflect.Descriptor instead. func (*SetMirrorConfigResponse) Descriptor() ([]byte, []int) { return file_ermite_mirror_proto_rawDescGZIP(), []int{9} } func (x *SetMirrorConfigResponse) GetConfig() *MirrorConfig { if x != nil { return x.Config } return nil } // MirrorTarget is the resolved push mirror target of a repository. type MirrorTarget struct { state protoimpl.MessageState `protogen:"open.v1"` // Repo is the repository name. Repo string `protobuf:"bytes,1,opt,name=repo,proto3" json:"repo,omitempty"` // Enabled says whether mirroring is enabled. Enabled bool `protobuf:"varint,2,opt,name=enabled,proto3" json:"enabled,omitempty"` // URL is the SSH destination of the mirror. Url string `protobuf:"bytes,3,opt,name=url,proto3" json:"url,omitempty"` // Cron is a five-field cron expression in UTC, no more frequent than every // five minutes. Cron string `protobuf:"bytes,4,opt,name=cron,proto3" json:"cron,omitempty"` // AllBranches includes every branch rather than only the default branch. // Tags are always included. AllBranches bool `protobuf:"varint,5,opt,name=all_branches,json=allBranches,proto3" json:"all_branches,omitempty"` // Source is the configuration used to resolve the target. Source MirrorSource `protobuf:"varint,6,opt,name=source,proto3,enum=ermite.MirrorSource" json:"source,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *MirrorTarget) Reset() { *x = MirrorTarget{} mi := &file_ermite_mirror_proto_msgTypes[10] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *MirrorTarget) String() string { return protoimpl.X.MessageStringOf(x) } func (*MirrorTarget) ProtoMessage() {} func (x *MirrorTarget) ProtoReflect() protoreflect.Message { mi := &file_ermite_mirror_proto_msgTypes[10] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use MirrorTarget.ProtoReflect.Descriptor instead. func (*MirrorTarget) Descriptor() ([]byte, []int) { return file_ermite_mirror_proto_rawDescGZIP(), []int{10} } func (x *MirrorTarget) GetRepo() string { if x != nil { return x.Repo } return "" } func (x *MirrorTarget) GetEnabled() bool { if x != nil { return x.Enabled } return false } func (x *MirrorTarget) GetUrl() string { if x != nil { return x.Url } return "" } func (x *MirrorTarget) GetCron() string { if x != nil { return x.Cron } return "" } func (x *MirrorTarget) GetAllBranches() bool { if x != nil { return x.AllBranches } return false } func (x *MirrorTarget) GetSource() MirrorSource { if x != nil { return x.Source } return MirrorSource_MIRROR_SOURCE_UNSPECIFIED } // SetRepoMirrorRequest selects the input of SetRepoMirror. type SetRepoMirrorRequest struct { state protoimpl.MessageState `protogen:"open.v1"` // Repo is the repository name. Repo string `protobuf:"bytes,1,opt,name=repo,proto3" json:"repo,omitempty"` // URL is the SSH destination of the mirror. Url string `protobuf:"bytes,2,opt,name=url,proto3" json:"url,omitempty"` // Cron is a five-field cron expression in UTC, no more frequent than every // five minutes. // Empty means inherit the global cron. Cron string `protobuf:"bytes,3,opt,name=cron,proto3" json:"cron,omitempty"` // AllBranches includes every branch rather than only the default branch. // Tags are always included. Unset means inherit the global setting. AllBranches *bool `protobuf:"varint,4,opt,name=all_branches,json=allBranches,proto3,oneof" json:"all_branches,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *SetRepoMirrorRequest) Reset() { *x = SetRepoMirrorRequest{} mi := &file_ermite_mirror_proto_msgTypes[11] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *SetRepoMirrorRequest) String() string { return protoimpl.X.MessageStringOf(x) } func (*SetRepoMirrorRequest) ProtoMessage() {} func (x *SetRepoMirrorRequest) ProtoReflect() protoreflect.Message { mi := &file_ermite_mirror_proto_msgTypes[11] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use SetRepoMirrorRequest.ProtoReflect.Descriptor instead. func (*SetRepoMirrorRequest) Descriptor() ([]byte, []int) { return file_ermite_mirror_proto_rawDescGZIP(), []int{11} } func (x *SetRepoMirrorRequest) GetRepo() string { if x != nil { return x.Repo } return "" } func (x *SetRepoMirrorRequest) GetUrl() string { if x != nil { return x.Url } return "" } func (x *SetRepoMirrorRequest) GetCron() string { if x != nil { return x.Cron } return "" } func (x *SetRepoMirrorRequest) GetAllBranches() bool { if x != nil && x.AllBranches != nil { return *x.AllBranches } return false } // SetRepoMirrorResponse holds the result of SetRepoMirror. type SetRepoMirrorResponse struct { state protoimpl.MessageState `protogen:"open.v1"` // Target is the resolved mirror target. Target *MirrorTarget `protobuf:"bytes,1,opt,name=target,proto3" json:"target,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *SetRepoMirrorResponse) Reset() { *x = SetRepoMirrorResponse{} mi := &file_ermite_mirror_proto_msgTypes[12] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *SetRepoMirrorResponse) String() string { return protoimpl.X.MessageStringOf(x) } func (*SetRepoMirrorResponse) ProtoMessage() {} func (x *SetRepoMirrorResponse) ProtoReflect() protoreflect.Message { mi := &file_ermite_mirror_proto_msgTypes[12] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use SetRepoMirrorResponse.ProtoReflect.Descriptor instead. func (*SetRepoMirrorResponse) Descriptor() ([]byte, []int) { return file_ermite_mirror_proto_rawDescGZIP(), []int{12} } func (x *SetRepoMirrorResponse) GetTarget() *MirrorTarget { if x != nil { return x.Target } return nil } // RemoveRepoMirrorRequest selects the input of RemoveRepoMirror. type RemoveRepoMirrorRequest struct { state protoimpl.MessageState `protogen:"open.v1"` // Repo is the repository name. Repo string `protobuf:"bytes,1,opt,name=repo,proto3" json:"repo,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *RemoveRepoMirrorRequest) Reset() { *x = RemoveRepoMirrorRequest{} mi := &file_ermite_mirror_proto_msgTypes[13] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *RemoveRepoMirrorRequest) String() string { return protoimpl.X.MessageStringOf(x) } func (*RemoveRepoMirrorRequest) ProtoMessage() {} func (x *RemoveRepoMirrorRequest) ProtoReflect() protoreflect.Message { mi := &file_ermite_mirror_proto_msgTypes[13] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use RemoveRepoMirrorRequest.ProtoReflect.Descriptor instead. func (*RemoveRepoMirrorRequest) Descriptor() ([]byte, []int) { return file_ermite_mirror_proto_rawDescGZIP(), []int{13} } func (x *RemoveRepoMirrorRequest) GetRepo() string { if x != nil { return x.Repo } return "" } // RemoveRepoMirrorResponse holds the result of RemoveRepoMirror. type RemoveRepoMirrorResponse struct { state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *RemoveRepoMirrorResponse) Reset() { *x = RemoveRepoMirrorResponse{} mi := &file_ermite_mirror_proto_msgTypes[14] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *RemoveRepoMirrorResponse) String() string { return protoimpl.X.MessageStringOf(x) } func (*RemoveRepoMirrorResponse) ProtoMessage() {} func (x *RemoveRepoMirrorResponse) ProtoReflect() protoreflect.Message { mi := &file_ermite_mirror_proto_msgTypes[14] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use RemoveRepoMirrorResponse.ProtoReflect.Descriptor instead. func (*RemoveRepoMirrorResponse) Descriptor() ([]byte, []int) { return file_ermite_mirror_proto_rawDescGZIP(), []int{14} } // SetRepoMirrorExcludedRequest selects the input of SetRepoMirrorExcluded. type SetRepoMirrorExcludedRequest struct { state protoimpl.MessageState `protogen:"open.v1"` // Repo is the repository name. Repo string `protobuf:"bytes,1,opt,name=repo,proto3" json:"repo,omitempty"` // Excluded opts out of the global template, unless a URL override exists. Excluded bool `protobuf:"varint,2,opt,name=excluded,proto3" json:"excluded,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *SetRepoMirrorExcludedRequest) Reset() { *x = SetRepoMirrorExcludedRequest{} mi := &file_ermite_mirror_proto_msgTypes[15] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *SetRepoMirrorExcludedRequest) String() string { return protoimpl.X.MessageStringOf(x) } func (*SetRepoMirrorExcludedRequest) ProtoMessage() {} func (x *SetRepoMirrorExcludedRequest) ProtoReflect() protoreflect.Message { mi := &file_ermite_mirror_proto_msgTypes[15] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use SetRepoMirrorExcludedRequest.ProtoReflect.Descriptor instead. func (*SetRepoMirrorExcludedRequest) Descriptor() ([]byte, []int) { return file_ermite_mirror_proto_rawDescGZIP(), []int{15} } func (x *SetRepoMirrorExcludedRequest) GetRepo() string { if x != nil { return x.Repo } return "" } func (x *SetRepoMirrorExcludedRequest) GetExcluded() bool { if x != nil { return x.Excluded } return false } // SetRepoMirrorExcludedResponse holds the result of SetRepoMirrorExcluded. type SetRepoMirrorExcludedResponse struct { state protoimpl.MessageState `protogen:"open.v1"` // Target is the resolved mirror target. Target *MirrorTarget `protobuf:"bytes,1,opt,name=target,proto3" json:"target,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *SetRepoMirrorExcludedResponse) Reset() { *x = SetRepoMirrorExcludedResponse{} mi := &file_ermite_mirror_proto_msgTypes[16] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *SetRepoMirrorExcludedResponse) String() string { return protoimpl.X.MessageStringOf(x) } func (*SetRepoMirrorExcludedResponse) ProtoMessage() {} func (x *SetRepoMirrorExcludedResponse) ProtoReflect() protoreflect.Message { mi := &file_ermite_mirror_proto_msgTypes[16] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use SetRepoMirrorExcludedResponse.ProtoReflect.Descriptor instead. func (*SetRepoMirrorExcludedResponse) Descriptor() ([]byte, []int) { return file_ermite_mirror_proto_rawDescGZIP(), []int{16} } func (x *SetRepoMirrorExcludedResponse) GetTarget() *MirrorTarget { if x != nil { return x.Target } return nil } // MirrorStatus describes a repository mirror and its last attempts. type MirrorStatus struct { state protoimpl.MessageState `protogen:"open.v1"` // Target is the resolved mirror target. Target *MirrorTarget `protobuf:"bytes,1,opt,name=target,proto3" json:"target,omitempty"` // State is the current mirror state. State MirrorState `protobuf:"varint,2,opt,name=state,proto3,enum=ermite.MirrorState" json:"state,omitempty"` // FailureClass is the failure category, empty when there is no failure. FailureClass string `protobuf:"bytes,3,opt,name=failure_class,json=failureClass,proto3" json:"failure_class,omitempty"` // Reason explains the current state. Reason string `protobuf:"bytes,4,opt,name=reason,proto3" json:"reason,omitempty"` // Detail is the last error detail, returned only to callers with repo:admin // on the repository. Detail string `protobuf:"bytes,5,opt,name=detail,proto3" json:"detail,omitempty"` // ConsecutiveFailures counts failed attempts since the last success or // reset. ConsecutiveFailures int32 `protobuf:"varint,6,opt,name=consecutive_failures,json=consecutiveFailures,proto3" json:"consecutive_failures,omitempty"` // LastAttemptAt is when the last sync was attempted. LastAttemptAt *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=last_attempt_at,json=lastAttemptAt,proto3" json:"last_attempt_at,omitempty"` // LastSuccessAt is when the last sync succeeded, including a no-op. LastSuccessAt *timestamppb.Timestamp `protobuf:"bytes,8,opt,name=last_success_at,json=lastSuccessAt,proto3" json:"last_success_at,omitempty"` // NextRetryAt is the next retry time while failing; otherwise unset. NextRetryAt *timestamppb.Timestamp `protobuf:"bytes,9,opt,name=next_retry_at,json=nextRetryAt,proto3" json:"next_retry_at,omitempty"` // NextRunAt is the next scheduled sync time, or the retry time while // failing. NextRunAt *timestamppb.Timestamp `protobuf:"bytes,10,opt,name=next_run_at,json=nextRunAt,proto3" json:"next_run_at,omitempty"` // PausedAt is when the mirror was paused; otherwise unset. PausedAt *timestamppb.Timestamp `protobuf:"bytes,11,opt,name=paused_at,json=pausedAt,proto3" json:"paused_at,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *MirrorStatus) Reset() { *x = MirrorStatus{} mi := &file_ermite_mirror_proto_msgTypes[17] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *MirrorStatus) String() string { return protoimpl.X.MessageStringOf(x) } func (*MirrorStatus) ProtoMessage() {} func (x *MirrorStatus) ProtoReflect() protoreflect.Message { mi := &file_ermite_mirror_proto_msgTypes[17] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use MirrorStatus.ProtoReflect.Descriptor instead. func (*MirrorStatus) Descriptor() ([]byte, []int) { return file_ermite_mirror_proto_rawDescGZIP(), []int{17} } func (x *MirrorStatus) GetTarget() *MirrorTarget { if x != nil { return x.Target } return nil } func (x *MirrorStatus) GetState() MirrorState { if x != nil { return x.State } return MirrorState_MIRROR_STATE_UNSPECIFIED } func (x *MirrorStatus) GetFailureClass() string { if x != nil { return x.FailureClass } return "" } func (x *MirrorStatus) GetReason() string { if x != nil { return x.Reason } return "" } func (x *MirrorStatus) GetDetail() string { if x != nil { return x.Detail } return "" } func (x *MirrorStatus) GetConsecutiveFailures() int32 { if x != nil { return x.ConsecutiveFailures } return 0 } func (x *MirrorStatus) GetLastAttemptAt() *timestamppb.Timestamp { if x != nil { return x.LastAttemptAt } return nil } func (x *MirrorStatus) GetLastSuccessAt() *timestamppb.Timestamp { if x != nil { return x.LastSuccessAt } return nil } func (x *MirrorStatus) GetNextRetryAt() *timestamppb.Timestamp { if x != nil { return x.NextRetryAt } return nil } func (x *MirrorStatus) GetNextRunAt() *timestamppb.Timestamp { if x != nil { return x.NextRunAt } return nil } func (x *MirrorStatus) GetPausedAt() *timestamppb.Timestamp { if x != nil { return x.PausedAt } return nil } // GetMirrorStatusRequest selects the input of GetMirrorStatus. type GetMirrorStatusRequest struct { state protoimpl.MessageState `protogen:"open.v1"` // Repo is the repository name. Repo string `protobuf:"bytes,1,opt,name=repo,proto3" json:"repo,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *GetMirrorStatusRequest) Reset() { *x = GetMirrorStatusRequest{} mi := &file_ermite_mirror_proto_msgTypes[18] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *GetMirrorStatusRequest) String() string { return protoimpl.X.MessageStringOf(x) } func (*GetMirrorStatusRequest) ProtoMessage() {} func (x *GetMirrorStatusRequest) ProtoReflect() protoreflect.Message { mi := &file_ermite_mirror_proto_msgTypes[18] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use GetMirrorStatusRequest.ProtoReflect.Descriptor instead. func (*GetMirrorStatusRequest) Descriptor() ([]byte, []int) { return file_ermite_mirror_proto_rawDescGZIP(), []int{18} } func (x *GetMirrorStatusRequest) GetRepo() string { if x != nil { return x.Repo } return "" } // GetMirrorStatusResponse holds the result of GetMirrorStatus. type GetMirrorStatusResponse struct { state protoimpl.MessageState `protogen:"open.v1"` // Status is the current mirror status. Status *MirrorStatus `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *GetMirrorStatusResponse) Reset() { *x = GetMirrorStatusResponse{} mi := &file_ermite_mirror_proto_msgTypes[19] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *GetMirrorStatusResponse) String() string { return protoimpl.X.MessageStringOf(x) } func (*GetMirrorStatusResponse) ProtoMessage() {} func (x *GetMirrorStatusResponse) ProtoReflect() protoreflect.Message { mi := &file_ermite_mirror_proto_msgTypes[19] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use GetMirrorStatusResponse.ProtoReflect.Descriptor instead. func (*GetMirrorStatusResponse) Descriptor() ([]byte, []int) { return file_ermite_mirror_proto_rawDescGZIP(), []int{19} } func (x *GetMirrorStatusResponse) GetStatus() *MirrorStatus { if x != nil { return x.Status } return nil } // ListMirrorStatusRequest selects the input of ListMirrorStatus. type ListMirrorStatusRequest struct { state protoimpl.MessageState `protogen:"open.v1"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *ListMirrorStatusRequest) Reset() { *x = ListMirrorStatusRequest{} mi := &file_ermite_mirror_proto_msgTypes[20] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *ListMirrorStatusRequest) String() string { return protoimpl.X.MessageStringOf(x) } func (*ListMirrorStatusRequest) ProtoMessage() {} func (x *ListMirrorStatusRequest) ProtoReflect() protoreflect.Message { mi := &file_ermite_mirror_proto_msgTypes[20] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use ListMirrorStatusRequest.ProtoReflect.Descriptor instead. func (*ListMirrorStatusRequest) Descriptor() ([]byte, []int) { return file_ermite_mirror_proto_rawDescGZIP(), []int{20} } // ListMirrorStatusResponse holds the result of ListMirrorStatus. type ListMirrorStatusResponse struct { state protoimpl.MessageState `protogen:"open.v1"` // Statuses are the mirror statuses. Statuses []*MirrorStatus `protobuf:"bytes,1,rep,name=statuses,proto3" json:"statuses,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *ListMirrorStatusResponse) Reset() { *x = ListMirrorStatusResponse{} mi := &file_ermite_mirror_proto_msgTypes[21] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *ListMirrorStatusResponse) String() string { return protoimpl.X.MessageStringOf(x) } func (*ListMirrorStatusResponse) ProtoMessage() {} func (x *ListMirrorStatusResponse) ProtoReflect() protoreflect.Message { mi := &file_ermite_mirror_proto_msgTypes[21] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use ListMirrorStatusResponse.ProtoReflect.Descriptor instead. func (*ListMirrorStatusResponse) Descriptor() ([]byte, []int) { return file_ermite_mirror_proto_rawDescGZIP(), []int{21} } func (x *ListMirrorStatusResponse) GetStatuses() []*MirrorStatus { if x != nil { return x.Statuses } return nil } // SyncMirrorRequest selects the input of SyncMirror. type SyncMirrorRequest struct { state protoimpl.MessageState `protogen:"open.v1"` // Repo is the repository name. Repo string `protobuf:"bytes,1,opt,name=repo,proto3" json:"repo,omitempty"` // All selects every repository and needs owner rights. Repo must be empty // when true. All bool `protobuf:"varint,2,opt,name=all,proto3" json:"all,omitempty"` // Force lifts a pause and skips the no-op check and the 60-second manual // throttle. It never forces a Git push. Force bool `protobuf:"varint,3,opt,name=force,proto3" json:"force,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *SyncMirrorRequest) Reset() { *x = SyncMirrorRequest{} mi := &file_ermite_mirror_proto_msgTypes[22] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *SyncMirrorRequest) String() string { return protoimpl.X.MessageStringOf(x) } func (*SyncMirrorRequest) ProtoMessage() {} func (x *SyncMirrorRequest) ProtoReflect() protoreflect.Message { mi := &file_ermite_mirror_proto_msgTypes[22] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use SyncMirrorRequest.ProtoReflect.Descriptor instead. func (*SyncMirrorRequest) Descriptor() ([]byte, []int) { return file_ermite_mirror_proto_rawDescGZIP(), []int{22} } func (x *SyncMirrorRequest) GetRepo() string { if x != nil { return x.Repo } return "" } func (x *SyncMirrorRequest) GetAll() bool { if x != nil { return x.All } return false } func (x *SyncMirrorRequest) GetForce() bool { if x != nil { return x.Force } return false } // SyncMirrorResult is the result of a sync request for one repository. type SyncMirrorResult struct { state protoimpl.MessageState `protogen:"open.v1"` // Repo is the repository name. Repo string `protobuf:"bytes,1,opt,name=repo,proto3" json:"repo,omitempty"` // Queued says another sync is running and this request was queued. Queued bool `protobuf:"varint,2,opt,name=queued,proto3" json:"queued,omitempty"` // NoOp says the refs already matched the last successful snapshot. NoOp bool `protobuf:"varint,3,opt,name=no_op,json=noOp,proto3" json:"no_op,omitempty"` // Status is the current mirror status. Status *MirrorStatus `protobuf:"bytes,4,opt,name=status,proto3" json:"status,omitempty"` // Error is a human-readable failure of this repository's sync, empty on // success. It never contains the mirror URL. Error string `protobuf:"bytes,5,opt,name=error,proto3" json:"error,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *SyncMirrorResult) Reset() { *x = SyncMirrorResult{} mi := &file_ermite_mirror_proto_msgTypes[23] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *SyncMirrorResult) String() string { return protoimpl.X.MessageStringOf(x) } func (*SyncMirrorResult) ProtoMessage() {} func (x *SyncMirrorResult) ProtoReflect() protoreflect.Message { mi := &file_ermite_mirror_proto_msgTypes[23] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use SyncMirrorResult.ProtoReflect.Descriptor instead. func (*SyncMirrorResult) Descriptor() ([]byte, []int) { return file_ermite_mirror_proto_rawDescGZIP(), []int{23} } func (x *SyncMirrorResult) GetRepo() string { if x != nil { return x.Repo } return "" } func (x *SyncMirrorResult) GetQueued() bool { if x != nil { return x.Queued } return false } func (x *SyncMirrorResult) GetNoOp() bool { if x != nil { return x.NoOp } return false } func (x *SyncMirrorResult) GetStatus() *MirrorStatus { if x != nil { return x.Status } return nil } func (x *SyncMirrorResult) GetError() string { if x != nil { return x.Error } return "" } // SyncMirrorResponse holds the result of SyncMirror. type SyncMirrorResponse struct { state protoimpl.MessageState `protogen:"open.v1"` // Results are the per-repository sync results. Results []*SyncMirrorResult `protobuf:"bytes,1,rep,name=results,proto3" json:"results,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *SyncMirrorResponse) Reset() { *x = SyncMirrorResponse{} mi := &file_ermite_mirror_proto_msgTypes[24] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *SyncMirrorResponse) String() string { return protoimpl.X.MessageStringOf(x) } func (*SyncMirrorResponse) ProtoMessage() {} func (x *SyncMirrorResponse) ProtoReflect() protoreflect.Message { mi := &file_ermite_mirror_proto_msgTypes[24] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use SyncMirrorResponse.ProtoReflect.Descriptor instead. func (*SyncMirrorResponse) Descriptor() ([]byte, []int) { return file_ermite_mirror_proto_rawDescGZIP(), []int{24} } func (x *SyncMirrorResponse) GetResults() []*SyncMirrorResult { if x != nil { return x.Results } return nil } var File_ermite_mirror_proto protoreflect.FileDescriptor const file_ermite_mirror_proto_rawDesc = "" + "\n" + "\x13ermite/mirror.proto\x12\x06ermite\x1a\x1fgoogle/protobuf/timestamp.proto\"\x8f\x01\n" + "\tMirrorKey\x12%\n" + "\x0eauthorized_key\x18\x01 \x01(\tR\rauthorizedKey\x12 \n" + "\vfingerprint\x18\x02 \x01(\tR\vfingerprint\x129\n" + "\n" + "created_at\x18\x03 \x01(\v2\x1a.google.protobuf.TimestampR\tcreatedAt\"\x15\n" + "\x13GetMirrorKeyRequest\";\n" + "\x14GetMirrorKeyResponse\x12#\n" + "\x03key\x18\x01 \x01(\v2\x11.ermite.MirrorKeyR\x03key\"\x18\n" + "\x16RotateMirrorKeyRequest\"q\n" + "\x17RotateMirrorKeyResponse\x12#\n" + "\x03key\x18\x01 \x01(\v2\x11.ermite.MirrorKeyR\x03key\x121\n" + "\x14previous_fingerprint\x18\x02 \x01(\tR\x13previousFingerprint\"\xbd\x01\n" + "\fMirrorConfig\x12\x18\n" + "\aenabled\x18\x01 \x01(\bR\aenabled\x12!\n" + "\furl_template\x18\x02 \x01(\tR\vurlTemplate\x12\x12\n" + "\x04cron\x18\x03 \x01(\tR\x04cron\x12!\n" + "\fall_branches\x18\x04 \x01(\bR\vallBranches\x129\n" + "\n" + "updated_at\x18\x05 \x01(\v2\x1a.google.protobuf.TimestampR\tupdatedAt\"\x18\n" + "\x16GetMirrorConfigRequest\"G\n" + "\x17GetMirrorConfigResponse\x12,\n" + "\x06config\x18\x01 \x01(\v2\x14.ermite.MirrorConfigR\x06config\"\xd7\x01\n" + "\x16SetMirrorConfigRequest\x12\x1d\n" + "\aenabled\x18\x01 \x01(\bH\x00R\aenabled\x88\x01\x01\x12&\n" + "\furl_template\x18\x02 \x01(\tH\x01R\vurlTemplate\x88\x01\x01\x12\x17\n" + "\x04cron\x18\x03 \x01(\tH\x02R\x04cron\x88\x01\x01\x12&\n" + "\fall_branches\x18\x04 \x01(\bH\x03R\vallBranches\x88\x01\x01B\n" + "\n" + "\b_enabledB\x0f\n" + "\r_url_templateB\a\n" + "\x05_cronB\x0f\n" + "\r_all_branches\"G\n" + "\x17SetMirrorConfigResponse\x12,\n" + "\x06config\x18\x01 \x01(\v2\x14.ermite.MirrorConfigR\x06config\"\xb3\x01\n" + "\fMirrorTarget\x12\x12\n" + "\x04repo\x18\x01 \x01(\tR\x04repo\x12\x18\n" + "\aenabled\x18\x02 \x01(\bR\aenabled\x12\x10\n" + "\x03url\x18\x03 \x01(\tR\x03url\x12\x12\n" + "\x04cron\x18\x04 \x01(\tR\x04cron\x12!\n" + "\fall_branches\x18\x05 \x01(\bR\vallBranches\x12,\n" + "\x06source\x18\x06 \x01(\x0e2\x14.ermite.MirrorSourceR\x06source\"\x89\x01\n" + "\x14SetRepoMirrorRequest\x12\x12\n" + "\x04repo\x18\x01 \x01(\tR\x04repo\x12\x10\n" + "\x03url\x18\x02 \x01(\tR\x03url\x12\x12\n" + "\x04cron\x18\x03 \x01(\tR\x04cron\x12&\n" + "\fall_branches\x18\x04 \x01(\bH\x00R\vallBranches\x88\x01\x01B\x0f\n" + "\r_all_branches\"E\n" + "\x15SetRepoMirrorResponse\x12,\n" + "\x06target\x18\x01 \x01(\v2\x14.ermite.MirrorTargetR\x06target\"-\n" + "\x17RemoveRepoMirrorRequest\x12\x12\n" + "\x04repo\x18\x01 \x01(\tR\x04repo\"\x1a\n" + "\x18RemoveRepoMirrorResponse\"N\n" + "\x1cSetRepoMirrorExcludedRequest\x12\x12\n" + "\x04repo\x18\x01 \x01(\tR\x04repo\x12\x1a\n" + "\bexcluded\x18\x02 \x01(\bR\bexcluded\"M\n" + "\x1dSetRepoMirrorExcludedResponse\x12,\n" + "\x06target\x18\x01 \x01(\v2\x14.ermite.MirrorTargetR\x06target\"\xac\x04\n" + "\fMirrorStatus\x12,\n" + "\x06target\x18\x01 \x01(\v2\x14.ermite.MirrorTargetR\x06target\x12)\n" + "\x05state\x18\x02 \x01(\x0e2\x13.ermite.MirrorStateR\x05state\x12#\n" + "\rfailure_class\x18\x03 \x01(\tR\ffailureClass\x12\x16\n" + "\x06reason\x18\x04 \x01(\tR\x06reason\x12\x16\n" + "\x06detail\x18\x05 \x01(\tR\x06detail\x121\n" + "\x14consecutive_failures\x18\x06 \x01(\x05R\x13consecutiveFailures\x12B\n" + "\x0flast_attempt_at\x18\a \x01(\v2\x1a.google.protobuf.TimestampR\rlastAttemptAt\x12B\n" + "\x0flast_success_at\x18\b \x01(\v2\x1a.google.protobuf.TimestampR\rlastSuccessAt\x12>\n" + "\rnext_retry_at\x18\t \x01(\v2\x1a.google.protobuf.TimestampR\vnextRetryAt\x12:\n" + "\vnext_run_at\x18\n" + " \x01(\v2\x1a.google.protobuf.TimestampR\tnextRunAt\x127\n" + "\tpaused_at\x18\v \x01(\v2\x1a.google.protobuf.TimestampR\bpausedAt\",\n" + "\x16GetMirrorStatusRequest\x12\x12\n" + "\x04repo\x18\x01 \x01(\tR\x04repo\"G\n" + "\x17GetMirrorStatusResponse\x12,\n" + "\x06status\x18\x01 \x01(\v2\x14.ermite.MirrorStatusR\x06status\"\x19\n" + "\x17ListMirrorStatusRequest\"L\n" + "\x18ListMirrorStatusResponse\x120\n" + "\bstatuses\x18\x01 \x03(\v2\x14.ermite.MirrorStatusR\bstatuses\"O\n" + "\x11SyncMirrorRequest\x12\x12\n" + "\x04repo\x18\x01 \x01(\tR\x04repo\x12\x10\n" + "\x03all\x18\x02 \x01(\bR\x03all\x12\x14\n" + "\x05force\x18\x03 \x01(\bR\x05force\"\x97\x01\n" + "\x10SyncMirrorResult\x12\x12\n" + "\x04repo\x18\x01 \x01(\tR\x04repo\x12\x16\n" + "\x06queued\x18\x02 \x01(\bR\x06queued\x12\x13\n" + "\x05no_op\x18\x03 \x01(\bR\x04noOp\x12,\n" + "\x06status\x18\x04 \x01(\v2\x14.ermite.MirrorStatusR\x06status\x12\x14\n" + "\x05error\x18\x05 \x01(\tR\x05error\"H\n" + "\x12SyncMirrorResponse\x122\n" + "\aresults\x18\x01 \x03(\v2\x18.ermite.SyncMirrorResultR\aresults*\x9b\x01\n" + "\fMirrorSource\x12\x1d\n" + "\x19MIRROR_SOURCE_UNSPECIFIED\x10\x00\x12\x1a\n" + "\x16MIRROR_SOURCE_DISABLED\x10\x01\x12\x18\n" + "\x14MIRROR_SOURCE_GLOBAL\x10\x02\x12\x1a\n" + "\x16MIRROR_SOURCE_OVERRIDE\x10\x03\x12\x1a\n" + "\x16MIRROR_SOURCE_EXCLUDED\x10\x04*\x8e\x01\n" + "\vMirrorState\x12\x1c\n" + "\x18MIRROR_STATE_UNSPECIFIED\x10\x00\x12\x19\n" + "\x15MIRROR_STATE_DISABLED\x10\x01\x12\x13\n" + "\x0fMIRROR_STATE_OK\x10\x02\x12\x18\n" + "\x14MIRROR_STATE_FAILING\x10\x03\x12\x17\n" + "\x13MIRROR_STATE_PAUSED\x10\x042\xd1\x06\n" + "\rMirrorService\x12I\n" + "\fGetMirrorKey\x12\x1b.ermite.GetMirrorKeyRequest\x1a\x1c.ermite.GetMirrorKeyResponse\x12R\n" + "\x0fRotateMirrorKey\x12\x1e.ermite.RotateMirrorKeyRequest\x1a\x1f.ermite.RotateMirrorKeyResponse\x12R\n" + "\x0fGetMirrorConfig\x12\x1e.ermite.GetMirrorConfigRequest\x1a\x1f.ermite.GetMirrorConfigResponse\x12R\n" + "\x0fSetMirrorConfig\x12\x1e.ermite.SetMirrorConfigRequest\x1a\x1f.ermite.SetMirrorConfigResponse\x12L\n" + "\rSetRepoMirror\x12\x1c.ermite.SetRepoMirrorRequest\x1a\x1d.ermite.SetRepoMirrorResponse\x12U\n" + "\x10RemoveRepoMirror\x12\x1f.ermite.RemoveRepoMirrorRequest\x1a .ermite.RemoveRepoMirrorResponse\x12d\n" + "\x15SetRepoMirrorExcluded\x12$.ermite.SetRepoMirrorExcludedRequest\x1a%.ermite.SetRepoMirrorExcludedResponse\x12R\n" + "\x0fGetMirrorStatus\x12\x1e.ermite.GetMirrorStatusRequest\x1a\x1f.ermite.GetMirrorStatusResponse\x12U\n" + "\x10ListMirrorStatus\x12\x1f.ermite.ListMirrorStatusRequest\x1a .ermite.ListMirrorStatusResponse\x12C\n" + "\n" + "SyncMirror\x12\x19.ermite.SyncMirrorRequest\x1a\x1a.ermite.SyncMirrorResponseBr\n" + "\n" + "com.ermiteB\vMirrorProtoP\x01Z\x1fbnema.dev/ermite-api/gen/ermite\xa2\x02\x03EXX\xaa\x02\x06Ermite\xca\x02\x06Ermite\xe2\x02\x12Ermite\\GPBMetadata\xea\x02\x06Ermiteb\x06proto3" var ( file_ermite_mirror_proto_rawDescOnce sync.Once file_ermite_mirror_proto_rawDescData []byte ) func file_ermite_mirror_proto_rawDescGZIP() []byte { file_ermite_mirror_proto_rawDescOnce.Do(func() { file_ermite_mirror_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_ermite_mirror_proto_rawDesc), len(file_ermite_mirror_proto_rawDesc))) }) return file_ermite_mirror_proto_rawDescData } var file_ermite_mirror_proto_enumTypes = make([]protoimpl.EnumInfo, 2) var file_ermite_mirror_proto_msgTypes = make([]protoimpl.MessageInfo, 25) var file_ermite_mirror_proto_goTypes = []any{ (MirrorSource)(0), // 0: ermite.MirrorSource (MirrorState)(0), // 1: ermite.MirrorState (*MirrorKey)(nil), // 2: ermite.MirrorKey (*GetMirrorKeyRequest)(nil), // 3: ermite.GetMirrorKeyRequest (*GetMirrorKeyResponse)(nil), // 4: ermite.GetMirrorKeyResponse (*RotateMirrorKeyRequest)(nil), // 5: ermite.RotateMirrorKeyRequest (*RotateMirrorKeyResponse)(nil), // 6: ermite.RotateMirrorKeyResponse (*MirrorConfig)(nil), // 7: ermite.MirrorConfig (*GetMirrorConfigRequest)(nil), // 8: ermite.GetMirrorConfigRequest (*GetMirrorConfigResponse)(nil), // 9: ermite.GetMirrorConfigResponse (*SetMirrorConfigRequest)(nil), // 10: ermite.SetMirrorConfigRequest (*SetMirrorConfigResponse)(nil), // 11: ermite.SetMirrorConfigResponse (*MirrorTarget)(nil), // 12: ermite.MirrorTarget (*SetRepoMirrorRequest)(nil), // 13: ermite.SetRepoMirrorRequest (*SetRepoMirrorResponse)(nil), // 14: ermite.SetRepoMirrorResponse (*RemoveRepoMirrorRequest)(nil), // 15: ermite.RemoveRepoMirrorRequest (*RemoveRepoMirrorResponse)(nil), // 16: ermite.RemoveRepoMirrorResponse (*SetRepoMirrorExcludedRequest)(nil), // 17: ermite.SetRepoMirrorExcludedRequest (*SetRepoMirrorExcludedResponse)(nil), // 18: ermite.SetRepoMirrorExcludedResponse (*MirrorStatus)(nil), // 19: ermite.MirrorStatus (*GetMirrorStatusRequest)(nil), // 20: ermite.GetMirrorStatusRequest (*GetMirrorStatusResponse)(nil), // 21: ermite.GetMirrorStatusResponse (*ListMirrorStatusRequest)(nil), // 22: ermite.ListMirrorStatusRequest (*ListMirrorStatusResponse)(nil), // 23: ermite.ListMirrorStatusResponse (*SyncMirrorRequest)(nil), // 24: ermite.SyncMirrorRequest (*SyncMirrorResult)(nil), // 25: ermite.SyncMirrorResult (*SyncMirrorResponse)(nil), // 26: ermite.SyncMirrorResponse (*timestamppb.Timestamp)(nil), // 27: google.protobuf.Timestamp } var file_ermite_mirror_proto_depIdxs = []int32{ 27, // 0: ermite.MirrorKey.created_at:type_name -> google.protobuf.Timestamp 2, // 1: ermite.GetMirrorKeyResponse.key:type_name -> ermite.MirrorKey 2, // 2: ermite.RotateMirrorKeyResponse.key:type_name -> ermite.MirrorKey 27, // 3: ermite.MirrorConfig.updated_at:type_name -> google.protobuf.Timestamp 7, // 4: ermite.GetMirrorConfigResponse.config:type_name -> ermite.MirrorConfig 7, // 5: ermite.SetMirrorConfigResponse.config:type_name -> ermite.MirrorConfig 0, // 6: ermite.MirrorTarget.source:type_name -> ermite.MirrorSource 12, // 7: ermite.SetRepoMirrorResponse.target:type_name -> ermite.MirrorTarget 12, // 8: ermite.SetRepoMirrorExcludedResponse.target:type_name -> ermite.MirrorTarget 12, // 9: ermite.MirrorStatus.target:type_name -> ermite.MirrorTarget 1, // 10: ermite.MirrorStatus.state:type_name -> ermite.MirrorState 27, // 11: ermite.MirrorStatus.last_attempt_at:type_name -> google.protobuf.Timestamp 27, // 12: ermite.MirrorStatus.last_success_at:type_name -> google.protobuf.Timestamp 27, // 13: ermite.MirrorStatus.next_retry_at:type_name -> google.protobuf.Timestamp 27, // 14: ermite.MirrorStatus.next_run_at:type_name -> google.protobuf.Timestamp 27, // 15: ermite.MirrorStatus.paused_at:type_name -> google.protobuf.Timestamp 19, // 16: ermite.GetMirrorStatusResponse.status:type_name -> ermite.MirrorStatus 19, // 17: ermite.ListMirrorStatusResponse.statuses:type_name -> ermite.MirrorStatus 19, // 18: ermite.SyncMirrorResult.status:type_name -> ermite.MirrorStatus 25, // 19: ermite.SyncMirrorResponse.results:type_name -> ermite.SyncMirrorResult 3, // 20: ermite.MirrorService.GetMirrorKey:input_type -> ermite.GetMirrorKeyRequest 5, // 21: ermite.MirrorService.RotateMirrorKey:input_type -> ermite.RotateMirrorKeyRequest 8, // 22: ermite.MirrorService.GetMirrorConfig:input_type -> ermite.GetMirrorConfigRequest 10, // 23: ermite.MirrorService.SetMirrorConfig:input_type -> ermite.SetMirrorConfigRequest 13, // 24: ermite.MirrorService.SetRepoMirror:input_type -> ermite.SetRepoMirrorRequest 15, // 25: ermite.MirrorService.RemoveRepoMirror:input_type -> ermite.RemoveRepoMirrorRequest 17, // 26: ermite.MirrorService.SetRepoMirrorExcluded:input_type -> ermite.SetRepoMirrorExcludedRequest 20, // 27: ermite.MirrorService.GetMirrorStatus:input_type -> ermite.GetMirrorStatusRequest 22, // 28: ermite.MirrorService.ListMirrorStatus:input_type -> ermite.ListMirrorStatusRequest 24, // 29: ermite.MirrorService.SyncMirror:input_type -> ermite.SyncMirrorRequest 4, // 30: ermite.MirrorService.GetMirrorKey:output_type -> ermite.GetMirrorKeyResponse 6, // 31: ermite.MirrorService.RotateMirrorKey:output_type -> ermite.RotateMirrorKeyResponse 9, // 32: ermite.MirrorService.GetMirrorConfig:output_type -> ermite.GetMirrorConfigResponse 11, // 33: ermite.MirrorService.SetMirrorConfig:output_type -> ermite.SetMirrorConfigResponse 14, // 34: ermite.MirrorService.SetRepoMirror:output_type -> ermite.SetRepoMirrorResponse 16, // 35: ermite.MirrorService.RemoveRepoMirror:output_type -> ermite.RemoveRepoMirrorResponse 18, // 36: ermite.MirrorService.SetRepoMirrorExcluded:output_type -> ermite.SetRepoMirrorExcludedResponse 21, // 37: ermite.MirrorService.GetMirrorStatus:output_type -> ermite.GetMirrorStatusResponse 23, // 38: ermite.MirrorService.ListMirrorStatus:output_type -> ermite.ListMirrorStatusResponse 26, // 39: ermite.MirrorService.SyncMirror:output_type -> ermite.SyncMirrorResponse 30, // [30:40] is the sub-list for method output_type 20, // [20:30] is the sub-list for method input_type 20, // [20:20] is the sub-list for extension type_name 20, // [20:20] is the sub-list for extension extendee 0, // [0:20] is the sub-list for field type_name } func init() { file_ermite_mirror_proto_init() } func file_ermite_mirror_proto_init() { if File_ermite_mirror_proto != nil { return } file_ermite_mirror_proto_msgTypes[8].OneofWrappers = []any{} file_ermite_mirror_proto_msgTypes[11].OneofWrappers = []any{} type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: unsafe.Slice(unsafe.StringData(file_ermite_mirror_proto_rawDesc), len(file_ermite_mirror_proto_rawDesc)), NumEnums: 2, NumMessages: 25, NumExtensions: 0, NumServices: 1, }, GoTypes: file_ermite_mirror_proto_goTypes, DependencyIndexes: file_ermite_mirror_proto_depIdxs, EnumInfos: file_ermite_mirror_proto_enumTypes, MessageInfos: file_ermite_mirror_proto_msgTypes, }.Build() File_ermite_mirror_proto = out.File file_ermite_mirror_proto_goTypes = nil file_ermite_mirror_proto_depIdxs = nil }