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 Application
- func (*Application) Descriptor() ([]byte, []int)deprecated
- func (x *Application) GetDeploymentConditions() []*Condition
- func (x *Application) GetDeploymentType() *GroupVersionKind
- func (x *Application) GetName() string
- func (x *Application) GetNamespace() string
- func (x *Application) GetPath() string
- func (x *Application) GetReconciledObjectKinds() []*GroupVersionKind
- func (x *Application) GetSourceConditions() []*Condition
- func (x *Application) GetUrl() string
- func (*Application) ProtoMessage()
- func (x *Application) ProtoReflect() protoreflect.Message
- func (x *Application) Reset()
- func (x *Application) String() string
- 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 Commit
- func (*Commit) Descriptor() ([]byte, []int)deprecated
- func (x *Commit) GetAuthor() string
- func (x *Commit) GetCommitHash() string
- func (x *Commit) GetDate() string
- func (x *Commit) GetMessage() string
- func (*Commit) ProtoMessage()
- func (x *Commit) ProtoReflect() protoreflect.Message
- func (x *Commit) Reset()
- func (x *Commit) String() string
- type Condition
- func (*Condition) Descriptor() ([]byte, []int)deprecated
- func (x *Condition) GetMessage() string
- func (x *Condition) GetReason() string
- func (x *Condition) GetStatus() string
- func (x *Condition) GetTimestamp() int32
- func (x *Condition) GetType() string
- func (*Condition) ProtoMessage()
- func (x *Condition) ProtoReflect() protoreflect.Message
- func (x *Condition) Reset()
- func (x *Condition) String() string
- type GetApplicationRequest
- func (*GetApplicationRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetApplicationRequest) GetName() string
- func (x *GetApplicationRequest) GetNamespace() string
- func (*GetApplicationRequest) ProtoMessage()
- func (x *GetApplicationRequest) ProtoReflect() protoreflect.Message
- func (x *GetApplicationRequest) Reset()
- func (x *GetApplicationRequest) String() string
- type GetApplicationResponse
- func (*GetApplicationResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetApplicationResponse) GetApplication() *Application
- func (*GetApplicationResponse) ProtoMessage()
- func (x *GetApplicationResponse) ProtoReflect() protoreflect.Message
- func (x *GetApplicationResponse) Reset()
- func (x *GetApplicationResponse) String() string
- type GetChildObjectsReq
- func (*GetChildObjectsReq) Descriptor() ([]byte, []int)deprecated
- func (x *GetChildObjectsReq) GetGroupVersionKind() *GroupVersionKind
- func (x *GetChildObjectsReq) GetParentUid() string
- func (*GetChildObjectsReq) ProtoMessage()
- func (x *GetChildObjectsReq) ProtoReflect() protoreflect.Message
- func (x *GetChildObjectsReq) Reset()
- func (x *GetChildObjectsReq) String() string
- type GetChildObjectsRes
- func (*GetChildObjectsRes) Descriptor() ([]byte, []int)deprecated
- func (x *GetChildObjectsRes) GetObjects() []*UnstructuredObject
- func (*GetChildObjectsRes) ProtoMessage()
- func (x *GetChildObjectsRes) ProtoReflect() protoreflect.Message
- func (x *GetChildObjectsRes) Reset()
- func (x *GetChildObjectsRes) String() string
- type GetReconciledObjectsReq
- func (*GetReconciledObjectsReq) Descriptor() ([]byte, []int)deprecated
- func (x *GetReconciledObjectsReq) GetAutomationKind() GetReconciledObjectsReq_AutomationKind
- func (x *GetReconciledObjectsReq) GetAutomationName() string
- func (x *GetReconciledObjectsReq) GetAutomationNamespace() string
- func (x *GetReconciledObjectsReq) GetKinds() []*GroupVersionKind
- func (*GetReconciledObjectsReq) ProtoMessage()
- func (x *GetReconciledObjectsReq) ProtoReflect() protoreflect.Message
- func (x *GetReconciledObjectsReq) Reset()
- func (x *GetReconciledObjectsReq) String() string
- type GetReconciledObjectsReq_AutomationKind
- func (GetReconciledObjectsReq_AutomationKind) Descriptor() protoreflect.EnumDescriptor
- func (x GetReconciledObjectsReq_AutomationKind) Enum() *GetReconciledObjectsReq_AutomationKind
- func (GetReconciledObjectsReq_AutomationKind) EnumDescriptor() ([]byte, []int)deprecated
- func (x GetReconciledObjectsReq_AutomationKind) Number() protoreflect.EnumNumber
- func (x GetReconciledObjectsReq_AutomationKind) String() string
- func (GetReconciledObjectsReq_AutomationKind) Type() protoreflect.EnumType
- type GetReconciledObjectsRes
- func (*GetReconciledObjectsRes) Descriptor() ([]byte, []int)deprecated
- func (x *GetReconciledObjectsRes) GetObjects() []*UnstructuredObject
- func (*GetReconciledObjectsRes) ProtoMessage()
- func (x *GetReconciledObjectsRes) ProtoReflect() protoreflect.Message
- func (x *GetReconciledObjectsRes) Reset()
- func (x *GetReconciledObjectsRes) String() string
- type GroupVersionKind
- func (*GroupVersionKind) Descriptor() ([]byte, []int)deprecated
- func (x *GroupVersionKind) GetGroup() string
- func (x *GroupVersionKind) GetKind() string
- func (x *GroupVersionKind) GetVersion() string
- func (*GroupVersionKind) ProtoMessage()
- func (x *GroupVersionKind) ProtoReflect() protoreflect.Message
- func (x *GroupVersionKind) Reset()
- func (x *GroupVersionKind) String() string
- type ListApplicationsRequest
- func (*ListApplicationsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListApplicationsRequest) GetNamespace() string
- func (*ListApplicationsRequest) ProtoMessage()
- func (x *ListApplicationsRequest) ProtoReflect() protoreflect.Message
- func (x *ListApplicationsRequest) Reset()
- func (x *ListApplicationsRequest) String() string
- type ListApplicationsResponse
- func (*ListApplicationsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListApplicationsResponse) GetApplications() []*Application
- func (*ListApplicationsResponse) ProtoMessage()
- func (x *ListApplicationsResponse) ProtoReflect() protoreflect.Message
- func (x *ListApplicationsResponse) Reset()
- func (x *ListApplicationsResponse) String() string
- type ListCommitsRequest
- func (*ListCommitsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListCommitsRequest) GetName() string
- func (x *ListCommitsRequest) GetNamespace() string
- func (x *ListCommitsRequest) GetPageSize() int32
- func (x *ListCommitsRequest) GetPageToken() int32
- func (*ListCommitsRequest) ProtoMessage()
- func (x *ListCommitsRequest) ProtoReflect() protoreflect.Message
- func (x *ListCommitsRequest) Reset()
- func (x *ListCommitsRequest) String() string
- type ListCommitsResponse
- func (*ListCommitsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListCommitsResponse) GetCommits() []*Commit
- func (x *ListCommitsResponse) GetNextPageToken() int32
- func (*ListCommitsResponse) ProtoMessage()
- func (x *ListCommitsResponse) ProtoReflect() protoreflect.Message
- func (x *ListCommitsResponse) Reset()
- func (x *ListCommitsResponse) String() string
- type UnimplementedApplicationsServer
- func (UnimplementedApplicationsServer) Authenticate(context.Context, *AuthenticateRequest) (*AuthenticateResponse, error)
- func (UnimplementedApplicationsServer) GetApplication(context.Context, *GetApplicationRequest) (*GetApplicationResponse, error)
- func (UnimplementedApplicationsServer) GetChildObjects(context.Context, *GetChildObjectsReq) (*GetChildObjectsRes, error)
- func (UnimplementedApplicationsServer) GetReconciledObjects(context.Context, *GetReconciledObjectsReq) (*GetReconciledObjectsRes, error)
- func (UnimplementedApplicationsServer) ListApplications(context.Context, *ListApplicationsRequest) (*ListApplicationsResponse, error)
- func (UnimplementedApplicationsServer) ListCommits(context.Context, *ListCommitsRequest) (*ListCommitsResponse, error)
- type UnsafeApplicationsServer
- type UnstructuredObject
- func (*UnstructuredObject) Descriptor() ([]byte, []int)deprecated
- func (x *UnstructuredObject) GetGroupVersionKind() *GroupVersionKind
- func (x *UnstructuredObject) GetName() string
- func (x *UnstructuredObject) GetNamespace() string
- func (x *UnstructuredObject) GetStatus() string
- func (x *UnstructuredObject) GetUid() string
- func (*UnstructuredObject) ProtoMessage()
- func (x *UnstructuredObject) ProtoReflect() protoreflect.Message
- func (x *UnstructuredObject) Reset()
- func (x *UnstructuredObject) String() string
Constants ¶
This section is empty.
Variables ¶
var ( GetReconciledObjectsReq_AutomationKind_name = map[int32]string{ 0: "Kustomize", 1: "Helm", } GetReconciledObjectsReq_AutomationKind_value = map[string]int32{ "Kustomize": 0, "Helm": 1, } )
Enum value maps for GetReconciledObjectsReq_AutomationKind.
var Applications_ServiceDesc = grpc.ServiceDesc{ ServiceName: "wego_server.v1.Applications", HandlerType: (*ApplicationsServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Authenticate", Handler: _Applications_Authenticate_Handler, }, { MethodName: "ListApplications", Handler: _Applications_ListApplications_Handler, }, { MethodName: "GetApplication", Handler: _Applications_GetApplication_Handler, }, { MethodName: "ListCommits", Handler: _Applications_ListCommits_Handler, }, { MethodName: "GetReconciledObjects", Handler: _Applications_GetReconciledObjects_Handler, }, { MethodName: "GetChildObjects", Handler: _Applications_GetChildObjects_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 Application ¶
type Application struct {
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // The name of the application
Path string `protobuf:"bytes,2,opt,name=path,proto3" json:"path,omitempty"` // The file path where the k8s yaml files for this application are stored.
Url string `protobuf:"bytes,3,opt,name=url,proto3" json:"url,omitempty"` // The git repository URL for this application
SourceConditions []*Condition `protobuf:"bytes,4,rep,name=source_conditions,json=sourceConditions,proto3" json:"source_conditions,omitempty"` // A list of conditions for the Source related to this Application
DeploymentConditions []*Condition `protobuf:"bytes,5,rep,name=deployment_conditions,json=deploymentConditions,proto3" json:"deployment_conditions,omitempty"` // A list of conditions for the Kustomization or HelmRelease for this application
Namespace string `protobuf:"bytes,6,opt,name=namespace,proto3" json:"namespace,omitempty"` // The kubernetes namespace of the application
DeploymentType *GroupVersionKind `protobuf:"bytes,7,opt,name=deployment_type,json=deploymentType,proto3" json:"deployment_type,omitempty"` // An object representing the k8s Group, Version and Kind of a deployment
ReconciledObjectKinds []*GroupVersionKind `` // A list of unique object kinds for all resources that were created as a result of this application
/* 126-byte string literal not displayed */
// contains filtered or unexported fields
}
func (*Application) Descriptor
deprecated
func (*Application) Descriptor() ([]byte, []int)
Deprecated: Use Application.ProtoReflect.Descriptor instead.
func (*Application) GetDeploymentConditions ¶ added in v0.2.2
func (x *Application) GetDeploymentConditions() []*Condition
func (*Application) GetDeploymentType ¶ added in v0.2.5
func (x *Application) GetDeploymentType() *GroupVersionKind
func (*Application) GetName ¶
func (x *Application) GetName() string
func (*Application) GetNamespace ¶ added in v0.2.5
func (x *Application) GetNamespace() string
func (*Application) GetPath ¶
func (x *Application) GetPath() string
func (*Application) GetReconciledObjectKinds ¶ added in v0.2.5
func (x *Application) GetReconciledObjectKinds() []*GroupVersionKind
func (*Application) GetSourceConditions ¶ added in v0.2.2
func (x *Application) GetSourceConditions() []*Condition
func (*Application) GetUrl ¶
func (x *Application) GetUrl() string
func (*Application) ProtoMessage ¶
func (*Application) ProtoMessage()
func (*Application) ProtoReflect ¶
func (x *Application) ProtoReflect() protoreflect.Message
func (*Application) Reset ¶
func (x *Application) Reset()
func (*Application) String ¶
func (x *Application) String() string
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)
//
// ListApplications returns the list of WeGo applications that the authenticated user has access to.
ListApplications(ctx context.Context, in *ListApplicationsRequest, opts ...grpc.CallOption) (*ListApplicationsResponse, error)
//
// GetApplication returns a given application
GetApplication(ctx context.Context, in *GetApplicationRequest, opts ...grpc.CallOption) (*GetApplicationResponse, error)
//
// ListCommits returns the list of WeGo commits that the authenticated user has access to.
ListCommits(ctx context.Context, in *ListCommitsRequest, opts ...grpc.CallOption) (*ListCommitsResponse, error)
//
// GetReconciledObjects returns a list of objects that were created as a result of the Application.
// This list is derived by looking at the Kustomization that is associated with an Application.
// Helm Releases are not currently supported.
GetReconciledObjects(ctx context.Context, in *GetReconciledObjectsReq, opts ...grpc.CallOption) (*GetReconciledObjectsRes, error)
//
// GetChildObjects returns the children of a given object, specified by a GroupVersionKind.
// Not all Kubernets objects have children. For example, a Deployment has a child ReplicaSet, but a Service has no child objects.
GetChildObjects(ctx context.Context, in *GetChildObjectsReq, opts ...grpc.CallOption) (*GetChildObjectsRes, 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)
//
// ListApplications returns the list of WeGo applications that the authenticated user has access to.
ListApplications(context.Context, *ListApplicationsRequest) (*ListApplicationsResponse, error)
//
// GetApplication returns a given application
GetApplication(context.Context, *GetApplicationRequest) (*GetApplicationResponse, error)
//
// ListCommits returns the list of WeGo commits that the authenticated user has access to.
ListCommits(context.Context, *ListCommitsRequest) (*ListCommitsResponse, error)
//
// GetReconciledObjects returns a list of objects that were created as a result of the Application.
// This list is derived by looking at the Kustomization that is associated with an Application.
// Helm Releases are not currently supported.
GetReconciledObjects(context.Context, *GetReconciledObjectsReq) (*GetReconciledObjectsRes, error)
//
// GetChildObjects returns the children of a given object, specified by a GroupVersionKind.
// Not all Kubernets objects have children. For example, a Deployment has a child ReplicaSet, but a Service has no child objects.
GetChildObjects(context.Context, *GetChildObjectsReq) (*GetChildObjectsRes, 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 Commit ¶ added in v0.2.5
type Commit struct {
CommitHash string `protobuf:"bytes,1,opt,name=commit_hash,json=commitHash,proto3" json:"commit_hash,omitempty"` // The hash of the commit
Date string `protobuf:"bytes,2,opt,name=date,proto3" json:"date,omitempty"` // The date the commit was made.
Author string `protobuf:"bytes,3,opt,name=author,proto3" json:"author,omitempty"` // The author of the commit
Message string `protobuf:"bytes,4,opt,name=message,proto3" json:"message,omitempty"` // The commit message
// contains filtered or unexported fields
}
func (*Commit) Descriptor
deprecated
added in
v0.2.5
func (*Commit) GetCommitHash ¶ added in v0.2.5
func (*Commit) GetMessage ¶ added in v0.2.5
func (*Commit) ProtoMessage ¶ added in v0.2.5
func (*Commit) ProtoMessage()
func (*Commit) ProtoReflect ¶ added in v0.2.5
func (x *Commit) ProtoReflect() protoreflect.Message
type Condition ¶ added in v0.2.2
type Condition struct {
Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"`
Status string `protobuf:"bytes,2,opt,name=status,proto3" json:"status,omitempty"`
Reason string `protobuf:"bytes,3,opt,name=reason,proto3" json:"reason,omitempty"`
Message string `protobuf:"bytes,4,opt,name=message,proto3" json:"message,omitempty"`
Timestamp int32 `protobuf:"varint,5,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
// contains filtered or unexported fields
}
This object represents a single condition for a Kubernetes object. It roughly matches the Kubernetes type defined here: https://pkg.go.dev/k8s.io/apimachinery/pkg/apis/meta/v1#Condition
func (*Condition) Descriptor
deprecated
added in
v0.2.2
func (*Condition) GetMessage ¶ added in v0.2.2
func (*Condition) GetTimestamp ¶ added in v0.2.2
func (*Condition) ProtoMessage ¶ added in v0.2.2
func (*Condition) ProtoMessage()
func (*Condition) ProtoReflect ¶ added in v0.2.2
func (x *Condition) ProtoReflect() protoreflect.Message
type GetApplicationRequest ¶
type GetApplicationRequest struct {
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // The name of an application
Namespace string `protobuf:"bytes,2,opt,name=namespace,proto3" json:"namespace,omitempty"` // The kubernetes namespace of the application. Default is `wego-system`
// contains filtered or unexported fields
}
func (*GetApplicationRequest) Descriptor
deprecated
func (*GetApplicationRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetApplicationRequest.ProtoReflect.Descriptor instead.
func (*GetApplicationRequest) GetName ¶ added in v0.2.1
func (x *GetApplicationRequest) GetName() string
func (*GetApplicationRequest) GetNamespace ¶ added in v0.2.1
func (x *GetApplicationRequest) GetNamespace() string
func (*GetApplicationRequest) ProtoMessage ¶
func (*GetApplicationRequest) ProtoMessage()
func (*GetApplicationRequest) ProtoReflect ¶
func (x *GetApplicationRequest) ProtoReflect() protoreflect.Message
func (*GetApplicationRequest) Reset ¶
func (x *GetApplicationRequest) Reset()
func (*GetApplicationRequest) String ¶
func (x *GetApplicationRequest) String() string
type GetApplicationResponse ¶
type GetApplicationResponse struct {
Application *Application `protobuf:"bytes,1,opt,name=application,proto3" json:"application,omitempty"`
// contains filtered or unexported fields
}
func (*GetApplicationResponse) Descriptor
deprecated
func (*GetApplicationResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetApplicationResponse.ProtoReflect.Descriptor instead.
func (*GetApplicationResponse) GetApplication ¶
func (x *GetApplicationResponse) GetApplication() *Application
func (*GetApplicationResponse) ProtoMessage ¶
func (*GetApplicationResponse) ProtoMessage()
func (*GetApplicationResponse) ProtoReflect ¶
func (x *GetApplicationResponse) ProtoReflect() protoreflect.Message
func (*GetApplicationResponse) Reset ¶
func (x *GetApplicationResponse) Reset()
func (*GetApplicationResponse) String ¶
func (x *GetApplicationResponse) String() string
type GetChildObjectsReq ¶ added in v0.2.5
type GetChildObjectsReq struct {
GroupVersionKind *GroupVersionKind `protobuf:"bytes,1,opt,name=groupVersionKind,proto3" json:"groupVersionKind,omitempty"`
ParentUid string `protobuf:"bytes,2,opt,name=parentUid,proto3" json:"parentUid,omitempty"`
// contains filtered or unexported fields
}
func (*GetChildObjectsReq) Descriptor
deprecated
added in
v0.2.5
func (*GetChildObjectsReq) Descriptor() ([]byte, []int)
Deprecated: Use GetChildObjectsReq.ProtoReflect.Descriptor instead.
func (*GetChildObjectsReq) GetGroupVersionKind ¶ added in v0.2.5
func (x *GetChildObjectsReq) GetGroupVersionKind() *GroupVersionKind
func (*GetChildObjectsReq) GetParentUid ¶ added in v0.2.5
func (x *GetChildObjectsReq) GetParentUid() string
func (*GetChildObjectsReq) ProtoMessage ¶ added in v0.2.5
func (*GetChildObjectsReq) ProtoMessage()
func (*GetChildObjectsReq) ProtoReflect ¶ added in v0.2.5
func (x *GetChildObjectsReq) ProtoReflect() protoreflect.Message
func (*GetChildObjectsReq) Reset ¶ added in v0.2.5
func (x *GetChildObjectsReq) Reset()
func (*GetChildObjectsReq) String ¶ added in v0.2.5
func (x *GetChildObjectsReq) String() string
type GetChildObjectsRes ¶ added in v0.2.5
type GetChildObjectsRes struct {
Objects []*UnstructuredObject `protobuf:"bytes,1,rep,name=objects,proto3" json:"objects,omitempty"`
// contains filtered or unexported fields
}
func (*GetChildObjectsRes) Descriptor
deprecated
added in
v0.2.5
func (*GetChildObjectsRes) Descriptor() ([]byte, []int)
Deprecated: Use GetChildObjectsRes.ProtoReflect.Descriptor instead.
func (*GetChildObjectsRes) GetObjects ¶ added in v0.2.5
func (x *GetChildObjectsRes) GetObjects() []*UnstructuredObject
func (*GetChildObjectsRes) ProtoMessage ¶ added in v0.2.5
func (*GetChildObjectsRes) ProtoMessage()
func (*GetChildObjectsRes) ProtoReflect ¶ added in v0.2.5
func (x *GetChildObjectsRes) ProtoReflect() protoreflect.Message
func (*GetChildObjectsRes) Reset ¶ added in v0.2.5
func (x *GetChildObjectsRes) Reset()
func (*GetChildObjectsRes) String ¶ added in v0.2.5
func (x *GetChildObjectsRes) String() string
type GetReconciledObjectsReq ¶ added in v0.2.5
type GetReconciledObjectsReq struct {
AutomationName string `protobuf:"bytes,1,opt,name=automationName,proto3" json:"automationName,omitempty"`
AutomationNamespace string `protobuf:"bytes,2,opt,name=automationNamespace,proto3" json:"automationNamespace,omitempty"`
AutomationKind GetReconciledObjectsReq_AutomationKind `` /* 141-byte string literal not displayed */
Kinds []*GroupVersionKind `protobuf:"bytes,4,rep,name=kinds,proto3" json:"kinds,omitempty"`
// contains filtered or unexported fields
}
func (*GetReconciledObjectsReq) Descriptor
deprecated
added in
v0.2.5
func (*GetReconciledObjectsReq) Descriptor() ([]byte, []int)
Deprecated: Use GetReconciledObjectsReq.ProtoReflect.Descriptor instead.
func (*GetReconciledObjectsReq) GetAutomationKind ¶ added in v0.2.5
func (x *GetReconciledObjectsReq) GetAutomationKind() GetReconciledObjectsReq_AutomationKind
func (*GetReconciledObjectsReq) GetAutomationName ¶ added in v0.2.5
func (x *GetReconciledObjectsReq) GetAutomationName() string
func (*GetReconciledObjectsReq) GetAutomationNamespace ¶ added in v0.2.5
func (x *GetReconciledObjectsReq) GetAutomationNamespace() string
func (*GetReconciledObjectsReq) GetKinds ¶ added in v0.2.5
func (x *GetReconciledObjectsReq) GetKinds() []*GroupVersionKind
func (*GetReconciledObjectsReq) ProtoMessage ¶ added in v0.2.5
func (*GetReconciledObjectsReq) ProtoMessage()
func (*GetReconciledObjectsReq) ProtoReflect ¶ added in v0.2.5
func (x *GetReconciledObjectsReq) ProtoReflect() protoreflect.Message
func (*GetReconciledObjectsReq) Reset ¶ added in v0.2.5
func (x *GetReconciledObjectsReq) Reset()
func (*GetReconciledObjectsReq) String ¶ added in v0.2.5
func (x *GetReconciledObjectsReq) String() string
type GetReconciledObjectsReq_AutomationKind ¶ added in v0.2.5
type GetReconciledObjectsReq_AutomationKind int32
const ( GetReconciledObjectsReq_Kustomize GetReconciledObjectsReq_AutomationKind = 0 GetReconciledObjectsReq_Helm GetReconciledObjectsReq_AutomationKind = 1 )
func (GetReconciledObjectsReq_AutomationKind) Descriptor ¶ added in v0.2.5
func (GetReconciledObjectsReq_AutomationKind) Descriptor() protoreflect.EnumDescriptor
func (GetReconciledObjectsReq_AutomationKind) EnumDescriptor
deprecated
added in
v0.2.5
func (GetReconciledObjectsReq_AutomationKind) EnumDescriptor() ([]byte, []int)
Deprecated: Use GetReconciledObjectsReq_AutomationKind.Descriptor instead.
func (GetReconciledObjectsReq_AutomationKind) Number ¶ added in v0.2.5
func (x GetReconciledObjectsReq_AutomationKind) Number() protoreflect.EnumNumber
func (GetReconciledObjectsReq_AutomationKind) String ¶ added in v0.2.5
func (x GetReconciledObjectsReq_AutomationKind) String() string
func (GetReconciledObjectsReq_AutomationKind) Type ¶ added in v0.2.5
func (GetReconciledObjectsReq_AutomationKind) Type() protoreflect.EnumType
type GetReconciledObjectsRes ¶ added in v0.2.5
type GetReconciledObjectsRes struct {
Objects []*UnstructuredObject `protobuf:"bytes,1,rep,name=objects,proto3" json:"objects,omitempty"`
// contains filtered or unexported fields
}
func (*GetReconciledObjectsRes) Descriptor
deprecated
added in
v0.2.5
func (*GetReconciledObjectsRes) Descriptor() ([]byte, []int)
Deprecated: Use GetReconciledObjectsRes.ProtoReflect.Descriptor instead.
func (*GetReconciledObjectsRes) GetObjects ¶ added in v0.2.5
func (x *GetReconciledObjectsRes) GetObjects() []*UnstructuredObject
func (*GetReconciledObjectsRes) ProtoMessage ¶ added in v0.2.5
func (*GetReconciledObjectsRes) ProtoMessage()
func (*GetReconciledObjectsRes) ProtoReflect ¶ added in v0.2.5
func (x *GetReconciledObjectsRes) ProtoReflect() protoreflect.Message
func (*GetReconciledObjectsRes) Reset ¶ added in v0.2.5
func (x *GetReconciledObjectsRes) Reset()
func (*GetReconciledObjectsRes) String ¶ added in v0.2.5
func (x *GetReconciledObjectsRes) String() string
type GroupVersionKind ¶ added in v0.2.5
type GroupVersionKind struct {
Group string `protobuf:"bytes,1,opt,name=group,proto3" json:"group,omitempty"`
Kind string `protobuf:"bytes,2,opt,name=kind,proto3" json:"kind,omitempty"`
Version string `protobuf:"bytes,3,opt,name=version,proto3" json:"version,omitempty"`
// contains filtered or unexported fields
}
GroupVersionKind represents an objects Kubernetes API type data
func (*GroupVersionKind) Descriptor
deprecated
added in
v0.2.5
func (*GroupVersionKind) Descriptor() ([]byte, []int)
Deprecated: Use GroupVersionKind.ProtoReflect.Descriptor instead.
func (*GroupVersionKind) GetGroup ¶ added in v0.2.5
func (x *GroupVersionKind) GetGroup() string
func (*GroupVersionKind) GetKind ¶ added in v0.2.5
func (x *GroupVersionKind) GetKind() string
func (*GroupVersionKind) GetVersion ¶ added in v0.2.5
func (x *GroupVersionKind) GetVersion() string
func (*GroupVersionKind) ProtoMessage ¶ added in v0.2.5
func (*GroupVersionKind) ProtoMessage()
func (*GroupVersionKind) ProtoReflect ¶ added in v0.2.5
func (x *GroupVersionKind) ProtoReflect() protoreflect.Message
func (*GroupVersionKind) Reset ¶ added in v0.2.5
func (x *GroupVersionKind) Reset()
func (*GroupVersionKind) String ¶ added in v0.2.5
func (x *GroupVersionKind) String() string
type ListApplicationsRequest ¶
type ListApplicationsRequest struct {
Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"` // The namespace to look for applications
// contains filtered or unexported fields
}
func (*ListApplicationsRequest) Descriptor
deprecated
func (*ListApplicationsRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListApplicationsRequest.ProtoReflect.Descriptor instead.
func (*ListApplicationsRequest) GetNamespace ¶ added in v0.2.0
func (x *ListApplicationsRequest) GetNamespace() string
func (*ListApplicationsRequest) ProtoMessage ¶
func (*ListApplicationsRequest) ProtoMessage()
func (*ListApplicationsRequest) ProtoReflect ¶
func (x *ListApplicationsRequest) ProtoReflect() protoreflect.Message
func (*ListApplicationsRequest) Reset ¶
func (x *ListApplicationsRequest) Reset()
func (*ListApplicationsRequest) String ¶
func (x *ListApplicationsRequest) String() string
type ListApplicationsResponse ¶
type ListApplicationsResponse struct {
Applications []*Application `protobuf:"bytes,1,rep,name=applications,proto3" json:"applications,omitempty"` // A list of applications
// contains filtered or unexported fields
}
func (*ListApplicationsResponse) Descriptor
deprecated
func (*ListApplicationsResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListApplicationsResponse.ProtoReflect.Descriptor instead.
func (*ListApplicationsResponse) GetApplications ¶
func (x *ListApplicationsResponse) GetApplications() []*Application
func (*ListApplicationsResponse) ProtoMessage ¶
func (*ListApplicationsResponse) ProtoMessage()
func (*ListApplicationsResponse) ProtoReflect ¶
func (x *ListApplicationsResponse) ProtoReflect() protoreflect.Message
func (*ListApplicationsResponse) Reset ¶
func (x *ListApplicationsResponse) Reset()
func (*ListApplicationsResponse) String ¶
func (x *ListApplicationsResponse) String() string
type ListCommitsRequest ¶ added in v0.2.5
type ListCommitsRequest struct {
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // The application name
Namespace string `protobuf:"bytes,2,opt,name=namespace,proto3" json:"namespace,omitempty"` // The namespace the application is in
PageSize int32 `protobuf:"varint,3,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
// Optional. A pagination token returned from a previous call
// that indicates where this listing should continue from.
PageToken *int32 `protobuf:"varint,4,opt,name=page_token,json=pageToken,proto3,oneof" json:"page_token,omitempty"`
// contains filtered or unexported fields
}
func (*ListCommitsRequest) Descriptor
deprecated
added in
v0.2.5
func (*ListCommitsRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListCommitsRequest.ProtoReflect.Descriptor instead.
func (*ListCommitsRequest) GetName ¶ added in v0.2.5
func (x *ListCommitsRequest) GetName() string
func (*ListCommitsRequest) GetNamespace ¶ added in v0.2.5
func (x *ListCommitsRequest) GetNamespace() string
func (*ListCommitsRequest) GetPageSize ¶ added in v0.2.5
func (x *ListCommitsRequest) GetPageSize() int32
func (*ListCommitsRequest) GetPageToken ¶ added in v0.2.5
func (x *ListCommitsRequest) GetPageToken() int32
func (*ListCommitsRequest) ProtoMessage ¶ added in v0.2.5
func (*ListCommitsRequest) ProtoMessage()
func (*ListCommitsRequest) ProtoReflect ¶ added in v0.2.5
func (x *ListCommitsRequest) ProtoReflect() protoreflect.Message
func (*ListCommitsRequest) Reset ¶ added in v0.2.5
func (x *ListCommitsRequest) Reset()
func (*ListCommitsRequest) String ¶ added in v0.2.5
func (x *ListCommitsRequest) String() string
type ListCommitsResponse ¶ added in v0.2.5
type ListCommitsResponse struct {
Commits []*Commit `protobuf:"bytes,1,rep,name=commits,proto3" json:"commits,omitempty"` // A list of commits
// A pagination token returned from a previous call
// that indicates from where listing should continue.
NextPageToken int32 `protobuf:"varint,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
// contains filtered or unexported fields
}
func (*ListCommitsResponse) Descriptor
deprecated
added in
v0.2.5
func (*ListCommitsResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListCommitsResponse.ProtoReflect.Descriptor instead.
func (*ListCommitsResponse) GetCommits ¶ added in v0.2.5
func (x *ListCommitsResponse) GetCommits() []*Commit
func (*ListCommitsResponse) GetNextPageToken ¶ added in v0.2.5
func (x *ListCommitsResponse) GetNextPageToken() int32
func (*ListCommitsResponse) ProtoMessage ¶ added in v0.2.5
func (*ListCommitsResponse) ProtoMessage()
func (*ListCommitsResponse) ProtoReflect ¶ added in v0.2.5
func (x *ListCommitsResponse) ProtoReflect() protoreflect.Message
func (*ListCommitsResponse) Reset ¶ added in v0.2.5
func (x *ListCommitsResponse) Reset()
func (*ListCommitsResponse) String ¶ added in v0.2.5
func (x *ListCommitsResponse) 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) GetApplication ¶
func (UnimplementedApplicationsServer) GetApplication(context.Context, *GetApplicationRequest) (*GetApplicationResponse, error)
func (UnimplementedApplicationsServer) GetChildObjects ¶ added in v0.2.5
func (UnimplementedApplicationsServer) GetChildObjects(context.Context, *GetChildObjectsReq) (*GetChildObjectsRes, error)
func (UnimplementedApplicationsServer) GetReconciledObjects ¶ added in v0.2.5
func (UnimplementedApplicationsServer) GetReconciledObjects(context.Context, *GetReconciledObjectsReq) (*GetReconciledObjectsRes, error)
func (UnimplementedApplicationsServer) ListApplications ¶
func (UnimplementedApplicationsServer) ListApplications(context.Context, *ListApplicationsRequest) (*ListApplicationsResponse, error)
func (UnimplementedApplicationsServer) ListCommits ¶ added in v0.2.5
func (UnimplementedApplicationsServer) ListCommits(context.Context, *ListCommitsRequest) (*ListCommitsResponse, 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 UnstructuredObject ¶ added in v0.2.5
type UnstructuredObject struct {
GroupVersionKind *GroupVersionKind `protobuf:"bytes,1,opt,name=groupVersionKind,proto3" json:"groupVersionKind,omitempty"`
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
Namespace string `protobuf:"bytes,3,opt,name=namespace,proto3" json:"namespace,omitempty"`
Uid string `protobuf:"bytes,4,opt,name=uid,proto3" json:"uid,omitempty"`
Status string `protobuf:"bytes,5,opt,name=status,proto3" json:"status,omitempty"`
// contains filtered or unexported fields
}
UnstructuredObject is a Kubernetes object of an unknown type
func (*UnstructuredObject) Descriptor
deprecated
added in
v0.2.5
func (*UnstructuredObject) Descriptor() ([]byte, []int)
Deprecated: Use UnstructuredObject.ProtoReflect.Descriptor instead.
func (*UnstructuredObject) GetGroupVersionKind ¶ added in v0.2.5
func (x *UnstructuredObject) GetGroupVersionKind() *GroupVersionKind
func (*UnstructuredObject) GetName ¶ added in v0.2.5
func (x *UnstructuredObject) GetName() string
func (*UnstructuredObject) GetNamespace ¶ added in v0.2.5
func (x *UnstructuredObject) GetNamespace() string
func (*UnstructuredObject) GetStatus ¶ added in v0.2.5
func (x *UnstructuredObject) GetStatus() string
func (*UnstructuredObject) GetUid ¶ added in v0.2.5
func (x *UnstructuredObject) GetUid() string
func (*UnstructuredObject) ProtoMessage ¶ added in v0.2.5
func (*UnstructuredObject) ProtoMessage()
func (*UnstructuredObject) ProtoReflect ¶ added in v0.2.5
func (x *UnstructuredObject) ProtoReflect() protoreflect.Message
func (*UnstructuredObject) Reset ¶ added in v0.2.5
func (x *UnstructuredObject) Reset()
func (*UnstructuredObject) String ¶ added in v0.2.5
func (x *UnstructuredObject) String() string