Documentation ¶
Overview ¶
Package applications is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Variables
- func RegisterApplicationsHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterApplicationsHandlerClient(ctx context.Context, mux *runtime.ServeMux, client ApplicationsClient) error
- func RegisterApplicationsHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterApplicationsHandlerServer(ctx context.Context, mux *runtime.ServeMux, server ApplicationsServer) error
- func RegisterApplicationsServer(s grpc.ServiceRegistrar, srv ApplicationsServer)
- type ApplicationsClient
- type ApplicationsServer
- type AuthenticateRequest
- func (*AuthenticateRequest) Descriptor() ([]byte, []int)deprecated
- func (x *AuthenticateRequest) GetAccessToken() string
- func (x *AuthenticateRequest) GetProviderName() string
- func (*AuthenticateRequest) ProtoMessage()
- func (x *AuthenticateRequest) ProtoReflect() protoreflect.Message
- func (x *AuthenticateRequest) Reset()
- func (x *AuthenticateRequest) String() string
- type AuthenticateResponse
- func (*AuthenticateResponse) Descriptor() ([]byte, []int)deprecated
- func (x *AuthenticateResponse) GetToken() string
- func (*AuthenticateResponse) ProtoMessage()
- func (x *AuthenticateResponse) ProtoReflect() protoreflect.Message
- func (x *AuthenticateResponse) Reset()
- func (x *AuthenticateResponse) String() string
- type AuthorizeGitlabRequest
- func (*AuthorizeGitlabRequest) Descriptor() ([]byte, []int)deprecated
- func (x *AuthorizeGitlabRequest) GetCode() string
- func (x *AuthorizeGitlabRequest) GetRedirectUri() string
- func (*AuthorizeGitlabRequest) ProtoMessage()
- func (x *AuthorizeGitlabRequest) ProtoReflect() protoreflect.Message
- func (x *AuthorizeGitlabRequest) Reset()
- func (x *AuthorizeGitlabRequest) String() string
- type AuthorizeGitlabResponse
- func (*AuthorizeGitlabResponse) Descriptor() ([]byte, []int)deprecated
- func (x *AuthorizeGitlabResponse) GetToken() string
- func (*AuthorizeGitlabResponse) ProtoMessage()
- func (x *AuthorizeGitlabResponse) ProtoReflect() protoreflect.Message
- func (x *AuthorizeGitlabResponse) Reset()
- func (x *AuthorizeGitlabResponse) String() string
- type GetGithubAuthStatusRequest
- func (*GetGithubAuthStatusRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetGithubAuthStatusRequest) GetDeviceCode() string
- func (*GetGithubAuthStatusRequest) ProtoMessage()
- func (x *GetGithubAuthStatusRequest) ProtoReflect() protoreflect.Message
- func (x *GetGithubAuthStatusRequest) Reset()
- func (x *GetGithubAuthStatusRequest) String() string
- type GetGithubAuthStatusResponse
- func (*GetGithubAuthStatusResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetGithubAuthStatusResponse) GetAccessToken() string
- func (x *GetGithubAuthStatusResponse) GetError() string
- func (*GetGithubAuthStatusResponse) ProtoMessage()
- func (x *GetGithubAuthStatusResponse) ProtoReflect() protoreflect.Message
- func (x *GetGithubAuthStatusResponse) Reset()
- func (x *GetGithubAuthStatusResponse) String() string
- type GetGithubDeviceCodeRequest
- type GetGithubDeviceCodeResponse
- func (*GetGithubDeviceCodeResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetGithubDeviceCodeResponse) GetDeviceCode() string
- func (x *GetGithubDeviceCodeResponse) GetInterval() int32
- func (x *GetGithubDeviceCodeResponse) GetUserCode() string
- func (x *GetGithubDeviceCodeResponse) GetValidationURI() string
- func (*GetGithubDeviceCodeResponse) ProtoMessage()
- func (x *GetGithubDeviceCodeResponse) ProtoReflect() protoreflect.Message
- func (x *GetGithubDeviceCodeResponse) Reset()
- func (x *GetGithubDeviceCodeResponse) String() string
- type GetGitlabAuthURLRequest
- func (*GetGitlabAuthURLRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetGitlabAuthURLRequest) GetRedirectUri() string
- func (*GetGitlabAuthURLRequest) ProtoMessage()
- func (x *GetGitlabAuthURLRequest) ProtoReflect() protoreflect.Message
- func (x *GetGitlabAuthURLRequest) Reset()
- func (x *GetGitlabAuthURLRequest) String() string
- type GetGitlabAuthURLResponse
- func (*GetGitlabAuthURLResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetGitlabAuthURLResponse) GetUrl() string
- func (*GetGitlabAuthURLResponse) ProtoMessage()
- func (x *GetGitlabAuthURLResponse) ProtoReflect() protoreflect.Message
- func (x *GetGitlabAuthURLResponse) Reset()
- func (x *GetGitlabAuthURLResponse) String() string
- type GitProvider
- func (GitProvider) Descriptor() protoreflect.EnumDescriptor
- func (x GitProvider) Enum() *GitProvider
- func (GitProvider) EnumDescriptor() ([]byte, []int)deprecated
- func (x GitProvider) Number() protoreflect.EnumNumber
- func (x GitProvider) String() string
- func (GitProvider) Type() protoreflect.EnumType
- type ParseRepoURLRequest
- func (*ParseRepoURLRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ParseRepoURLRequest) GetUrl() string
- func (*ParseRepoURLRequest) ProtoMessage()
- func (x *ParseRepoURLRequest) ProtoReflect() protoreflect.Message
- func (x *ParseRepoURLRequest) Reset()
- func (x *ParseRepoURLRequest) String() string
- type ParseRepoURLResponse
- func (*ParseRepoURLResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ParseRepoURLResponse) GetName() string
- func (x *ParseRepoURLResponse) GetOwner() string
- func (x *ParseRepoURLResponse) GetProvider() GitProvider
- func (*ParseRepoURLResponse) ProtoMessage()
- func (x *ParseRepoURLResponse) ProtoReflect() protoreflect.Message
- func (x *ParseRepoURLResponse) Reset()
- func (x *ParseRepoURLResponse) String() string
- type UnimplementedApplicationsServer
- func (UnimplementedApplicationsServer) Authenticate(context.Context, *AuthenticateRequest) (*AuthenticateResponse, error)
- func (UnimplementedApplicationsServer) AuthorizeGitlab(context.Context, *AuthorizeGitlabRequest) (*AuthorizeGitlabResponse, error)
- func (UnimplementedApplicationsServer) GetGithubAuthStatus(context.Context, *GetGithubAuthStatusRequest) (*GetGithubAuthStatusResponse, error)
- func (UnimplementedApplicationsServer) GetGithubDeviceCode(context.Context, *GetGithubDeviceCodeRequest) (*GetGithubDeviceCodeResponse, error)
- func (UnimplementedApplicationsServer) GetGitlabAuthURL(context.Context, *GetGitlabAuthURLRequest) (*GetGitlabAuthURLResponse, error)
- func (UnimplementedApplicationsServer) ParseRepoURL(context.Context, *ParseRepoURLRequest) (*ParseRepoURLResponse, error)
- func (UnimplementedApplicationsServer) ValidateProviderToken(context.Context, *ValidateProviderTokenRequest) (*ValidateProviderTokenResponse, error)
- type UnsafeApplicationsServer
- type ValidateProviderTokenRequest
- func (*ValidateProviderTokenRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ValidateProviderTokenRequest) GetProvider() GitProvider
- func (*ValidateProviderTokenRequest) ProtoMessage()
- func (x *ValidateProviderTokenRequest) ProtoReflect() protoreflect.Message
- func (x *ValidateProviderTokenRequest) Reset()
- func (x *ValidateProviderTokenRequest) String() string
- type ValidateProviderTokenResponse
- func (*ValidateProviderTokenResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ValidateProviderTokenResponse) GetValid() bool
- func (*ValidateProviderTokenResponse) ProtoMessage()
- func (x *ValidateProviderTokenResponse) ProtoReflect() protoreflect.Message
- func (x *ValidateProviderTokenResponse) Reset()
- func (x *ValidateProviderTokenResponse) String() string
Constants ¶
This section is empty.
Variables ¶
var ( GitProvider_name = map[int32]string{ 0: "Unknown", 1: "GitHub", 2: "GitLab", } GitProvider_value = map[string]int32{ "Unknown": 0, "GitHub": 1, "GitLab": 2, } )
Enum value maps for GitProvider.
var Applications_ServiceDesc = grpc.ServiceDesc{ ServiceName: "wego_server.v1.Applications", HandlerType: (*ApplicationsServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Authenticate", Handler: _Applications_Authenticate_Handler, }, { MethodName: "GetGithubDeviceCode", Handler: _Applications_GetGithubDeviceCode_Handler, }, { MethodName: "GetGithubAuthStatus", Handler: _Applications_GetGithubAuthStatus_Handler, }, { MethodName: "GetGitlabAuthURL", Handler: _Applications_GetGitlabAuthURL_Handler, }, { MethodName: "AuthorizeGitlab", Handler: _Applications_AuthorizeGitlab_Handler, }, { MethodName: "ParseRepoURL", Handler: _Applications_ParseRepoURL_Handler, }, { MethodName: "ValidateProviderToken", Handler: _Applications_ValidateProviderToken_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "api/applications/applications.proto", }
Applications_ServiceDesc is the grpc.ServiceDesc for Applications service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_api_applications_applications_proto protoreflect.FileDescriptor
Functions ¶
func RegisterApplicationsHandler ¶
func RegisterApplicationsHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
RegisterApplicationsHandler registers the http handlers for service Applications to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterApplicationsHandlerClient ¶
func RegisterApplicationsHandlerClient(ctx context.Context, mux *runtime.ServeMux, client ApplicationsClient) error
RegisterApplicationsHandlerClient registers the http handlers for service Applications to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "ApplicationsClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "ApplicationsClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "ApplicationsClient" to call the correct interceptors.
func RegisterApplicationsHandlerFromEndpoint ¶
func RegisterApplicationsHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterApplicationsHandlerFromEndpoint is same as RegisterApplicationsHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterApplicationsHandlerServer ¶
func RegisterApplicationsHandlerServer(ctx context.Context, mux *runtime.ServeMux, server ApplicationsServer) error
RegisterApplicationsHandlerServer registers the http handlers for service Applications to "mux". UnaryRPC :call ApplicationsServer 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 RegisterApplicationsHandlerFromEndpoint instead.
func RegisterApplicationsServer ¶
func RegisterApplicationsServer(s grpc.ServiceRegistrar, srv ApplicationsServer)
Types ¶
type ApplicationsClient ¶
type ApplicationsClient interface { // // Authenticate generates jwt token using git provider name and git provider token arguments Authenticate(ctx context.Context, in *AuthenticateRequest, opts ...grpc.CallOption) (*AuthenticateResponse, error) // // GetGithubDeviceCode retrieves a temporary device code for Github authentication. // This code is used to start the Github device-flow. GetGithubDeviceCode(ctx context.Context, in *GetGithubDeviceCodeRequest, opts ...grpc.CallOption) (*GetGithubDeviceCodeResponse, error) // // GetGithubAuthStatus gets the status of the Github device flow authentication requests. // Once the user has completed the Github device flow, an access token will be returned. // This token will expired in 15 minutes, after which the user will need to complete the flow again // to do Git Provider operations. GetGithubAuthStatus(ctx context.Context, in *GetGithubAuthStatusRequest, opts ...grpc.CallOption) (*GetGithubAuthStatusResponse, error) // // GetGitlabAuthURL returns the URL to initiate a GitLab OAuth PKCE flow. // The user must browse to the returned URL to authorize the OAuth callback to the GitOps UI. // See the GitLab OAuth docs for more more information: // https://docs.gitlab.com/ee/api/oauth2.html#supported-oauth-20-flows GetGitlabAuthURL(ctx context.Context, in *GetGitlabAuthURLRequest, opts ...grpc.CallOption) (*GetGitlabAuthURLResponse, error) // // AuthorizeGitlab exchanges a GitLab code obtained via OAuth callback. // The returned token is useable for authentication with the GitOps server only. // See the GitLab OAuth docs for more more information: // https://docs.gitlab.com/ee/api/oauth2.html#supported-oauth-20-flows AuthorizeGitlab(ctx context.Context, in *AuthorizeGitlabRequest, opts ...grpc.CallOption) (*AuthorizeGitlabResponse, error) // // ParseRepoURL returns structured data about a git repository URL ParseRepoURL(ctx context.Context, in *ParseRepoURLRequest, opts ...grpc.CallOption) (*ParseRepoURLResponse, error) // // ValidateProviderToken check to see if the git provider token is still valid ValidateProviderToken(ctx context.Context, in *ValidateProviderTokenRequest, opts ...grpc.CallOption) (*ValidateProviderTokenResponse, error) }
ApplicationsClient is the client API for Applications 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 NewApplicationsClient ¶
func NewApplicationsClient(cc grpc.ClientConnInterface) ApplicationsClient
type ApplicationsServer ¶
type ApplicationsServer interface { // // Authenticate generates jwt token using git provider name and git provider token arguments Authenticate(context.Context, *AuthenticateRequest) (*AuthenticateResponse, error) // // GetGithubDeviceCode retrieves a temporary device code for Github authentication. // This code is used to start the Github device-flow. GetGithubDeviceCode(context.Context, *GetGithubDeviceCodeRequest) (*GetGithubDeviceCodeResponse, error) // // GetGithubAuthStatus gets the status of the Github device flow authentication requests. // Once the user has completed the Github device flow, an access token will be returned. // This token will expired in 15 minutes, after which the user will need to complete the flow again // to do Git Provider operations. GetGithubAuthStatus(context.Context, *GetGithubAuthStatusRequest) (*GetGithubAuthStatusResponse, error) // // GetGitlabAuthURL returns the URL to initiate a GitLab OAuth PKCE flow. // The user must browse to the returned URL to authorize the OAuth callback to the GitOps UI. // See the GitLab OAuth docs for more more information: // https://docs.gitlab.com/ee/api/oauth2.html#supported-oauth-20-flows GetGitlabAuthURL(context.Context, *GetGitlabAuthURLRequest) (*GetGitlabAuthURLResponse, error) // // AuthorizeGitlab exchanges a GitLab code obtained via OAuth callback. // The returned token is useable for authentication with the GitOps server only. // See the GitLab OAuth docs for more more information: // https://docs.gitlab.com/ee/api/oauth2.html#supported-oauth-20-flows AuthorizeGitlab(context.Context, *AuthorizeGitlabRequest) (*AuthorizeGitlabResponse, error) // // ParseRepoURL returns structured data about a git repository URL ParseRepoURL(context.Context, *ParseRepoURLRequest) (*ParseRepoURLResponse, error) // // ValidateProviderToken check to see if the git provider token is still valid ValidateProviderToken(context.Context, *ValidateProviderTokenRequest) (*ValidateProviderTokenResponse, error) // contains filtered or unexported methods }
ApplicationsServer is the server API for Applications service. All implementations must embed UnimplementedApplicationsServer for forward compatibility
type AuthenticateRequest ¶ added in v0.2.5
type AuthenticateRequest struct { ProviderName string `protobuf:"bytes,1,opt,name=provider_name,json=providerName,proto3" json:"provider_name,omitempty"` // The name of the git provider AccessToken string `protobuf:"bytes,2,opt,name=access_token,json=accessToken,proto3" json:"access_token,omitempty"` // The token of the git provider // contains filtered or unexported fields }
func (*AuthenticateRequest) Descriptor
deprecated
added in
v0.2.5
func (*AuthenticateRequest) Descriptor() ([]byte, []int)
Deprecated: Use AuthenticateRequest.ProtoReflect.Descriptor instead.
func (*AuthenticateRequest) GetAccessToken ¶ added in v0.2.5
func (x *AuthenticateRequest) GetAccessToken() string
func (*AuthenticateRequest) GetProviderName ¶ added in v0.2.5
func (x *AuthenticateRequest) GetProviderName() string
func (*AuthenticateRequest) ProtoMessage ¶ added in v0.2.5
func (*AuthenticateRequest) ProtoMessage()
func (*AuthenticateRequest) ProtoReflect ¶ added in v0.2.5
func (x *AuthenticateRequest) ProtoReflect() protoreflect.Message
func (*AuthenticateRequest) Reset ¶ added in v0.2.5
func (x *AuthenticateRequest) Reset()
func (*AuthenticateRequest) String ¶ added in v0.2.5
func (x *AuthenticateRequest) String() string
type AuthenticateResponse ¶ added in v0.2.5
type AuthenticateResponse struct { Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"` // The jwt token that was generated using git provider name and git provider token // contains filtered or unexported fields }
func (*AuthenticateResponse) Descriptor
deprecated
added in
v0.2.5
func (*AuthenticateResponse) Descriptor() ([]byte, []int)
Deprecated: Use AuthenticateResponse.ProtoReflect.Descriptor instead.
func (*AuthenticateResponse) GetToken ¶ added in v0.2.5
func (x *AuthenticateResponse) GetToken() string
func (*AuthenticateResponse) ProtoMessage ¶ added in v0.2.5
func (*AuthenticateResponse) ProtoMessage()
func (*AuthenticateResponse) ProtoReflect ¶ added in v0.2.5
func (x *AuthenticateResponse) ProtoReflect() protoreflect.Message
func (*AuthenticateResponse) Reset ¶ added in v0.2.5
func (x *AuthenticateResponse) Reset()
func (*AuthenticateResponse) String ¶ added in v0.2.5
func (x *AuthenticateResponse) String() string
type AuthorizeGitlabRequest ¶ added in v0.5.0
type AuthorizeGitlabRequest struct { Code string `protobuf:"bytes,1,opt,name=code,proto3" json:"code,omitempty"` // The challenge code obtained from the OAuth callback RedirectUri string `protobuf:"bytes,2,opt,name=redirectUri,proto3" json:"redirectUri,omitempty"` // The redirect URI that originated the OAuth flow // contains filtered or unexported fields }
func (*AuthorizeGitlabRequest) Descriptor
deprecated
added in
v0.5.0
func (*AuthorizeGitlabRequest) Descriptor() ([]byte, []int)
Deprecated: Use AuthorizeGitlabRequest.ProtoReflect.Descriptor instead.
func (*AuthorizeGitlabRequest) GetCode ¶ added in v0.5.0
func (x *AuthorizeGitlabRequest) GetCode() string
func (*AuthorizeGitlabRequest) GetRedirectUri ¶ added in v0.5.0
func (x *AuthorizeGitlabRequest) GetRedirectUri() string
func (*AuthorizeGitlabRequest) ProtoMessage ¶ added in v0.5.0
func (*AuthorizeGitlabRequest) ProtoMessage()
func (*AuthorizeGitlabRequest) ProtoReflect ¶ added in v0.5.0
func (x *AuthorizeGitlabRequest) ProtoReflect() protoreflect.Message
func (*AuthorizeGitlabRequest) Reset ¶ added in v0.5.0
func (x *AuthorizeGitlabRequest) Reset()
func (*AuthorizeGitlabRequest) String ¶ added in v0.5.0
func (x *AuthorizeGitlabRequest) String() string
type AuthorizeGitlabResponse ¶ added in v0.5.0
type AuthorizeGitlabResponse struct { Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"` // A token that can be used to authenticate the GitOps API server. // contains filtered or unexported fields }
func (*AuthorizeGitlabResponse) Descriptor
deprecated
added in
v0.5.0
func (*AuthorizeGitlabResponse) Descriptor() ([]byte, []int)
Deprecated: Use AuthorizeGitlabResponse.ProtoReflect.Descriptor instead.
func (*AuthorizeGitlabResponse) GetToken ¶ added in v0.5.0
func (x *AuthorizeGitlabResponse) GetToken() string
func (*AuthorizeGitlabResponse) ProtoMessage ¶ added in v0.5.0
func (*AuthorizeGitlabResponse) ProtoMessage()
func (*AuthorizeGitlabResponse) ProtoReflect ¶ added in v0.5.0
func (x *AuthorizeGitlabResponse) ProtoReflect() protoreflect.Message
func (*AuthorizeGitlabResponse) Reset ¶ added in v0.5.0
func (x *AuthorizeGitlabResponse) Reset()
func (*AuthorizeGitlabResponse) String ¶ added in v0.5.0
func (x *AuthorizeGitlabResponse) String() string
type GetGithubAuthStatusRequest ¶ added in v0.3.0
type GetGithubAuthStatusRequest struct { DeviceCode string `protobuf:"bytes,1,opt,name=deviceCode,proto3" json:"deviceCode,omitempty"` // The deviceCode returned from a GetGithubDeviceCodeResponse // contains filtered or unexported fields }
func (*GetGithubAuthStatusRequest) Descriptor
deprecated
added in
v0.3.0
func (*GetGithubAuthStatusRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetGithubAuthStatusRequest.ProtoReflect.Descriptor instead.
func (*GetGithubAuthStatusRequest) GetDeviceCode ¶ added in v0.3.0
func (x *GetGithubAuthStatusRequest) GetDeviceCode() string
func (*GetGithubAuthStatusRequest) ProtoMessage ¶ added in v0.3.0
func (*GetGithubAuthStatusRequest) ProtoMessage()
func (*GetGithubAuthStatusRequest) ProtoReflect ¶ added in v0.3.0
func (x *GetGithubAuthStatusRequest) ProtoReflect() protoreflect.Message
func (*GetGithubAuthStatusRequest) Reset ¶ added in v0.3.0
func (x *GetGithubAuthStatusRequest) Reset()
func (*GetGithubAuthStatusRequest) String ¶ added in v0.3.0
func (x *GetGithubAuthStatusRequest) String() string
type GetGithubAuthStatusResponse ¶ added in v0.3.0
type GetGithubAuthStatusResponse struct { AccessToken string `protobuf:"bytes,1,opt,name=accessToken,proto3" json:"accessToken,omitempty"` // An access token that can be used to interact with the Weave GitOps API. Error string `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"` // An error message. // contains filtered or unexported fields }
func (*GetGithubAuthStatusResponse) Descriptor
deprecated
added in
v0.3.0
func (*GetGithubAuthStatusResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetGithubAuthStatusResponse.ProtoReflect.Descriptor instead.
func (*GetGithubAuthStatusResponse) GetAccessToken ¶ added in v0.3.0
func (x *GetGithubAuthStatusResponse) GetAccessToken() string
func (*GetGithubAuthStatusResponse) GetError ¶ added in v0.3.0
func (x *GetGithubAuthStatusResponse) GetError() string
func (*GetGithubAuthStatusResponse) ProtoMessage ¶ added in v0.3.0
func (*GetGithubAuthStatusResponse) ProtoMessage()
func (*GetGithubAuthStatusResponse) ProtoReflect ¶ added in v0.3.0
func (x *GetGithubAuthStatusResponse) ProtoReflect() protoreflect.Message
func (*GetGithubAuthStatusResponse) Reset ¶ added in v0.3.0
func (x *GetGithubAuthStatusResponse) Reset()
func (*GetGithubAuthStatusResponse) String ¶ added in v0.3.0
func (x *GetGithubAuthStatusResponse) String() string
type GetGithubDeviceCodeRequest ¶ added in v0.3.0
type GetGithubDeviceCodeRequest struct {
// contains filtered or unexported fields
}
func (*GetGithubDeviceCodeRequest) Descriptor
deprecated
added in
v0.3.0
func (*GetGithubDeviceCodeRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetGithubDeviceCodeRequest.ProtoReflect.Descriptor instead.
func (*GetGithubDeviceCodeRequest) ProtoMessage ¶ added in v0.3.0
func (*GetGithubDeviceCodeRequest) ProtoMessage()
func (*GetGithubDeviceCodeRequest) ProtoReflect ¶ added in v0.3.0
func (x *GetGithubDeviceCodeRequest) ProtoReflect() protoreflect.Message
func (*GetGithubDeviceCodeRequest) Reset ¶ added in v0.3.0
func (x *GetGithubDeviceCodeRequest) Reset()
func (*GetGithubDeviceCodeRequest) String ¶ added in v0.3.0
func (x *GetGithubDeviceCodeRequest) String() string
type GetGithubDeviceCodeResponse ¶ added in v0.3.0
type GetGithubDeviceCodeResponse struct { UserCode string `protobuf:"bytes,1,opt,name=userCode,proto3" json:"userCode,omitempty"` // The Github Device Flow code that will be shown to the user DeviceCode string `protobuf:"bytes,2,opt,name=deviceCode,proto3" json:"deviceCode,omitempty"` // A code that uniquely identifies a device ValidationURI string `protobuf:"bytes,3,opt,name=validationURI,proto3" json:"validationURI,omitempty"` // The URI that the user will visit to complete the flow Interval int32 `protobuf:"varint,4,opt,name=interval,proto3" json:"interval,omitempty"` // How often the client should retry the request // contains filtered or unexported fields }
func (*GetGithubDeviceCodeResponse) Descriptor
deprecated
added in
v0.3.0
func (*GetGithubDeviceCodeResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetGithubDeviceCodeResponse.ProtoReflect.Descriptor instead.
func (*GetGithubDeviceCodeResponse) GetDeviceCode ¶ added in v0.3.0
func (x *GetGithubDeviceCodeResponse) GetDeviceCode() string
func (*GetGithubDeviceCodeResponse) GetInterval ¶ added in v0.3.0
func (x *GetGithubDeviceCodeResponse) GetInterval() int32
func (*GetGithubDeviceCodeResponse) GetUserCode ¶ added in v0.3.0
func (x *GetGithubDeviceCodeResponse) GetUserCode() string
func (*GetGithubDeviceCodeResponse) GetValidationURI ¶ added in v0.3.0
func (x *GetGithubDeviceCodeResponse) GetValidationURI() string
func (*GetGithubDeviceCodeResponse) ProtoMessage ¶ added in v0.3.0
func (*GetGithubDeviceCodeResponse) ProtoMessage()
func (*GetGithubDeviceCodeResponse) ProtoReflect ¶ added in v0.3.0
func (x *GetGithubDeviceCodeResponse) ProtoReflect() protoreflect.Message
func (*GetGithubDeviceCodeResponse) Reset ¶ added in v0.3.0
func (x *GetGithubDeviceCodeResponse) Reset()
func (*GetGithubDeviceCodeResponse) String ¶ added in v0.3.0
func (x *GetGithubDeviceCodeResponse) String() string
type GetGitlabAuthURLRequest ¶ added in v0.5.0
type GetGitlabAuthURLRequest struct { RedirectUri string `protobuf:"bytes,1,opt,name=redirectUri,proto3" json:"redirectUri,omitempty"` // The URI that GitLab will use to send users back to GitOps. // contains filtered or unexported fields }
func (*GetGitlabAuthURLRequest) Descriptor
deprecated
added in
v0.5.0
func (*GetGitlabAuthURLRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetGitlabAuthURLRequest.ProtoReflect.Descriptor instead.
func (*GetGitlabAuthURLRequest) GetRedirectUri ¶ added in v0.5.0
func (x *GetGitlabAuthURLRequest) GetRedirectUri() string
func (*GetGitlabAuthURLRequest) ProtoMessage ¶ added in v0.5.0
func (*GetGitlabAuthURLRequest) ProtoMessage()
func (*GetGitlabAuthURLRequest) ProtoReflect ¶ added in v0.5.0
func (x *GetGitlabAuthURLRequest) ProtoReflect() protoreflect.Message
func (*GetGitlabAuthURLRequest) Reset ¶ added in v0.5.0
func (x *GetGitlabAuthURLRequest) Reset()
func (*GetGitlabAuthURLRequest) String ¶ added in v0.5.0
func (x *GetGitlabAuthURLRequest) String() string
type GetGitlabAuthURLResponse ¶ added in v0.5.0
type GetGitlabAuthURLResponse struct { Url string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"` // The URL that users must visit to authorize GitLab authentication. // contains filtered or unexported fields }
func (*GetGitlabAuthURLResponse) Descriptor
deprecated
added in
v0.5.0
func (*GetGitlabAuthURLResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetGitlabAuthURLResponse.ProtoReflect.Descriptor instead.
func (*GetGitlabAuthURLResponse) GetUrl ¶ added in v0.5.0
func (x *GetGitlabAuthURLResponse) GetUrl() string
func (*GetGitlabAuthURLResponse) ProtoMessage ¶ added in v0.5.0
func (*GetGitlabAuthURLResponse) ProtoMessage()
func (*GetGitlabAuthURLResponse) ProtoReflect ¶ added in v0.5.0
func (x *GetGitlabAuthURLResponse) ProtoReflect() protoreflect.Message
func (*GetGitlabAuthURLResponse) Reset ¶ added in v0.5.0
func (x *GetGitlabAuthURLResponse) Reset()
func (*GetGitlabAuthURLResponse) String ¶ added in v0.5.0
func (x *GetGitlabAuthURLResponse) String() string
type GitProvider ¶ added in v0.5.0
type GitProvider int32
const ( GitProvider_Unknown GitProvider = 0 GitProvider_GitHub GitProvider = 1 GitProvider_GitLab GitProvider = 2 )
func (GitProvider) Descriptor ¶ added in v0.5.0
func (GitProvider) Descriptor() protoreflect.EnumDescriptor
func (GitProvider) Enum ¶ added in v0.5.0
func (x GitProvider) Enum() *GitProvider
func (GitProvider) EnumDescriptor
deprecated
added in
v0.5.0
func (GitProvider) EnumDescriptor() ([]byte, []int)
Deprecated: Use GitProvider.Descriptor instead.
func (GitProvider) Number ¶ added in v0.5.0
func (x GitProvider) Number() protoreflect.EnumNumber
func (GitProvider) String ¶ added in v0.5.0
func (x GitProvider) String() string
func (GitProvider) Type ¶ added in v0.5.0
func (GitProvider) Type() protoreflect.EnumType
type ParseRepoURLRequest ¶ added in v0.5.0
type ParseRepoURLRequest struct { Url string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"` // The URL to be parsed // contains filtered or unexported fields }
func (*ParseRepoURLRequest) Descriptor
deprecated
added in
v0.5.0
func (*ParseRepoURLRequest) Descriptor() ([]byte, []int)
Deprecated: Use ParseRepoURLRequest.ProtoReflect.Descriptor instead.
func (*ParseRepoURLRequest) GetUrl ¶ added in v0.5.0
func (x *ParseRepoURLRequest) GetUrl() string
func (*ParseRepoURLRequest) ProtoMessage ¶ added in v0.5.0
func (*ParseRepoURLRequest) ProtoMessage()
func (*ParseRepoURLRequest) ProtoReflect ¶ added in v0.5.0
func (x *ParseRepoURLRequest) ProtoReflect() protoreflect.Message
func (*ParseRepoURLRequest) Reset ¶ added in v0.5.0
func (x *ParseRepoURLRequest) Reset()
func (*ParseRepoURLRequest) String ¶ added in v0.5.0
func (x *ParseRepoURLRequest) String() string
type ParseRepoURLResponse ¶ added in v0.5.0
type ParseRepoURLResponse struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // The name of the git repository Provider GitProvider `protobuf:"varint,2,opt,name=provider,proto3,enum=wego_server.v1.GitProvider" json:"provider,omitempty"` // The GitProvider for the repository Owner string `protobuf:"bytes,3,opt,name=owner,proto3" json:"owner,omitempty"` // The person or organization to which this repo belongs // contains filtered or unexported fields }
func (*ParseRepoURLResponse) Descriptor
deprecated
added in
v0.5.0
func (*ParseRepoURLResponse) Descriptor() ([]byte, []int)
Deprecated: Use ParseRepoURLResponse.ProtoReflect.Descriptor instead.
func (*ParseRepoURLResponse) GetName ¶ added in v0.5.0
func (x *ParseRepoURLResponse) GetName() string
func (*ParseRepoURLResponse) GetOwner ¶ added in v0.5.0
func (x *ParseRepoURLResponse) GetOwner() string
func (*ParseRepoURLResponse) GetProvider ¶ added in v0.5.0
func (x *ParseRepoURLResponse) GetProvider() GitProvider
func (*ParseRepoURLResponse) ProtoMessage ¶ added in v0.5.0
func (*ParseRepoURLResponse) ProtoMessage()
func (*ParseRepoURLResponse) ProtoReflect ¶ added in v0.5.0
func (x *ParseRepoURLResponse) ProtoReflect() protoreflect.Message
func (*ParseRepoURLResponse) Reset ¶ added in v0.5.0
func (x *ParseRepoURLResponse) Reset()
func (*ParseRepoURLResponse) String ¶ added in v0.5.0
func (x *ParseRepoURLResponse) String() string
type UnimplementedApplicationsServer ¶
type UnimplementedApplicationsServer struct { }
UnimplementedApplicationsServer must be embedded to have forward compatible implementations.
func (UnimplementedApplicationsServer) Authenticate ¶ added in v0.2.5
func (UnimplementedApplicationsServer) Authenticate(context.Context, *AuthenticateRequest) (*AuthenticateResponse, error)
func (UnimplementedApplicationsServer) AuthorizeGitlab ¶ added in v0.5.0
func (UnimplementedApplicationsServer) AuthorizeGitlab(context.Context, *AuthorizeGitlabRequest) (*AuthorizeGitlabResponse, error)
func (UnimplementedApplicationsServer) GetGithubAuthStatus ¶ added in v0.3.0
func (UnimplementedApplicationsServer) GetGithubAuthStatus(context.Context, *GetGithubAuthStatusRequest) (*GetGithubAuthStatusResponse, error)
func (UnimplementedApplicationsServer) GetGithubDeviceCode ¶ added in v0.3.0
func (UnimplementedApplicationsServer) GetGithubDeviceCode(context.Context, *GetGithubDeviceCodeRequest) (*GetGithubDeviceCodeResponse, error)
func (UnimplementedApplicationsServer) GetGitlabAuthURL ¶ added in v0.5.0
func (UnimplementedApplicationsServer) GetGitlabAuthURL(context.Context, *GetGitlabAuthURLRequest) (*GetGitlabAuthURLResponse, error)
func (UnimplementedApplicationsServer) ParseRepoURL ¶ added in v0.5.0
func (UnimplementedApplicationsServer) ParseRepoURL(context.Context, *ParseRepoURLRequest) (*ParseRepoURLResponse, error)
func (UnimplementedApplicationsServer) ValidateProviderToken ¶ added in v0.6.1
func (UnimplementedApplicationsServer) ValidateProviderToken(context.Context, *ValidateProviderTokenRequest) (*ValidateProviderTokenResponse, error)
type UnsafeApplicationsServer ¶
type UnsafeApplicationsServer interface {
// contains filtered or unexported methods
}
UnsafeApplicationsServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ApplicationsServer will result in compilation errors.
type ValidateProviderTokenRequest ¶ added in v0.6.1
type ValidateProviderTokenRequest struct { Provider GitProvider `protobuf:"varint,1,opt,name=provider,proto3,enum=wego_server.v1.GitProvider" json:"provider,omitempty"` // contains filtered or unexported fields }
func (*ValidateProviderTokenRequest) Descriptor
deprecated
added in
v0.6.1
func (*ValidateProviderTokenRequest) Descriptor() ([]byte, []int)
Deprecated: Use ValidateProviderTokenRequest.ProtoReflect.Descriptor instead.
func (*ValidateProviderTokenRequest) GetProvider ¶ added in v0.6.1
func (x *ValidateProviderTokenRequest) GetProvider() GitProvider
func (*ValidateProviderTokenRequest) ProtoMessage ¶ added in v0.6.1
func (*ValidateProviderTokenRequest) ProtoMessage()
func (*ValidateProviderTokenRequest) ProtoReflect ¶ added in v0.6.1
func (x *ValidateProviderTokenRequest) ProtoReflect() protoreflect.Message
func (*ValidateProviderTokenRequest) Reset ¶ added in v0.6.1
func (x *ValidateProviderTokenRequest) Reset()
func (*ValidateProviderTokenRequest) String ¶ added in v0.6.1
func (x *ValidateProviderTokenRequest) String() string
type ValidateProviderTokenResponse ¶ added in v0.6.1
type ValidateProviderTokenResponse struct { Valid bool `protobuf:"varint,1,opt,name=valid,proto3" json:"valid,omitempty"` // contains filtered or unexported fields }
func (*ValidateProviderTokenResponse) Descriptor
deprecated
added in
v0.6.1
func (*ValidateProviderTokenResponse) Descriptor() ([]byte, []int)
Deprecated: Use ValidateProviderTokenResponse.ProtoReflect.Descriptor instead.
func (*ValidateProviderTokenResponse) GetValid ¶ added in v0.6.1
func (x *ValidateProviderTokenResponse) GetValid() bool
func (*ValidateProviderTokenResponse) ProtoMessage ¶ added in v0.6.1
func (*ValidateProviderTokenResponse) ProtoMessage()
func (*ValidateProviderTokenResponse) ProtoReflect ¶ added in v0.6.1
func (x *ValidateProviderTokenResponse) ProtoReflect() protoreflect.Message
func (*ValidateProviderTokenResponse) Reset ¶ added in v0.6.1
func (x *ValidateProviderTokenResponse) Reset()
func (*ValidateProviderTokenResponse) String ¶ added in v0.6.1
func (x *ValidateProviderTokenResponse) String() string