Documentation ¶
Overview ¶
Package scc is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Constants
- Variables
- func RegisterSourceCodeCtlHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterSourceCodeCtlHandlerClient(ctx context.Context, mux *runtime.ServeMux, client SourceCodeCtlClient) error
- func RegisterSourceCodeCtlHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterSourceCodeCtlHandlerServer(ctx context.Context, mux *runtime.ServeMux, server SourceCodeCtlServer) error
- func RegisterSourceCodeCtlServer(s grpc.ServiceRegistrar, srv SourceCodeCtlServer)
- type CreateRepoRequest
- func (*CreateRepoRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateRepoRequest) GetConnectionId() string
- func (x *CreateRepoRequest) GetName() string
- func (x *CreateRepoRequest) GetOrg() string
- func (x *CreateRepoRequest) GetTemplate() string
- func (*CreateRepoRequest) ProtoMessage()
- func (x *CreateRepoRequest) ProtoReflect() protoreflect.Message
- func (x *CreateRepoRequest) Reset()
- func (x *CreateRepoRequest) String() string
- type CreateRepoResponse
- type GetProfileRequest
- func (*GetProfileRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetProfileRequest) GetConnectionId() string
- func (*GetProfileRequest) ProtoMessage()
- func (x *GetProfileRequest) ProtoReflect() protoreflect.Message
- func (x *GetProfileRequest) Reset()
- func (x *GetProfileRequest) String() string
- type GetProfileResponse
- func (*GetProfileResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetProfileResponse) GetRepos() []*Repo
- func (x *GetProfileResponse) GetUsername() string
- func (*GetProfileResponse) ProtoMessage()
- func (x *GetProfileResponse) ProtoReflect() protoreflect.Message
- func (x *GetProfileResponse) Reset()
- func (x *GetProfileResponse) String() string
- type GetRepoRequest
- func (*GetRepoRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetRepoRequest) GetConnectionId() string
- func (x *GetRepoRequest) GetName() string
- func (x *GetRepoRequest) GetOrg() string
- func (*GetRepoRequest) ProtoMessage()
- func (x *GetRepoRequest) ProtoReflect() protoreflect.Message
- func (x *GetRepoRequest) Reset()
- func (x *GetRepoRequest) String() string
- type GetRepoResponse
- type IsRepoConnectedRequest
- func (*IsRepoConnectedRequest) Descriptor() ([]byte, []int)deprecated
- func (x *IsRepoConnectedRequest) GetConnectionId() string
- func (x *IsRepoConnectedRequest) GetOrg() string
- func (x *IsRepoConnectedRequest) GetRepo() string
- func (*IsRepoConnectedRequest) ProtoMessage()
- func (x *IsRepoConnectedRequest) ProtoReflect() protoreflect.Message
- func (x *IsRepoConnectedRequest) Reset()
- func (x *IsRepoConnectedRequest) String() string
- type IsRepoConnectedResponse
- func (*IsRepoConnectedResponse) Descriptor() ([]byte, []int)deprecated
- func (x *IsRepoConnectedResponse) GetConnected() bool
- func (*IsRepoConnectedResponse) ProtoMessage()
- func (x *IsRepoConnectedResponse) ProtoReflect() protoreflect.Message
- func (x *IsRepoConnectedResponse) Reset()
- func (x *IsRepoConnectedResponse) String() string
- type ListOrgRequest
- type ListOrgResponse
- func (*ListOrgResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListOrgResponse) GetOrganizations() []*v1.SccOrg
- func (x *ListOrgResponse) GetOrgs() []string
- func (*ListOrgResponse) ProtoMessage()
- func (x *ListOrgResponse) ProtoReflect() protoreflect.Message
- func (x *ListOrgResponse) Reset()
- func (x *ListOrgResponse) String() string
- type ListRepoRequest
- func (*ListRepoRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListRepoRequest) GetConnectionId() string
- func (x *ListRepoRequest) GetOrg() string
- func (*ListRepoRequest) ProtoMessage()
- func (x *ListRepoRequest) ProtoReflect() protoreflect.Message
- func (x *ListRepoRequest) Reset()
- func (x *ListRepoRequest) String() string
- type ListRepoResponse
- type ListTemplatesRequest
- func (*ListTemplatesRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListTemplatesRequest) GetConnectionId() string
- func (x *ListTemplatesRequest) GetTag() string
- func (*ListTemplatesRequest) ProtoMessage()
- func (x *ListTemplatesRequest) ProtoReflect() protoreflect.Message
- func (x *ListTemplatesRequest) Reset()
- func (x *ListTemplatesRequest) String() string
- type ListTemplatesResponse
- func (*ListTemplatesResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListTemplatesResponse) GetRepos() []*Repo
- func (*ListTemplatesResponse) ProtoMessage()
- func (x *ListTemplatesResponse) ProtoReflect() protoreflect.Message
- func (x *ListTemplatesResponse) Reset()
- func (x *ListTemplatesResponse) String() string
- type Repo
- func (*Repo) Descriptor() ([]byte, []int)deprecated
- func (x *Repo) GetCiUrl() string
- func (x *Repo) GetName() string
- func (x *Repo) GetOrg() string
- func (x *Repo) GetUrl() string
- func (*Repo) ProtoMessage()
- func (x *Repo) ProtoReflect() protoreflect.Message
- func (x *Repo) Reset()
- func (x *Repo) String() string
- type SourceCodeCtlClient
- type SourceCodeCtlServer
- type UnimplementedSourceCodeCtlServer
- func (UnimplementedSourceCodeCtlServer) CreateRepo(context.Context, *CreateRepoRequest) (*CreateRepoResponse, error)
- func (UnimplementedSourceCodeCtlServer) GetProfile(context.Context, *GetProfileRequest) (*GetProfileResponse, error)
- func (UnimplementedSourceCodeCtlServer) GetRepo(context.Context, *GetRepoRequest) (*GetRepoResponse, error)
- func (UnimplementedSourceCodeCtlServer) IsRepoConnected(context.Context, *IsRepoConnectedRequest) (*IsRepoConnectedResponse, error)
- func (UnimplementedSourceCodeCtlServer) ListOrg(context.Context, *ListOrgRequest) (*ListOrgResponse, error)
- func (UnimplementedSourceCodeCtlServer) ListRepo(context.Context, *ListRepoRequest) (*ListRepoResponse, error)
- func (UnimplementedSourceCodeCtlServer) ListTemplates(context.Context, *ListTemplatesRequest) (*ListTemplatesResponse, error)
- type UnsafeSourceCodeCtlServer
Constants ¶
const ( SourceCodeCtl_ListOrg_FullMethodName = "/aserto.tenant.scc.v1.SourceCodeCtl/ListOrg" SourceCodeCtl_ListRepo_FullMethodName = "/aserto.tenant.scc.v1.SourceCodeCtl/ListRepo" SourceCodeCtl_GetRepo_FullMethodName = "/aserto.tenant.scc.v1.SourceCodeCtl/GetRepo" SourceCodeCtl_CreateRepo_FullMethodName = "/aserto.tenant.scc.v1.SourceCodeCtl/CreateRepo" SourceCodeCtl_ListTemplates_FullMethodName = "/aserto.tenant.scc.v1.SourceCodeCtl/ListTemplates" SourceCodeCtl_GetProfile_FullMethodName = "/aserto.tenant.scc.v1.SourceCodeCtl/GetProfile" SourceCodeCtl_IsRepoConnected_FullMethodName = "/aserto.tenant.scc.v1.SourceCodeCtl/IsRepoConnected" )
Variables ¶
var File_aserto_tenant_scc_v1_scc_proto protoreflect.FileDescriptor
var SourceCodeCtl_ServiceDesc = grpc.ServiceDesc{ ServiceName: "aserto.tenant.scc.v1.SourceCodeCtl", HandlerType: (*SourceCodeCtlServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "ListOrg", Handler: _SourceCodeCtl_ListOrg_Handler, }, { MethodName: "ListRepo", Handler: _SourceCodeCtl_ListRepo_Handler, }, { MethodName: "GetRepo", Handler: _SourceCodeCtl_GetRepo_Handler, }, { MethodName: "CreateRepo", Handler: _SourceCodeCtl_CreateRepo_Handler, }, { MethodName: "ListTemplates", Handler: _SourceCodeCtl_ListTemplates_Handler, }, { MethodName: "GetProfile", Handler: _SourceCodeCtl_GetProfile_Handler, }, { MethodName: "IsRepoConnected", Handler: _SourceCodeCtl_IsRepoConnected_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "aserto/tenant/scc/v1/scc.proto", }
SourceCodeCtl_ServiceDesc is the grpc.ServiceDesc for SourceCodeCtl service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterSourceCodeCtlHandler ¶
func RegisterSourceCodeCtlHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
RegisterSourceCodeCtlHandler registers the http handlers for service SourceCodeCtl to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterSourceCodeCtlHandlerClient ¶
func RegisterSourceCodeCtlHandlerClient(ctx context.Context, mux *runtime.ServeMux, client SourceCodeCtlClient) error
RegisterSourceCodeCtlHandlerClient registers the http handlers for service SourceCodeCtl to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "SourceCodeCtlClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "SourceCodeCtlClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "SourceCodeCtlClient" to call the correct interceptors. This client ignores the HTTP middlewares.
func RegisterSourceCodeCtlHandlerFromEndpoint ¶
func RegisterSourceCodeCtlHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterSourceCodeCtlHandlerFromEndpoint is same as RegisterSourceCodeCtlHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterSourceCodeCtlHandlerServer ¶
func RegisterSourceCodeCtlHandlerServer(ctx context.Context, mux *runtime.ServeMux, server SourceCodeCtlServer) error
RegisterSourceCodeCtlHandlerServer registers the http handlers for service SourceCodeCtl to "mux". UnaryRPC :call SourceCodeCtlServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterSourceCodeCtlHandlerFromEndpoint instead. GRPC interceptors will not work for this type of registration. To use interceptors, you must use the "runtime.WithMiddlewares" option in the "runtime.NewServeMux" call.
func RegisterSourceCodeCtlServer ¶
func RegisterSourceCodeCtlServer(s grpc.ServiceRegistrar, srv SourceCodeCtlServer)
Types ¶
type CreateRepoRequest ¶
type CreateRepoRequest struct { ConnectionId string `protobuf:"bytes,1,opt,name=connection_id,json=connectionId,proto3" json:"connection_id,omitempty"` Org string `protobuf:"bytes,2,opt,name=org,proto3" json:"org,omitempty"` Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` Template string `protobuf:"bytes,4,opt,name=template,proto3" json:"template,omitempty"` // contains filtered or unexported fields }
func (*CreateRepoRequest) Descriptor
deprecated
func (*CreateRepoRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateRepoRequest.ProtoReflect.Descriptor instead.
func (*CreateRepoRequest) GetConnectionId ¶
func (x *CreateRepoRequest) GetConnectionId() string
func (*CreateRepoRequest) GetName ¶ added in v0.8.0
func (x *CreateRepoRequest) GetName() string
func (*CreateRepoRequest) GetOrg ¶ added in v0.8.0
func (x *CreateRepoRequest) GetOrg() string
func (*CreateRepoRequest) GetTemplate ¶
func (x *CreateRepoRequest) GetTemplate() string
func (*CreateRepoRequest) ProtoMessage ¶
func (*CreateRepoRequest) ProtoMessage()
func (*CreateRepoRequest) ProtoReflect ¶
func (x *CreateRepoRequest) ProtoReflect() protoreflect.Message
func (*CreateRepoRequest) Reset ¶
func (x *CreateRepoRequest) Reset()
func (*CreateRepoRequest) String ¶
func (x *CreateRepoRequest) String() string
type CreateRepoResponse ¶
type CreateRepoResponse struct {
// contains filtered or unexported fields
}
func (*CreateRepoResponse) Descriptor
deprecated
func (*CreateRepoResponse) Descriptor() ([]byte, []int)
Deprecated: Use CreateRepoResponse.ProtoReflect.Descriptor instead.
func (*CreateRepoResponse) ProtoMessage ¶
func (*CreateRepoResponse) ProtoMessage()
func (*CreateRepoResponse) ProtoReflect ¶
func (x *CreateRepoResponse) ProtoReflect() protoreflect.Message
func (*CreateRepoResponse) Reset ¶
func (x *CreateRepoResponse) Reset()
func (*CreateRepoResponse) String ¶
func (x *CreateRepoResponse) String() string
type GetProfileRequest ¶
type GetProfileRequest struct { ConnectionId string `protobuf:"bytes,1,opt,name=connection_id,json=connectionId,proto3" json:"connection_id,omitempty"` // contains filtered or unexported fields }
func (*GetProfileRequest) Descriptor
deprecated
func (*GetProfileRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetProfileRequest.ProtoReflect.Descriptor instead.
func (*GetProfileRequest) GetConnectionId ¶
func (x *GetProfileRequest) GetConnectionId() string
func (*GetProfileRequest) ProtoMessage ¶
func (*GetProfileRequest) ProtoMessage()
func (*GetProfileRequest) ProtoReflect ¶
func (x *GetProfileRequest) ProtoReflect() protoreflect.Message
func (*GetProfileRequest) Reset ¶
func (x *GetProfileRequest) Reset()
func (*GetProfileRequest) String ¶
func (x *GetProfileRequest) String() string
type GetProfileResponse ¶
type GetProfileResponse struct { Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"` Repos []*Repo `protobuf:"bytes,2,rep,name=repos,proto3" json:"repos,omitempty"` // contains filtered or unexported fields }
func (*GetProfileResponse) Descriptor
deprecated
func (*GetProfileResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetProfileResponse.ProtoReflect.Descriptor instead.
func (*GetProfileResponse) GetRepos ¶
func (x *GetProfileResponse) GetRepos() []*Repo
func (*GetProfileResponse) GetUsername ¶
func (x *GetProfileResponse) GetUsername() string
func (*GetProfileResponse) ProtoMessage ¶
func (*GetProfileResponse) ProtoMessage()
func (*GetProfileResponse) ProtoReflect ¶
func (x *GetProfileResponse) ProtoReflect() protoreflect.Message
func (*GetProfileResponse) Reset ¶
func (x *GetProfileResponse) Reset()
func (*GetProfileResponse) String ¶
func (x *GetProfileResponse) String() string
type GetRepoRequest ¶ added in v0.8.0
type GetRepoRequest struct { ConnectionId string `protobuf:"bytes,1,opt,name=connection_id,json=connectionId,proto3" json:"connection_id,omitempty"` Org string `protobuf:"bytes,2,opt,name=org,proto3" json:"org,omitempty"` Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
func (*GetRepoRequest) Descriptor
deprecated
added in
v0.8.0
func (*GetRepoRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetRepoRequest.ProtoReflect.Descriptor instead.
func (*GetRepoRequest) GetConnectionId ¶ added in v0.8.0
func (x *GetRepoRequest) GetConnectionId() string
func (*GetRepoRequest) GetName ¶ added in v0.8.0
func (x *GetRepoRequest) GetName() string
func (*GetRepoRequest) GetOrg ¶ added in v0.8.0
func (x *GetRepoRequest) GetOrg() string
func (*GetRepoRequest) ProtoMessage ¶ added in v0.8.0
func (*GetRepoRequest) ProtoMessage()
func (*GetRepoRequest) ProtoReflect ¶ added in v0.8.0
func (x *GetRepoRequest) ProtoReflect() protoreflect.Message
func (*GetRepoRequest) Reset ¶ added in v0.8.0
func (x *GetRepoRequest) Reset()
func (*GetRepoRequest) String ¶ added in v0.8.0
func (x *GetRepoRequest) String() string
type GetRepoResponse ¶ added in v0.8.0
type GetRepoResponse struct { Repo *Repo `protobuf:"bytes,1,opt,name=repo,proto3" json:"repo,omitempty"` // contains filtered or unexported fields }
func (*GetRepoResponse) Descriptor
deprecated
added in
v0.8.0
func (*GetRepoResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetRepoResponse.ProtoReflect.Descriptor instead.
func (*GetRepoResponse) GetRepo ¶ added in v0.8.0
func (x *GetRepoResponse) GetRepo() *Repo
func (*GetRepoResponse) ProtoMessage ¶ added in v0.8.0
func (*GetRepoResponse) ProtoMessage()
func (*GetRepoResponse) ProtoReflect ¶ added in v0.8.0
func (x *GetRepoResponse) ProtoReflect() protoreflect.Message
func (*GetRepoResponse) Reset ¶ added in v0.8.0
func (x *GetRepoResponse) Reset()
func (*GetRepoResponse) String ¶ added in v0.8.0
func (x *GetRepoResponse) String() string
type IsRepoConnectedRequest ¶
type IsRepoConnectedRequest struct { ConnectionId string `protobuf:"bytes,1,opt,name=connection_id,json=connectionId,proto3" json:"connection_id,omitempty"` Org string `protobuf:"bytes,2,opt,name=org,proto3" json:"org,omitempty"` Repo string `protobuf:"bytes,3,opt,name=repo,proto3" json:"repo,omitempty"` // contains filtered or unexported fields }
func (*IsRepoConnectedRequest) Descriptor
deprecated
func (*IsRepoConnectedRequest) Descriptor() ([]byte, []int)
Deprecated: Use IsRepoConnectedRequest.ProtoReflect.Descriptor instead.
func (*IsRepoConnectedRequest) GetConnectionId ¶
func (x *IsRepoConnectedRequest) GetConnectionId() string
func (*IsRepoConnectedRequest) GetOrg ¶ added in v0.8.0
func (x *IsRepoConnectedRequest) GetOrg() string
func (*IsRepoConnectedRequest) GetRepo ¶
func (x *IsRepoConnectedRequest) GetRepo() string
func (*IsRepoConnectedRequest) ProtoMessage ¶
func (*IsRepoConnectedRequest) ProtoMessage()
func (*IsRepoConnectedRequest) ProtoReflect ¶
func (x *IsRepoConnectedRequest) ProtoReflect() protoreflect.Message
func (*IsRepoConnectedRequest) Reset ¶
func (x *IsRepoConnectedRequest) Reset()
func (*IsRepoConnectedRequest) String ¶
func (x *IsRepoConnectedRequest) String() string
type IsRepoConnectedResponse ¶
type IsRepoConnectedResponse struct { Connected bool `protobuf:"varint,1,opt,name=connected,proto3" json:"connected,omitempty"` // contains filtered or unexported fields }
func (*IsRepoConnectedResponse) Descriptor
deprecated
func (*IsRepoConnectedResponse) Descriptor() ([]byte, []int)
Deprecated: Use IsRepoConnectedResponse.ProtoReflect.Descriptor instead.
func (*IsRepoConnectedResponse) GetConnected ¶
func (x *IsRepoConnectedResponse) GetConnected() bool
func (*IsRepoConnectedResponse) ProtoMessage ¶
func (*IsRepoConnectedResponse) ProtoMessage()
func (*IsRepoConnectedResponse) ProtoReflect ¶
func (x *IsRepoConnectedResponse) ProtoReflect() protoreflect.Message
func (*IsRepoConnectedResponse) Reset ¶
func (x *IsRepoConnectedResponse) Reset()
func (*IsRepoConnectedResponse) String ¶
func (x *IsRepoConnectedResponse) String() string
type ListOrgRequest ¶
type ListOrgRequest struct { ConnectionId string `protobuf:"bytes,1,opt,name=connection_id,json=connectionId,proto3" json:"connection_id,omitempty"` // contains filtered or unexported fields }
func (*ListOrgRequest) Descriptor
deprecated
func (*ListOrgRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListOrgRequest.ProtoReflect.Descriptor instead.
func (*ListOrgRequest) GetConnectionId ¶
func (x *ListOrgRequest) GetConnectionId() string
func (*ListOrgRequest) ProtoMessage ¶
func (*ListOrgRequest) ProtoMessage()
func (*ListOrgRequest) ProtoReflect ¶
func (x *ListOrgRequest) ProtoReflect() protoreflect.Message
func (*ListOrgRequest) Reset ¶
func (x *ListOrgRequest) Reset()
func (*ListOrgRequest) String ¶
func (x *ListOrgRequest) String() string
type ListOrgResponse ¶
type ListOrgResponse struct { Orgs []string `protobuf:"bytes,1,rep,name=orgs,proto3" json:"orgs,omitempty"` // deprecated Organizations []*v1.SccOrg `protobuf:"bytes,2,rep,name=organizations,proto3" json:"organizations,omitempty"` // contains filtered or unexported fields }
func (*ListOrgResponse) Descriptor
deprecated
func (*ListOrgResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListOrgResponse.ProtoReflect.Descriptor instead.
func (*ListOrgResponse) GetOrganizations ¶ added in v0.8.8
func (x *ListOrgResponse) GetOrganizations() []*v1.SccOrg
func (*ListOrgResponse) GetOrgs ¶
func (x *ListOrgResponse) GetOrgs() []string
func (*ListOrgResponse) ProtoMessage ¶
func (*ListOrgResponse) ProtoMessage()
func (*ListOrgResponse) ProtoReflect ¶
func (x *ListOrgResponse) ProtoReflect() protoreflect.Message
func (*ListOrgResponse) Reset ¶
func (x *ListOrgResponse) Reset()
func (*ListOrgResponse) String ¶
func (x *ListOrgResponse) String() string
type ListRepoRequest ¶
type ListRepoRequest struct { ConnectionId string `protobuf:"bytes,1,opt,name=connection_id,json=connectionId,proto3" json:"connection_id,omitempty"` Org string `protobuf:"bytes,2,opt,name=org,proto3" json:"org,omitempty"` // contains filtered or unexported fields }
func (*ListRepoRequest) Descriptor
deprecated
func (*ListRepoRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListRepoRequest.ProtoReflect.Descriptor instead.
func (*ListRepoRequest) GetConnectionId ¶
func (x *ListRepoRequest) GetConnectionId() string
func (*ListRepoRequest) GetOrg ¶ added in v0.8.0
func (x *ListRepoRequest) GetOrg() string
func (*ListRepoRequest) ProtoMessage ¶
func (*ListRepoRequest) ProtoMessage()
func (*ListRepoRequest) ProtoReflect ¶
func (x *ListRepoRequest) ProtoReflect() protoreflect.Message
func (*ListRepoRequest) Reset ¶
func (x *ListRepoRequest) Reset()
func (*ListRepoRequest) String ¶
func (x *ListRepoRequest) String() string
type ListRepoResponse ¶
type ListRepoResponse struct { Repos []*Repo `protobuf:"bytes,1,rep,name=repos,proto3" json:"repos,omitempty"` // contains filtered or unexported fields }
func (*ListRepoResponse) Descriptor
deprecated
func (*ListRepoResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListRepoResponse.ProtoReflect.Descriptor instead.
func (*ListRepoResponse) GetRepos ¶
func (x *ListRepoResponse) GetRepos() []*Repo
func (*ListRepoResponse) ProtoMessage ¶
func (*ListRepoResponse) ProtoMessage()
func (*ListRepoResponse) ProtoReflect ¶
func (x *ListRepoResponse) ProtoReflect() protoreflect.Message
func (*ListRepoResponse) Reset ¶
func (x *ListRepoResponse) Reset()
func (*ListRepoResponse) String ¶
func (x *ListRepoResponse) String() string
type ListTemplatesRequest ¶
type ListTemplatesRequest struct { ConnectionId string `protobuf:"bytes,1,opt,name=connection_id,json=connectionId,proto3" json:"connection_id,omitempty"` Tag *string `protobuf:"bytes,2,opt,name=tag,proto3,oneof" json:"tag,omitempty"` // contains filtered or unexported fields }
func (*ListTemplatesRequest) Descriptor
deprecated
func (*ListTemplatesRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListTemplatesRequest.ProtoReflect.Descriptor instead.
func (*ListTemplatesRequest) GetConnectionId ¶
func (x *ListTemplatesRequest) GetConnectionId() string
func (*ListTemplatesRequest) GetTag ¶ added in v0.8.7
func (x *ListTemplatesRequest) GetTag() string
func (*ListTemplatesRequest) ProtoMessage ¶
func (*ListTemplatesRequest) ProtoMessage()
func (*ListTemplatesRequest) ProtoReflect ¶
func (x *ListTemplatesRequest) ProtoReflect() protoreflect.Message
func (*ListTemplatesRequest) Reset ¶
func (x *ListTemplatesRequest) Reset()
func (*ListTemplatesRequest) String ¶
func (x *ListTemplatesRequest) String() string
type ListTemplatesResponse ¶
type ListTemplatesResponse struct { Repos []*Repo `protobuf:"bytes,1,rep,name=repos,proto3" json:"repos,omitempty"` // contains filtered or unexported fields }
func (*ListTemplatesResponse) Descriptor
deprecated
func (*ListTemplatesResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListTemplatesResponse.ProtoReflect.Descriptor instead.
func (*ListTemplatesResponse) GetRepos ¶
func (x *ListTemplatesResponse) GetRepos() []*Repo
func (*ListTemplatesResponse) ProtoMessage ¶
func (*ListTemplatesResponse) ProtoMessage()
func (*ListTemplatesResponse) ProtoReflect ¶
func (x *ListTemplatesResponse) ProtoReflect() protoreflect.Message
func (*ListTemplatesResponse) Reset ¶
func (x *ListTemplatesResponse) Reset()
func (*ListTemplatesResponse) String ¶
func (x *ListTemplatesResponse) String() string
type Repo ¶
type Repo struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Url string `protobuf:"bytes,2,opt,name=url,proto3" json:"url,omitempty"` Org string `protobuf:"bytes,3,opt,name=org,proto3" json:"org,omitempty"` CiUrl string `protobuf:"bytes,4,opt,name=ci_url,json=ciUrl,proto3" json:"ci_url,omitempty"` // contains filtered or unexported fields }
func (*Repo) Descriptor
deprecated
func (*Repo) ProtoMessage ¶
func (*Repo) ProtoMessage()
func (*Repo) ProtoReflect ¶
func (x *Repo) ProtoReflect() protoreflect.Message
type SourceCodeCtlClient ¶
type SourceCodeCtlClient interface { ListOrg(ctx context.Context, in *ListOrgRequest, opts ...grpc.CallOption) (*ListOrgResponse, error) ListRepo(ctx context.Context, in *ListRepoRequest, opts ...grpc.CallOption) (*ListRepoResponse, error) GetRepo(ctx context.Context, in *GetRepoRequest, opts ...grpc.CallOption) (*GetRepoResponse, error) CreateRepo(ctx context.Context, in *CreateRepoRequest, opts ...grpc.CallOption) (*CreateRepoResponse, error) ListTemplates(ctx context.Context, in *ListTemplatesRequest, opts ...grpc.CallOption) (*ListTemplatesResponse, error) GetProfile(ctx context.Context, in *GetProfileRequest, opts ...grpc.CallOption) (*GetProfileResponse, error) IsRepoConnected(ctx context.Context, in *IsRepoConnectedRequest, opts ...grpc.CallOption) (*IsRepoConnectedResponse, error) }
SourceCodeCtlClient is the client API for SourceCodeCtl service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewSourceCodeCtlClient ¶
func NewSourceCodeCtlClient(cc grpc.ClientConnInterface) SourceCodeCtlClient
type SourceCodeCtlServer ¶
type SourceCodeCtlServer interface { ListOrg(context.Context, *ListOrgRequest) (*ListOrgResponse, error) ListRepo(context.Context, *ListRepoRequest) (*ListRepoResponse, error) GetRepo(context.Context, *GetRepoRequest) (*GetRepoResponse, error) CreateRepo(context.Context, *CreateRepoRequest) (*CreateRepoResponse, error) ListTemplates(context.Context, *ListTemplatesRequest) (*ListTemplatesResponse, error) GetProfile(context.Context, *GetProfileRequest) (*GetProfileResponse, error) IsRepoConnected(context.Context, *IsRepoConnectedRequest) (*IsRepoConnectedResponse, error) }
SourceCodeCtlServer is the server API for SourceCodeCtl service. All implementations should embed UnimplementedSourceCodeCtlServer for forward compatibility.
type UnimplementedSourceCodeCtlServer ¶
type UnimplementedSourceCodeCtlServer struct{}
UnimplementedSourceCodeCtlServer should be embedded to have forward compatible implementations.
NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.
func (UnimplementedSourceCodeCtlServer) CreateRepo ¶
func (UnimplementedSourceCodeCtlServer) CreateRepo(context.Context, *CreateRepoRequest) (*CreateRepoResponse, error)
func (UnimplementedSourceCodeCtlServer) GetProfile ¶
func (UnimplementedSourceCodeCtlServer) GetProfile(context.Context, *GetProfileRequest) (*GetProfileResponse, error)
func (UnimplementedSourceCodeCtlServer) GetRepo ¶ added in v0.8.0
func (UnimplementedSourceCodeCtlServer) GetRepo(context.Context, *GetRepoRequest) (*GetRepoResponse, error)
func (UnimplementedSourceCodeCtlServer) IsRepoConnected ¶
func (UnimplementedSourceCodeCtlServer) IsRepoConnected(context.Context, *IsRepoConnectedRequest) (*IsRepoConnectedResponse, error)
func (UnimplementedSourceCodeCtlServer) ListOrg ¶
func (UnimplementedSourceCodeCtlServer) ListOrg(context.Context, *ListOrgRequest) (*ListOrgResponse, error)
func (UnimplementedSourceCodeCtlServer) ListRepo ¶
func (UnimplementedSourceCodeCtlServer) ListRepo(context.Context, *ListRepoRequest) (*ListRepoResponse, error)
func (UnimplementedSourceCodeCtlServer) ListTemplates ¶
func (UnimplementedSourceCodeCtlServer) ListTemplates(context.Context, *ListTemplatesRequest) (*ListTemplatesResponse, error)
type UnsafeSourceCodeCtlServer ¶
type UnsafeSourceCodeCtlServer interface {
// contains filtered or unexported methods
}
UnsafeSourceCodeCtlServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to SourceCodeCtlServer will result in compilation errors.