Documentation ¶
Overview ¶
Package application is a generated protocol buffer package. Application Service Application Service API performs CRUD actions against application resources It is generated from these files: server/application/application.proto It has these top-level messages: ApplicationQuery ApplicationResponse DeleteApplicationRequest ApplicationSyncRequest ApplicationSyncResult ApplicationRollbackRequest ResourceDetails DeletePodQuery PodLogsQuery LogEntry
Package application is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Variables
- func RegisterApplicationServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterApplicationServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client ApplicationServiceClient) error
- func RegisterApplicationServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterApplicationServiceServer(s *grpc.Server, srv ApplicationServiceServer)
- type ApplicationQuery
- func (*ApplicationQuery) Descriptor() ([]byte, []int)
- func (m *ApplicationQuery) GetName() string
- func (m *ApplicationQuery) Marshal() (dAtA []byte, err error)
- func (m *ApplicationQuery) MarshalTo(dAtA []byte) (int, error)
- func (*ApplicationQuery) ProtoMessage()
- func (m *ApplicationQuery) Reset()
- func (m *ApplicationQuery) Size() (n int)
- func (m *ApplicationQuery) String() string
- func (m *ApplicationQuery) Unmarshal(dAtA []byte) error
- type ApplicationResponse
- func (*ApplicationResponse) Descriptor() ([]byte, []int)
- func (m *ApplicationResponse) Marshal() (dAtA []byte, err error)
- func (m *ApplicationResponse) MarshalTo(dAtA []byte) (int, error)
- func (*ApplicationResponse) ProtoMessage()
- func (m *ApplicationResponse) Reset()
- func (m *ApplicationResponse) Size() (n int)
- func (m *ApplicationResponse) String() string
- func (m *ApplicationResponse) Unmarshal(dAtA []byte) error
- type ApplicationRollbackRequest
- func (*ApplicationRollbackRequest) Descriptor() ([]byte, []int)
- func (m *ApplicationRollbackRequest) GetDryRun() bool
- func (m *ApplicationRollbackRequest) GetID() int64
- func (m *ApplicationRollbackRequest) GetName() string
- func (m *ApplicationRollbackRequest) GetPrune() bool
- func (m *ApplicationRollbackRequest) Marshal() (dAtA []byte, err error)
- func (m *ApplicationRollbackRequest) MarshalTo(dAtA []byte) (int, error)
- func (*ApplicationRollbackRequest) ProtoMessage()
- func (m *ApplicationRollbackRequest) Reset()
- func (m *ApplicationRollbackRequest) Size() (n int)
- func (m *ApplicationRollbackRequest) String() string
- func (m *ApplicationRollbackRequest) Unmarshal(dAtA []byte) error
- type ApplicationServiceClient
- type ApplicationServiceServer
- type ApplicationService_PodLogsClient
- type ApplicationService_PodLogsServer
- type ApplicationService_WatchClient
- type ApplicationService_WatchServer
- type ApplicationSyncRequest
- func (*ApplicationSyncRequest) Descriptor() ([]byte, []int)
- func (m *ApplicationSyncRequest) GetDryRun() bool
- func (m *ApplicationSyncRequest) GetName() string
- func (m *ApplicationSyncRequest) GetPrune() bool
- func (m *ApplicationSyncRequest) GetRevision() string
- func (m *ApplicationSyncRequest) Marshal() (dAtA []byte, err error)
- func (m *ApplicationSyncRequest) MarshalTo(dAtA []byte) (int, error)
- func (*ApplicationSyncRequest) ProtoMessage()
- func (m *ApplicationSyncRequest) Reset()
- func (m *ApplicationSyncRequest) Size() (n int)
- func (m *ApplicationSyncRequest) String() string
- func (m *ApplicationSyncRequest) Unmarshal(dAtA []byte) error
- type ApplicationSyncResult
- func (*ApplicationSyncResult) Descriptor() ([]byte, []int)
- func (m *ApplicationSyncResult) GetMessage() string
- func (m *ApplicationSyncResult) GetResources() []*ResourceDetails
- func (m *ApplicationSyncResult) Marshal() (dAtA []byte, err error)
- func (m *ApplicationSyncResult) MarshalTo(dAtA []byte) (int, error)
- func (*ApplicationSyncResult) ProtoMessage()
- func (m *ApplicationSyncResult) Reset()
- func (m *ApplicationSyncResult) Size() (n int)
- func (m *ApplicationSyncResult) String() string
- func (m *ApplicationSyncResult) Unmarshal(dAtA []byte) error
- type DeleteApplicationRequest
- func (*DeleteApplicationRequest) Descriptor() ([]byte, []int)
- func (m *DeleteApplicationRequest) GetForce() bool
- func (m *DeleteApplicationRequest) GetName() string
- func (m *DeleteApplicationRequest) GetNamespace() string
- func (m *DeleteApplicationRequest) GetServer() string
- func (m *DeleteApplicationRequest) Marshal() (dAtA []byte, err error)
- func (m *DeleteApplicationRequest) MarshalTo(dAtA []byte) (int, error)
- func (*DeleteApplicationRequest) ProtoMessage()
- func (m *DeleteApplicationRequest) Reset()
- func (m *DeleteApplicationRequest) Size() (n int)
- func (m *DeleteApplicationRequest) String() string
- func (m *DeleteApplicationRequest) Unmarshal(dAtA []byte) error
- type DeletePodQuery
- func (*DeletePodQuery) Descriptor() ([]byte, []int)
- func (m *DeletePodQuery) GetApplicationName() string
- func (m *DeletePodQuery) GetPodName() string
- func (m *DeletePodQuery) Marshal() (dAtA []byte, err error)
- func (m *DeletePodQuery) MarshalTo(dAtA []byte) (int, error)
- func (*DeletePodQuery) ProtoMessage()
- func (m *DeletePodQuery) Reset()
- func (m *DeletePodQuery) Size() (n int)
- func (m *DeletePodQuery) String() string
- func (m *DeletePodQuery) Unmarshal(dAtA []byte) error
- type LogEntry
- func (*LogEntry) Descriptor() ([]byte, []int)
- func (m *LogEntry) GetContent() string
- func (m *LogEntry) GetTimeStamp() *k8s_io_apimachinery_pkg_apis_meta_v1.Time
- func (m *LogEntry) Marshal() (dAtA []byte, err error)
- func (m *LogEntry) MarshalTo(dAtA []byte) (int, error)
- func (*LogEntry) ProtoMessage()
- func (m *LogEntry) Reset()
- func (m *LogEntry) Size() (n int)
- func (m *LogEntry) String() string
- func (m *LogEntry) Unmarshal(dAtA []byte) error
- type PodLogsQuery
- func (*PodLogsQuery) Descriptor() ([]byte, []int)
- func (m *PodLogsQuery) GetApplicationName() string
- func (m *PodLogsQuery) GetContainer() string
- func (m *PodLogsQuery) GetFollow() bool
- func (m *PodLogsQuery) GetPodName() string
- func (m *PodLogsQuery) GetSinceSeconds() int64
- func (m *PodLogsQuery) GetSinceTime() *k8s_io_apimachinery_pkg_apis_meta_v1.Time
- func (m *PodLogsQuery) GetTailLines() int64
- func (m *PodLogsQuery) Marshal() (dAtA []byte, err error)
- func (m *PodLogsQuery) MarshalTo(dAtA []byte) (int, error)
- func (*PodLogsQuery) ProtoMessage()
- func (m *PodLogsQuery) Reset()
- func (m *PodLogsQuery) Size() (n int)
- func (m *PodLogsQuery) String() string
- func (m *PodLogsQuery) Unmarshal(dAtA []byte) error
- type ResourceDetails
- func (*ResourceDetails) Descriptor() ([]byte, []int)
- func (m *ResourceDetails) GetKind() string
- func (m *ResourceDetails) GetMessage() string
- func (m *ResourceDetails) GetName() string
- func (m *ResourceDetails) GetNamespace() string
- func (m *ResourceDetails) Marshal() (dAtA []byte, err error)
- func (m *ResourceDetails) MarshalTo(dAtA []byte) (int, error)
- func (*ResourceDetails) ProtoMessage()
- func (m *ResourceDetails) Reset()
- func (m *ResourceDetails) Size() (n int)
- func (m *ResourceDetails) String() string
- func (m *ResourceDetails) Unmarshal(dAtA []byte) error
- type SSEMarshaler
- type Server
- func (s *Server) Create(ctx context.Context, a *appv1.Application) (*appv1.Application, error)
- func (s *Server) Delete(ctx context.Context, q *DeleteApplicationRequest) (*ApplicationResponse, error)
- func (s *Server) DeletePod(ctx context.Context, q *DeletePodQuery) (*ApplicationResponse, error)
- func (s *Server) Get(ctx context.Context, q *ApplicationQuery) (*appv1.Application, error)
- func (s *Server) List(ctx context.Context, q *ApplicationQuery) (*appv1.ApplicationList, error)
- func (s *Server) PodLogs(q *PodLogsQuery, ws ApplicationService_PodLogsServer) error
- func (s *Server) Rollback(ctx context.Context, rollbackReq *ApplicationRollbackRequest) (*ApplicationSyncResult, error)
- func (s *Server) Sync(ctx context.Context, syncReq *ApplicationSyncRequest) (*ApplicationSyncResult, error)
- func (s *Server) Update(ctx context.Context, a *appv1.Application) (*appv1.Application, error)
- func (s *Server) Watch(q *ApplicationQuery, ws ApplicationService_WatchServer) error
Constants ¶
This section is empty.
Variables ¶
var ( ErrInvalidLengthApplication = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowApplication = fmt.Errorf("proto: integer overflow") )
Functions ¶
func RegisterApplicationServiceHandler ¶
func RegisterApplicationServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
RegisterApplicationServiceHandler registers the http handlers for service ApplicationService to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterApplicationServiceHandlerClient ¶
func RegisterApplicationServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client ApplicationServiceClient) error
RegisterApplicationServiceHandler registers the http handlers for service ApplicationService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "ApplicationServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "ApplicationServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "ApplicationServiceClient" to call the correct interceptors.
func RegisterApplicationServiceHandlerFromEndpoint ¶
func RegisterApplicationServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterApplicationServiceHandlerFromEndpoint is same as RegisterApplicationServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterApplicationServiceServer ¶
func RegisterApplicationServiceServer(s *grpc.Server, srv ApplicationServiceServer)
Types ¶
type ApplicationQuery ¶
type ApplicationQuery struct {
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
}
ApplicationQuery is a query for application resources
func (*ApplicationQuery) Descriptor ¶
func (*ApplicationQuery) Descriptor() ([]byte, []int)
func (*ApplicationQuery) GetName ¶
func (m *ApplicationQuery) GetName() string
func (*ApplicationQuery) Marshal ¶ added in v0.3.1
func (m *ApplicationQuery) Marshal() (dAtA []byte, err error)
func (*ApplicationQuery) MarshalTo ¶ added in v0.3.1
func (m *ApplicationQuery) MarshalTo(dAtA []byte) (int, error)
func (*ApplicationQuery) ProtoMessage ¶
func (*ApplicationQuery) ProtoMessage()
func (*ApplicationQuery) Reset ¶
func (m *ApplicationQuery) Reset()
func (*ApplicationQuery) Size ¶ added in v0.3.1
func (m *ApplicationQuery) Size() (n int)
func (*ApplicationQuery) String ¶
func (m *ApplicationQuery) String() string
func (*ApplicationQuery) Unmarshal ¶ added in v0.3.1
func (m *ApplicationQuery) Unmarshal(dAtA []byte) error
type ApplicationResponse ¶
type ApplicationResponse struct { }
func (*ApplicationResponse) Descriptor ¶
func (*ApplicationResponse) Descriptor() ([]byte, []int)
func (*ApplicationResponse) Marshal ¶ added in v0.3.1
func (m *ApplicationResponse) Marshal() (dAtA []byte, err error)
func (*ApplicationResponse) MarshalTo ¶ added in v0.3.1
func (m *ApplicationResponse) MarshalTo(dAtA []byte) (int, error)
func (*ApplicationResponse) ProtoMessage ¶
func (*ApplicationResponse) ProtoMessage()
func (*ApplicationResponse) Reset ¶
func (m *ApplicationResponse) Reset()
func (*ApplicationResponse) Size ¶ added in v0.3.1
func (m *ApplicationResponse) Size() (n int)
func (*ApplicationResponse) String ¶
func (m *ApplicationResponse) String() string
func (*ApplicationResponse) Unmarshal ¶ added in v0.3.1
func (m *ApplicationResponse) Unmarshal(dAtA []byte) error
type ApplicationRollbackRequest ¶ added in v0.3.1
type ApplicationRollbackRequest struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` ID int64 `protobuf:"varint,2,opt,name=id,proto3" json:"id,omitempty"` DryRun bool `protobuf:"varint,3,opt,name=dryRun,proto3" json:"dryRun,omitempty"` Prune bool `protobuf:"varint,4,opt,name=prune,proto3" json:"prune,omitempty"` }
func (*ApplicationRollbackRequest) Descriptor ¶ added in v0.3.1
func (*ApplicationRollbackRequest) Descriptor() ([]byte, []int)
func (*ApplicationRollbackRequest) GetDryRun ¶ added in v0.3.1
func (m *ApplicationRollbackRequest) GetDryRun() bool
func (*ApplicationRollbackRequest) GetID ¶ added in v0.3.1
func (m *ApplicationRollbackRequest) GetID() int64
func (*ApplicationRollbackRequest) GetName ¶ added in v0.3.1
func (m *ApplicationRollbackRequest) GetName() string
func (*ApplicationRollbackRequest) GetPrune ¶ added in v0.3.2
func (m *ApplicationRollbackRequest) GetPrune() bool
func (*ApplicationRollbackRequest) Marshal ¶ added in v0.3.1
func (m *ApplicationRollbackRequest) Marshal() (dAtA []byte, err error)
func (*ApplicationRollbackRequest) MarshalTo ¶ added in v0.3.1
func (m *ApplicationRollbackRequest) MarshalTo(dAtA []byte) (int, error)
func (*ApplicationRollbackRequest) ProtoMessage ¶ added in v0.3.1
func (*ApplicationRollbackRequest) ProtoMessage()
func (*ApplicationRollbackRequest) Reset ¶ added in v0.3.1
func (m *ApplicationRollbackRequest) Reset()
func (*ApplicationRollbackRequest) Size ¶ added in v0.3.1
func (m *ApplicationRollbackRequest) Size() (n int)
func (*ApplicationRollbackRequest) String ¶ added in v0.3.1
func (m *ApplicationRollbackRequest) String() string
func (*ApplicationRollbackRequest) Unmarshal ¶ added in v0.3.1
func (m *ApplicationRollbackRequest) Unmarshal(dAtA []byte) error
type ApplicationServiceClient ¶
type ApplicationServiceClient interface { // List returns list of applications List(ctx context.Context, in *ApplicationQuery, opts ...grpc.CallOption) (*github_com_argoproj_argo_cd_pkg_apis_application_v1alpha1.ApplicationList, error) // Watch returns stream of application change events. Watch(ctx context.Context, in *ApplicationQuery, opts ...grpc.CallOption) (ApplicationService_WatchClient, error) // Create creates an application Create(ctx context.Context, in *github_com_argoproj_argo_cd_pkg_apis_application_v1alpha1.Application, opts ...grpc.CallOption) (*github_com_argoproj_argo_cd_pkg_apis_application_v1alpha1.Application, error) // Get returns an application by name Get(ctx context.Context, in *ApplicationQuery, opts ...grpc.CallOption) (*github_com_argoproj_argo_cd_pkg_apis_application_v1alpha1.Application, error) // Update updates an application Update(ctx context.Context, in *github_com_argoproj_argo_cd_pkg_apis_application_v1alpha1.Application, opts ...grpc.CallOption) (*github_com_argoproj_argo_cd_pkg_apis_application_v1alpha1.Application, error) // Delete deletes an application Delete(ctx context.Context, in *DeleteApplicationRequest, opts ...grpc.CallOption) (*ApplicationResponse, error) // Sync syncs an application to its target state Sync(ctx context.Context, in *ApplicationSyncRequest, opts ...grpc.CallOption) (*ApplicationSyncResult, error) // Sync syncs an application to its target state Rollback(ctx context.Context, in *ApplicationRollbackRequest, opts ...grpc.CallOption) (*ApplicationSyncResult, error) // PodLogs returns stream of log entries for the specified pod. Pod DeletePod(ctx context.Context, in *DeletePodQuery, opts ...grpc.CallOption) (*ApplicationResponse, error) // PodLogs returns stream of log entries for the specified pod. Pod PodLogs(ctx context.Context, in *PodLogsQuery, opts ...grpc.CallOption) (ApplicationService_PodLogsClient, error) }
func NewApplicationServiceClient ¶
func NewApplicationServiceClient(cc *grpc.ClientConn) ApplicationServiceClient
type ApplicationServiceServer ¶
type ApplicationServiceServer interface { // List returns list of applications List(context.Context, *ApplicationQuery) (*github_com_argoproj_argo_cd_pkg_apis_application_v1alpha1.ApplicationList, error) // Watch returns stream of application change events. Watch(*ApplicationQuery, ApplicationService_WatchServer) error // Create creates an application Create(context.Context, *github_com_argoproj_argo_cd_pkg_apis_application_v1alpha1.Application) (*github_com_argoproj_argo_cd_pkg_apis_application_v1alpha1.Application, error) // Get returns an application by name Get(context.Context, *ApplicationQuery) (*github_com_argoproj_argo_cd_pkg_apis_application_v1alpha1.Application, error) // Update updates an application Update(context.Context, *github_com_argoproj_argo_cd_pkg_apis_application_v1alpha1.Application) (*github_com_argoproj_argo_cd_pkg_apis_application_v1alpha1.Application, error) // Delete deletes an application Delete(context.Context, *DeleteApplicationRequest) (*ApplicationResponse, error) // Sync syncs an application to its target state Sync(context.Context, *ApplicationSyncRequest) (*ApplicationSyncResult, error) // Sync syncs an application to its target state Rollback(context.Context, *ApplicationRollbackRequest) (*ApplicationSyncResult, error) // PodLogs returns stream of log entries for the specified pod. Pod DeletePod(context.Context, *DeletePodQuery) (*ApplicationResponse, error) // PodLogs returns stream of log entries for the specified pod. Pod PodLogs(*PodLogsQuery, ApplicationService_PodLogsServer) error }
func NewServer ¶
func NewServer( namespace string, kubeclientset kubernetes.Interface, appclientset appclientset.Interface, repoClientset reposerver.Clientset, repoService apirepository.RepositoryServiceServer, clusterService cluster.ClusterServiceServer) ApplicationServiceServer
NewServer returns a new instance of the Application service
type ApplicationService_PodLogsClient ¶ added in v0.3.0
type ApplicationService_PodLogsClient interface { Recv() (*LogEntry, error) grpc.ClientStream }
type ApplicationService_PodLogsServer ¶ added in v0.3.0
type ApplicationService_PodLogsServer interface { Send(*LogEntry) error grpc.ServerStream }
type ApplicationService_WatchClient ¶
type ApplicationService_WatchClient interface { Recv() (*github_com_argoproj_argo_cd_pkg_apis_application_v1alpha1.ApplicationWatchEvent, error) grpc.ClientStream }
type ApplicationService_WatchServer ¶
type ApplicationService_WatchServer interface { Send(*github_com_argoproj_argo_cd_pkg_apis_application_v1alpha1.ApplicationWatchEvent) error grpc.ServerStream }
type ApplicationSyncRequest ¶
type ApplicationSyncRequest struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Revision string `protobuf:"bytes,2,opt,name=revision,proto3" json:"revision,omitempty"` DryRun bool `protobuf:"varint,3,opt,name=dryRun,proto3" json:"dryRun,omitempty"` Prune bool `protobuf:"varint,4,opt,name=prune,proto3" json:"prune,omitempty"` }
ApplicationSyncRequest is a request to apply the config state to live state
func (*ApplicationSyncRequest) Descriptor ¶
func (*ApplicationSyncRequest) Descriptor() ([]byte, []int)
func (*ApplicationSyncRequest) GetDryRun ¶
func (m *ApplicationSyncRequest) GetDryRun() bool
func (*ApplicationSyncRequest) GetName ¶
func (m *ApplicationSyncRequest) GetName() string
func (*ApplicationSyncRequest) GetPrune ¶ added in v0.3.2
func (m *ApplicationSyncRequest) GetPrune() bool
func (*ApplicationSyncRequest) GetRevision ¶
func (m *ApplicationSyncRequest) GetRevision() string
func (*ApplicationSyncRequest) Marshal ¶ added in v0.3.1
func (m *ApplicationSyncRequest) Marshal() (dAtA []byte, err error)
func (*ApplicationSyncRequest) MarshalTo ¶ added in v0.3.1
func (m *ApplicationSyncRequest) MarshalTo(dAtA []byte) (int, error)
func (*ApplicationSyncRequest) ProtoMessage ¶
func (*ApplicationSyncRequest) ProtoMessage()
func (*ApplicationSyncRequest) Reset ¶
func (m *ApplicationSyncRequest) Reset()
func (*ApplicationSyncRequest) Size ¶ added in v0.3.1
func (m *ApplicationSyncRequest) Size() (n int)
func (*ApplicationSyncRequest) String ¶
func (m *ApplicationSyncRequest) String() string
func (*ApplicationSyncRequest) Unmarshal ¶ added in v0.3.1
func (m *ApplicationSyncRequest) Unmarshal(dAtA []byte) error
type ApplicationSyncResult ¶
type ApplicationSyncResult struct { Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"` Resources []*ResourceDetails `protobuf:"bytes,2,rep,name=resources" json:"resources,omitempty"` }
ApplicationSyncResult is a result of a sync requeswt
func (*ApplicationSyncResult) Descriptor ¶
func (*ApplicationSyncResult) Descriptor() ([]byte, []int)
func (*ApplicationSyncResult) GetMessage ¶
func (m *ApplicationSyncResult) GetMessage() string
func (*ApplicationSyncResult) GetResources ¶
func (m *ApplicationSyncResult) GetResources() []*ResourceDetails
func (*ApplicationSyncResult) Marshal ¶ added in v0.3.1
func (m *ApplicationSyncResult) Marshal() (dAtA []byte, err error)
func (*ApplicationSyncResult) MarshalTo ¶ added in v0.3.1
func (m *ApplicationSyncResult) MarshalTo(dAtA []byte) (int, error)
func (*ApplicationSyncResult) ProtoMessage ¶
func (*ApplicationSyncResult) ProtoMessage()
func (*ApplicationSyncResult) Reset ¶
func (m *ApplicationSyncResult) Reset()
func (*ApplicationSyncResult) Size ¶ added in v0.3.1
func (m *ApplicationSyncResult) Size() (n int)
func (*ApplicationSyncResult) String ¶
func (m *ApplicationSyncResult) String() string
func (*ApplicationSyncResult) Unmarshal ¶ added in v0.3.1
func (m *ApplicationSyncResult) Unmarshal(dAtA []byte) error
type DeleteApplicationRequest ¶
type DeleteApplicationRequest struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Namespace string `protobuf:"bytes,2,opt,name=namespace,proto3" json:"namespace,omitempty"` Server string `protobuf:"bytes,3,opt,name=server,proto3" json:"server,omitempty"` Force bool `protobuf:"varint,4,opt,name=force,proto3" json:"force,omitempty"` }
func (*DeleteApplicationRequest) Descriptor ¶
func (*DeleteApplicationRequest) Descriptor() ([]byte, []int)
func (*DeleteApplicationRequest) GetForce ¶ added in v0.3.0
func (m *DeleteApplicationRequest) GetForce() bool
func (*DeleteApplicationRequest) GetName ¶
func (m *DeleteApplicationRequest) GetName() string
func (*DeleteApplicationRequest) GetNamespace ¶
func (m *DeleteApplicationRequest) GetNamespace() string
func (*DeleteApplicationRequest) GetServer ¶
func (m *DeleteApplicationRequest) GetServer() string
func (*DeleteApplicationRequest) Marshal ¶ added in v0.3.1
func (m *DeleteApplicationRequest) Marshal() (dAtA []byte, err error)
func (*DeleteApplicationRequest) MarshalTo ¶ added in v0.3.1
func (m *DeleteApplicationRequest) MarshalTo(dAtA []byte) (int, error)
func (*DeleteApplicationRequest) ProtoMessage ¶
func (*DeleteApplicationRequest) ProtoMessage()
func (*DeleteApplicationRequest) Reset ¶
func (m *DeleteApplicationRequest) Reset()
func (*DeleteApplicationRequest) Size ¶ added in v0.3.1
func (m *DeleteApplicationRequest) Size() (n int)
func (*DeleteApplicationRequest) String ¶
func (m *DeleteApplicationRequest) String() string
func (*DeleteApplicationRequest) Unmarshal ¶ added in v0.3.1
func (m *DeleteApplicationRequest) Unmarshal(dAtA []byte) error
type DeletePodQuery ¶ added in v0.3.0
type DeletePodQuery struct { ApplicationName string `protobuf:"bytes,1,opt,name=applicationName,proto3" json:"applicationName,omitempty"` PodName string `protobuf:"bytes,2,opt,name=podName,proto3" json:"podName,omitempty"` }
func (*DeletePodQuery) Descriptor ¶ added in v0.3.0
func (*DeletePodQuery) Descriptor() ([]byte, []int)
func (*DeletePodQuery) GetApplicationName ¶ added in v0.3.0
func (m *DeletePodQuery) GetApplicationName() string
func (*DeletePodQuery) GetPodName ¶ added in v0.3.0
func (m *DeletePodQuery) GetPodName() string
func (*DeletePodQuery) Marshal ¶ added in v0.3.1
func (m *DeletePodQuery) Marshal() (dAtA []byte, err error)
func (*DeletePodQuery) MarshalTo ¶ added in v0.3.1
func (m *DeletePodQuery) MarshalTo(dAtA []byte) (int, error)
func (*DeletePodQuery) ProtoMessage ¶ added in v0.3.0
func (*DeletePodQuery) ProtoMessage()
func (*DeletePodQuery) Reset ¶ added in v0.3.0
func (m *DeletePodQuery) Reset()
func (*DeletePodQuery) Size ¶ added in v0.3.1
func (m *DeletePodQuery) Size() (n int)
func (*DeletePodQuery) String ¶ added in v0.3.0
func (m *DeletePodQuery) String() string
func (*DeletePodQuery) Unmarshal ¶ added in v0.3.1
func (m *DeletePodQuery) Unmarshal(dAtA []byte) error
type LogEntry ¶ added in v0.3.0
type LogEntry struct { Content string `protobuf:"bytes,1,opt,name=content,proto3" json:"content,omitempty"` TimeStamp *k8s_io_apimachinery_pkg_apis_meta_v1.Time `protobuf:"bytes,2,opt,name=timeStamp" json:"timeStamp,omitempty"` }
func (*LogEntry) Descriptor ¶ added in v0.3.0
func (*LogEntry) GetContent ¶ added in v0.3.0
func (*LogEntry) GetTimeStamp ¶ added in v0.3.0
func (m *LogEntry) GetTimeStamp() *k8s_io_apimachinery_pkg_apis_meta_v1.Time
func (*LogEntry) ProtoMessage ¶ added in v0.3.0
func (*LogEntry) ProtoMessage()
type PodLogsQuery ¶ added in v0.3.0
type PodLogsQuery struct { ApplicationName string `protobuf:"bytes,1,opt,name=applicationName,proto3" json:"applicationName,omitempty"` PodName string `protobuf:"bytes,2,opt,name=podName,proto3" json:"podName,omitempty"` Container string `protobuf:"bytes,3,opt,name=container,proto3" json:"container,omitempty"` SinceSeconds int64 `protobuf:"varint,4,opt,name=sinceSeconds,proto3" json:"sinceSeconds,omitempty"` SinceTime *k8s_io_apimachinery_pkg_apis_meta_v1.Time `protobuf:"bytes,5,opt,name=sinceTime" json:"sinceTime,omitempty"` TailLines int64 `protobuf:"varint,6,opt,name=tailLines,proto3" json:"tailLines,omitempty"` Follow bool `protobuf:"varint,7,opt,name=follow,proto3" json:"follow,omitempty"` }
func (*PodLogsQuery) Descriptor ¶ added in v0.3.0
func (*PodLogsQuery) Descriptor() ([]byte, []int)
func (*PodLogsQuery) GetApplicationName ¶ added in v0.3.0
func (m *PodLogsQuery) GetApplicationName() string
func (*PodLogsQuery) GetContainer ¶ added in v0.3.0
func (m *PodLogsQuery) GetContainer() string
func (*PodLogsQuery) GetFollow ¶ added in v0.3.0
func (m *PodLogsQuery) GetFollow() bool
func (*PodLogsQuery) GetPodName ¶ added in v0.3.0
func (m *PodLogsQuery) GetPodName() string
func (*PodLogsQuery) GetSinceSeconds ¶ added in v0.3.0
func (m *PodLogsQuery) GetSinceSeconds() int64
func (*PodLogsQuery) GetSinceTime ¶ added in v0.3.0
func (m *PodLogsQuery) GetSinceTime() *k8s_io_apimachinery_pkg_apis_meta_v1.Time
func (*PodLogsQuery) GetTailLines ¶ added in v0.3.0
func (m *PodLogsQuery) GetTailLines() int64
func (*PodLogsQuery) Marshal ¶ added in v0.3.1
func (m *PodLogsQuery) Marshal() (dAtA []byte, err error)
func (*PodLogsQuery) MarshalTo ¶ added in v0.3.1
func (m *PodLogsQuery) MarshalTo(dAtA []byte) (int, error)
func (*PodLogsQuery) ProtoMessage ¶ added in v0.3.0
func (*PodLogsQuery) ProtoMessage()
func (*PodLogsQuery) Reset ¶ added in v0.3.0
func (m *PodLogsQuery) Reset()
func (*PodLogsQuery) Size ¶ added in v0.3.1
func (m *PodLogsQuery) Size() (n int)
func (*PodLogsQuery) String ¶ added in v0.3.0
func (m *PodLogsQuery) String() string
func (*PodLogsQuery) Unmarshal ¶ added in v0.3.1
func (m *PodLogsQuery) Unmarshal(dAtA []byte) error
type ResourceDetails ¶
type ResourceDetails struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Kind string `protobuf:"bytes,2,opt,name=kind,proto3" json:"kind,omitempty"` Namespace string `protobuf:"bytes,3,opt,name=namespace,proto3" json:"namespace,omitempty"` Message string `protobuf:"bytes,4,opt,name=message,proto3" json:"message,omitempty"` }
func (*ResourceDetails) Descriptor ¶
func (*ResourceDetails) Descriptor() ([]byte, []int)
func (*ResourceDetails) GetKind ¶
func (m *ResourceDetails) GetKind() string
func (*ResourceDetails) GetMessage ¶
func (m *ResourceDetails) GetMessage() string
func (*ResourceDetails) GetName ¶
func (m *ResourceDetails) GetName() string
func (*ResourceDetails) GetNamespace ¶
func (m *ResourceDetails) GetNamespace() string
func (*ResourceDetails) Marshal ¶ added in v0.3.1
func (m *ResourceDetails) Marshal() (dAtA []byte, err error)
func (*ResourceDetails) MarshalTo ¶ added in v0.3.1
func (m *ResourceDetails) MarshalTo(dAtA []byte) (int, error)
func (*ResourceDetails) ProtoMessage ¶
func (*ResourceDetails) ProtoMessage()
func (*ResourceDetails) Reset ¶
func (m *ResourceDetails) Reset()
func (*ResourceDetails) Size ¶ added in v0.3.1
func (m *ResourceDetails) Size() (n int)
func (*ResourceDetails) String ¶
func (m *ResourceDetails) String() string
func (*ResourceDetails) Unmarshal ¶ added in v0.3.1
func (m *ResourceDetails) Unmarshal(dAtA []byte) error
type SSEMarshaler ¶
type SSEMarshaler struct { }
func (*SSEMarshaler) ContentType ¶
func (m *SSEMarshaler) ContentType() string
func (*SSEMarshaler) Marshal ¶
func (m *SSEMarshaler) Marshal(v interface{}) ([]byte, error)
func (*SSEMarshaler) NewDecoder ¶
func (m *SSEMarshaler) NewDecoder(r io.Reader) runtime.Decoder
func (*SSEMarshaler) NewEncoder ¶
func (m *SSEMarshaler) NewEncoder(w io.Writer) runtime.Encoder
func (*SSEMarshaler) Unmarshal ¶
func (m *SSEMarshaler) Unmarshal(data []byte, v interface{}) error
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server provides a Application service
func (*Server) Create ¶
func (s *Server) Create(ctx context.Context, a *appv1.Application) (*appv1.Application, error)
Create creates an application
func (*Server) Delete ¶
func (s *Server) Delete(ctx context.Context, q *DeleteApplicationRequest) (*ApplicationResponse, error)
Delete removes an application and all associated resources
func (*Server) DeletePod ¶ added in v0.3.0
func (s *Server) DeletePod(ctx context.Context, q *DeletePodQuery) (*ApplicationResponse, error)
func (*Server) Get ¶
func (s *Server) Get(ctx context.Context, q *ApplicationQuery) (*appv1.Application, error)
Get returns an application by name
func (*Server) List ¶
func (s *Server) List(ctx context.Context, q *ApplicationQuery) (*appv1.ApplicationList, error)
List returns list of applications
func (*Server) PodLogs ¶ added in v0.3.0
func (s *Server) PodLogs(q *PodLogsQuery, ws ApplicationService_PodLogsServer) error
func (*Server) Rollback ¶ added in v0.3.1
func (s *Server) Rollback(ctx context.Context, rollbackReq *ApplicationRollbackRequest) (*ApplicationSyncResult, error)
func (*Server) Sync ¶
func (s *Server) Sync(ctx context.Context, syncReq *ApplicationSyncRequest) (*ApplicationSyncResult, error)
Sync syncs an application to its target state
func (*Server) Update ¶
func (s *Server) Update(ctx context.Context, a *appv1.Application) (*appv1.Application, error)
Update updates an application
func (*Server) Watch ¶
func (s *Server) Watch(q *ApplicationQuery, ws ApplicationService_WatchServer) error