scc

package
v0.8.47 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2022 License: Apache-2.0 Imports: 19 Imported by: 4

Documentation

Overview

Package scc is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

This section is empty.

Variables

View Source
var File_aserto_tenant_scc_v1_scc_proto protoreflect.FileDescriptor
View Source
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.

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.

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) Descriptor() ([]byte, []int)

Deprecated: Use Repo.ProtoReflect.Descriptor instead.

func (*Repo) GetCiUrl added in v0.8.10

func (x *Repo) GetCiUrl() string

func (*Repo) GetName

func (x *Repo) GetName() string

func (*Repo) GetOrg added in v0.8.0

func (x *Repo) GetOrg() string

func (*Repo) GetUrl

func (x *Repo) GetUrl() string

func (*Repo) ProtoMessage

func (*Repo) ProtoMessage()

func (*Repo) ProtoReflect

func (x *Repo) ProtoReflect() protoreflect.Message

func (*Repo) Reset

func (x *Repo) Reset()

func (*Repo) String

func (x *Repo) String() string

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.

type SourceCodeCtlServer

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.

func (UnimplementedSourceCodeCtlServer) CreateRepo

func (UnimplementedSourceCodeCtlServer) GetProfile

func (UnimplementedSourceCodeCtlServer) GetRepo added in v0.8.0

func (UnimplementedSourceCodeCtlServer) IsRepoConnected

func (UnimplementedSourceCodeCtlServer) ListOrg

func (UnimplementedSourceCodeCtlServer) ListRepo

func (UnimplementedSourceCodeCtlServer) ListTemplates

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.

Jump to

Keyboard shortcuts

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