Documentation ¶
Overview ¶
Package repository is a generated protocol buffer package. Repository Service Repository Service API performs CRUD actions against repository resources It is generated from these files: server/repository/repository.proto It has these top-level messages: RepoAppsQuery AppInfo RepoAppDetailsQuery RepoAppDetailsResponse RepoAppsResponse KsonnetAppSpec HelmAppSpec KsonnetEnvironment KsonnetEnvironmentDestination RepoQuery RepoResponse RepoCreateRequest RepoUpdateRequest
Package repository is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Variables
- func RegisterRepositoryServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterRepositoryServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client RepositoryServiceClient) error
- func RegisterRepositoryServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterRepositoryServiceServer(s *grpc.Server, srv RepositoryServiceServer)
- type AppInfo
- func (*AppInfo) Descriptor() ([]byte, []int)
- func (m *AppInfo) GetPath() string
- func (m *AppInfo) GetType() string
- func (m *AppInfo) Marshal() (dAtA []byte, err error)
- func (m *AppInfo) MarshalTo(dAtA []byte) (int, error)
- func (*AppInfo) ProtoMessage()
- func (m *AppInfo) Reset()
- func (m *AppInfo) Size() (n int)
- func (m *AppInfo) String() string
- func (m *AppInfo) Unmarshal(dAtA []byte) error
- type HelmAppSpec
- func (*HelmAppSpec) Descriptor() ([]byte, []int)
- func (m *HelmAppSpec) GetName() string
- func (m *HelmAppSpec) GetPath() string
- func (m *HelmAppSpec) GetValueFiles() []string
- func (m *HelmAppSpec) Marshal() (dAtA []byte, err error)
- func (m *HelmAppSpec) MarshalTo(dAtA []byte) (int, error)
- func (*HelmAppSpec) ProtoMessage()
- func (m *HelmAppSpec) Reset()
- func (m *HelmAppSpec) Size() (n int)
- func (m *HelmAppSpec) String() string
- func (m *HelmAppSpec) Unmarshal(dAtA []byte) error
- type KsonnetAppSpec
- func (*KsonnetAppSpec) Descriptor() ([]byte, []int)
- func (m *KsonnetAppSpec) GetEnvironments() map[string]*KsonnetEnvironment
- func (m *KsonnetAppSpec) GetName() string
- func (m *KsonnetAppSpec) GetPath() string
- func (m *KsonnetAppSpec) Marshal() (dAtA []byte, err error)
- func (m *KsonnetAppSpec) MarshalTo(dAtA []byte) (int, error)
- func (*KsonnetAppSpec) ProtoMessage()
- func (m *KsonnetAppSpec) Reset()
- func (m *KsonnetAppSpec) Size() (n int)
- func (m *KsonnetAppSpec) String() string
- func (m *KsonnetAppSpec) Unmarshal(dAtA []byte) error
- type KsonnetEnvironment
- func (*KsonnetEnvironment) Descriptor() ([]byte, []int)
- func (m *KsonnetEnvironment) GetDestination() *KsonnetEnvironmentDestination
- func (m *KsonnetEnvironment) GetK8SVersion() string
- func (m *KsonnetEnvironment) GetName() string
- func (m *KsonnetEnvironment) GetPath() string
- func (m *KsonnetEnvironment) Marshal() (dAtA []byte, err error)
- func (m *KsonnetEnvironment) MarshalTo(dAtA []byte) (int, error)
- func (*KsonnetEnvironment) ProtoMessage()
- func (m *KsonnetEnvironment) Reset()
- func (m *KsonnetEnvironment) Size() (n int)
- func (m *KsonnetEnvironment) String() string
- func (m *KsonnetEnvironment) Unmarshal(dAtA []byte) error
- type KsonnetEnvironmentDestination
- func (*KsonnetEnvironmentDestination) Descriptor() ([]byte, []int)
- func (m *KsonnetEnvironmentDestination) GetNamespace() string
- func (m *KsonnetEnvironmentDestination) GetServer() string
- func (m *KsonnetEnvironmentDestination) Marshal() (dAtA []byte, err error)
- func (m *KsonnetEnvironmentDestination) MarshalTo(dAtA []byte) (int, error)
- func (*KsonnetEnvironmentDestination) ProtoMessage()
- func (m *KsonnetEnvironmentDestination) Reset()
- func (m *KsonnetEnvironmentDestination) Size() (n int)
- func (m *KsonnetEnvironmentDestination) String() string
- func (m *KsonnetEnvironmentDestination) Unmarshal(dAtA []byte) error
- type RepoAppDetailsQuery
- func (*RepoAppDetailsQuery) Descriptor() ([]byte, []int)
- func (m *RepoAppDetailsQuery) GetPath() string
- func (m *RepoAppDetailsQuery) GetRepo() string
- func (m *RepoAppDetailsQuery) GetRevision() string
- func (m *RepoAppDetailsQuery) Marshal() (dAtA []byte, err error)
- func (m *RepoAppDetailsQuery) MarshalTo(dAtA []byte) (int, error)
- func (*RepoAppDetailsQuery) ProtoMessage()
- func (m *RepoAppDetailsQuery) Reset()
- func (m *RepoAppDetailsQuery) Size() (n int)
- func (m *RepoAppDetailsQuery) String() string
- func (m *RepoAppDetailsQuery) Unmarshal(dAtA []byte) error
- type RepoAppDetailsResponse
- func (*RepoAppDetailsResponse) Descriptor() ([]byte, []int)
- func (m *RepoAppDetailsResponse) GetHelm() *HelmAppSpec
- func (m *RepoAppDetailsResponse) GetKsonnet() *KsonnetAppSpec
- func (m *RepoAppDetailsResponse) GetType() string
- func (m *RepoAppDetailsResponse) Marshal() (dAtA []byte, err error)
- func (m *RepoAppDetailsResponse) MarshalTo(dAtA []byte) (int, error)
- func (*RepoAppDetailsResponse) ProtoMessage()
- func (m *RepoAppDetailsResponse) Reset()
- func (m *RepoAppDetailsResponse) Size() (n int)
- func (m *RepoAppDetailsResponse) String() string
- func (m *RepoAppDetailsResponse) Unmarshal(dAtA []byte) error
- type RepoAppsQuery
- func (*RepoAppsQuery) Descriptor() ([]byte, []int)
- func (m *RepoAppsQuery) GetRepo() string
- func (m *RepoAppsQuery) GetRevision() string
- func (m *RepoAppsQuery) Marshal() (dAtA []byte, err error)
- func (m *RepoAppsQuery) MarshalTo(dAtA []byte) (int, error)
- func (*RepoAppsQuery) ProtoMessage()
- func (m *RepoAppsQuery) Reset()
- func (m *RepoAppsQuery) Size() (n int)
- func (m *RepoAppsQuery) String() string
- func (m *RepoAppsQuery) Unmarshal(dAtA []byte) error
- type RepoAppsResponse
- func (*RepoAppsResponse) Descriptor() ([]byte, []int)
- func (m *RepoAppsResponse) GetItems() []*AppInfo
- func (m *RepoAppsResponse) Marshal() (dAtA []byte, err error)
- func (m *RepoAppsResponse) MarshalTo(dAtA []byte) (int, error)
- func (*RepoAppsResponse) ProtoMessage()
- func (m *RepoAppsResponse) Reset()
- func (m *RepoAppsResponse) Size() (n int)
- func (m *RepoAppsResponse) String() string
- func (m *RepoAppsResponse) Unmarshal(dAtA []byte) error
- type RepoCreateRequest
- func (*RepoCreateRequest) Descriptor() ([]byte, []int)
- func (m *RepoCreateRequest) GetRepo() *github_com_argoproj_argo_cd_pkg_apis_application_v1alpha1.Repository
- func (m *RepoCreateRequest) GetUpsert() bool
- func (m *RepoCreateRequest) Marshal() (dAtA []byte, err error)
- func (m *RepoCreateRequest) MarshalTo(dAtA []byte) (int, error)
- func (*RepoCreateRequest) ProtoMessage()
- func (m *RepoCreateRequest) Reset()
- func (m *RepoCreateRequest) Size() (n int)
- func (m *RepoCreateRequest) String() string
- func (m *RepoCreateRequest) Unmarshal(dAtA []byte) error
- type RepoQuery
- func (*RepoQuery) Descriptor() ([]byte, []int)
- func (m *RepoQuery) GetRepo() string
- func (m *RepoQuery) Marshal() (dAtA []byte, err error)
- func (m *RepoQuery) MarshalTo(dAtA []byte) (int, error)
- func (*RepoQuery) ProtoMessage()
- func (m *RepoQuery) Reset()
- func (m *RepoQuery) Size() (n int)
- func (m *RepoQuery) String() string
- func (m *RepoQuery) Unmarshal(dAtA []byte) error
- type RepoResponse
- func (*RepoResponse) Descriptor() ([]byte, []int)
- func (m *RepoResponse) Marshal() (dAtA []byte, err error)
- func (m *RepoResponse) MarshalTo(dAtA []byte) (int, error)
- func (*RepoResponse) ProtoMessage()
- func (m *RepoResponse) Reset()
- func (m *RepoResponse) Size() (n int)
- func (m *RepoResponse) String() string
- func (m *RepoResponse) Unmarshal(dAtA []byte) error
- type RepoUpdateRequest
- func (*RepoUpdateRequest) Descriptor() ([]byte, []int)
- func (m *RepoUpdateRequest) GetRepo() *github_com_argoproj_argo_cd_pkg_apis_application_v1alpha1.Repository
- func (m *RepoUpdateRequest) Marshal() (dAtA []byte, err error)
- func (m *RepoUpdateRequest) MarshalTo(dAtA []byte) (int, error)
- func (*RepoUpdateRequest) ProtoMessage()
- func (m *RepoUpdateRequest) Reset()
- func (m *RepoUpdateRequest) Size() (n int)
- func (m *RepoUpdateRequest) String() string
- func (m *RepoUpdateRequest) Unmarshal(dAtA []byte) error
- type RepositoryServiceClient
- type RepositoryServiceServer
- type Server
- func (s *Server) Create(ctx context.Context, q *RepoCreateRequest) (*appsv1.Repository, error)
- func (s *Server) Delete(ctx context.Context, q *RepoQuery) (*RepoResponse, error)
- func (s *Server) Get(ctx context.Context, q *RepoQuery) (*appsv1.Repository, error)
- func (s *Server) GetAppDetails(ctx context.Context, q *RepoAppDetailsQuery) (*RepoAppDetailsResponse, error)
- func (s *Server) List(ctx context.Context, q *RepoQuery) (*appsv1.RepositoryList, error)
- func (s *Server) ListApps(ctx context.Context, q *RepoAppsQuery) (*RepoAppsResponse, error)
- func (s *Server) Update(ctx context.Context, q *RepoUpdateRequest) (*appsv1.Repository, error)
Constants ¶
This section is empty.
Variables ¶
var ( ErrInvalidLengthRepository = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowRepository = fmt.Errorf("proto: integer overflow") )
Functions ¶
func RegisterRepositoryServiceHandler ¶
func RegisterRepositoryServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
RegisterRepositoryServiceHandler registers the http handlers for service RepositoryService to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterRepositoryServiceHandlerClient ¶
func RegisterRepositoryServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client RepositoryServiceClient) error
RegisterRepositoryServiceHandler registers the http handlers for service RepositoryService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "RepositoryServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "RepositoryServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "RepositoryServiceClient" to call the correct interceptors.
func RegisterRepositoryServiceHandlerFromEndpoint ¶
func RegisterRepositoryServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterRepositoryServiceHandlerFromEndpoint is same as RegisterRepositoryServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterRepositoryServiceServer ¶
func RegisterRepositoryServiceServer(s *grpc.Server, srv RepositoryServiceServer)
Types ¶
type AppInfo ¶ added in v0.7.1
type AppInfo struct { Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"` Path string `protobuf:"bytes,2,opt,name=path,proto3" json:"path,omitempty"` }
AppInfo contains application type and app file path
func (*AppInfo) Descriptor ¶ added in v0.7.1
func (*AppInfo) ProtoMessage ¶ added in v0.7.1
func (*AppInfo) ProtoMessage()
type HelmAppSpec ¶ added in v0.7.0
type HelmAppSpec struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Path string `protobuf:"bytes,2,opt,name=path,proto3" json:"path,omitempty"` ValueFiles []string `protobuf:"bytes,3,rep,name=valueFiles" json:"valueFiles,omitempty"` }
HelmAppSpec contains helm app name and path in source repo
func (*HelmAppSpec) Descriptor ¶ added in v0.7.0
func (*HelmAppSpec) Descriptor() ([]byte, []int)
func (*HelmAppSpec) GetName ¶ added in v0.7.0
func (m *HelmAppSpec) GetName() string
func (*HelmAppSpec) GetPath ¶ added in v0.7.0
func (m *HelmAppSpec) GetPath() string
func (*HelmAppSpec) GetValueFiles ¶ added in v0.7.1
func (m *HelmAppSpec) GetValueFiles() []string
func (*HelmAppSpec) Marshal ¶ added in v0.7.0
func (m *HelmAppSpec) Marshal() (dAtA []byte, err error)
func (*HelmAppSpec) MarshalTo ¶ added in v0.7.0
func (m *HelmAppSpec) MarshalTo(dAtA []byte) (int, error)
func (*HelmAppSpec) ProtoMessage ¶ added in v0.7.0
func (*HelmAppSpec) ProtoMessage()
func (*HelmAppSpec) Reset ¶ added in v0.7.0
func (m *HelmAppSpec) Reset()
func (*HelmAppSpec) Size ¶ added in v0.7.0
func (m *HelmAppSpec) Size() (n int)
func (*HelmAppSpec) String ¶ added in v0.7.0
func (m *HelmAppSpec) String() string
func (*HelmAppSpec) Unmarshal ¶ added in v0.7.0
func (m *HelmAppSpec) Unmarshal(dAtA []byte) error
type KsonnetAppSpec ¶ added in v0.4.4
type KsonnetAppSpec struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Path string `protobuf:"bytes,2,opt,name=path,proto3" json:"path,omitempty"` Environments map[string]*KsonnetEnvironment `` /* 151-byte string literal not displayed */ }
KsonnetAppSpec contains Ksonnet app response This roughly reflects: ksonnet/ksonnet/metadata/app/schema.go
func (*KsonnetAppSpec) Descriptor ¶ added in v0.4.4
func (*KsonnetAppSpec) Descriptor() ([]byte, []int)
func (*KsonnetAppSpec) GetEnvironments ¶ added in v0.4.4
func (m *KsonnetAppSpec) GetEnvironments() map[string]*KsonnetEnvironment
func (*KsonnetAppSpec) GetName ¶ added in v0.4.4
func (m *KsonnetAppSpec) GetName() string
func (*KsonnetAppSpec) GetPath ¶ added in v0.5.0
func (m *KsonnetAppSpec) GetPath() string
func (*KsonnetAppSpec) Marshal ¶ added in v0.4.4
func (m *KsonnetAppSpec) Marshal() (dAtA []byte, err error)
func (*KsonnetAppSpec) MarshalTo ¶ added in v0.4.4
func (m *KsonnetAppSpec) MarshalTo(dAtA []byte) (int, error)
func (*KsonnetAppSpec) ProtoMessage ¶ added in v0.4.4
func (*KsonnetAppSpec) ProtoMessage()
func (*KsonnetAppSpec) Reset ¶ added in v0.4.4
func (m *KsonnetAppSpec) Reset()
func (*KsonnetAppSpec) Size ¶ added in v0.4.4
func (m *KsonnetAppSpec) Size() (n int)
func (*KsonnetAppSpec) String ¶ added in v0.4.4
func (m *KsonnetAppSpec) String() string
func (*KsonnetAppSpec) Unmarshal ¶ added in v0.4.4
func (m *KsonnetAppSpec) Unmarshal(dAtA []byte) error
type KsonnetEnvironment ¶ added in v0.4.4
type KsonnetEnvironment struct { // Name is the user defined name of an environment Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // KubernetesVersion is the kubernetes version the targetted cluster is running on. K8SVersion string `protobuf:"bytes,2,opt,name=k8sVersion,proto3" json:"k8sVersion,omitempty"` // Path is the relative project path containing metadata for this environment. Path string `protobuf:"bytes,3,opt,name=path,proto3" json:"path,omitempty"` // Destination stores the cluster address that this environment points to. Destination *KsonnetEnvironmentDestination `protobuf:"bytes,4,opt,name=destination" json:"destination,omitempty"` }
func (*KsonnetEnvironment) Descriptor ¶ added in v0.4.4
func (*KsonnetEnvironment) Descriptor() ([]byte, []int)
func (*KsonnetEnvironment) GetDestination ¶ added in v0.4.4
func (m *KsonnetEnvironment) GetDestination() *KsonnetEnvironmentDestination
func (*KsonnetEnvironment) GetK8SVersion ¶ added in v0.4.4
func (m *KsonnetEnvironment) GetK8SVersion() string
func (*KsonnetEnvironment) GetName ¶ added in v0.4.4
func (m *KsonnetEnvironment) GetName() string
func (*KsonnetEnvironment) GetPath ¶ added in v0.4.4
func (m *KsonnetEnvironment) GetPath() string
func (*KsonnetEnvironment) Marshal ¶ added in v0.4.4
func (m *KsonnetEnvironment) Marshal() (dAtA []byte, err error)
func (*KsonnetEnvironment) MarshalTo ¶ added in v0.4.4
func (m *KsonnetEnvironment) MarshalTo(dAtA []byte) (int, error)
func (*KsonnetEnvironment) ProtoMessage ¶ added in v0.4.4
func (*KsonnetEnvironment) ProtoMessage()
func (*KsonnetEnvironment) Reset ¶ added in v0.4.4
func (m *KsonnetEnvironment) Reset()
func (*KsonnetEnvironment) Size ¶ added in v0.4.4
func (m *KsonnetEnvironment) Size() (n int)
func (*KsonnetEnvironment) String ¶ added in v0.4.4
func (m *KsonnetEnvironment) String() string
func (*KsonnetEnvironment) Unmarshal ¶ added in v0.4.4
func (m *KsonnetEnvironment) Unmarshal(dAtA []byte) error
type KsonnetEnvironmentDestination ¶ added in v0.4.4
type KsonnetEnvironmentDestination struct { // Server is the Kubernetes server that the cluster is running on. Server string `protobuf:"bytes,1,opt,name=server,proto3" json:"server,omitempty"` // Namespace is the namespace of the Kubernetes server that targets should be deployed to Namespace string `protobuf:"bytes,2,opt,name=namespace,proto3" json:"namespace,omitempty"` }
func (*KsonnetEnvironmentDestination) Descriptor ¶ added in v0.4.4
func (*KsonnetEnvironmentDestination) Descriptor() ([]byte, []int)
func (*KsonnetEnvironmentDestination) GetNamespace ¶ added in v0.4.4
func (m *KsonnetEnvironmentDestination) GetNamespace() string
func (*KsonnetEnvironmentDestination) GetServer ¶ added in v0.4.4
func (m *KsonnetEnvironmentDestination) GetServer() string
func (*KsonnetEnvironmentDestination) Marshal ¶ added in v0.4.4
func (m *KsonnetEnvironmentDestination) Marshal() (dAtA []byte, err error)
func (*KsonnetEnvironmentDestination) MarshalTo ¶ added in v0.4.4
func (m *KsonnetEnvironmentDestination) MarshalTo(dAtA []byte) (int, error)
func (*KsonnetEnvironmentDestination) ProtoMessage ¶ added in v0.4.4
func (*KsonnetEnvironmentDestination) ProtoMessage()
func (*KsonnetEnvironmentDestination) Reset ¶ added in v0.4.4
func (m *KsonnetEnvironmentDestination) Reset()
func (*KsonnetEnvironmentDestination) Size ¶ added in v0.4.4
func (m *KsonnetEnvironmentDestination) Size() (n int)
func (*KsonnetEnvironmentDestination) String ¶ added in v0.4.4
func (m *KsonnetEnvironmentDestination) String() string
func (*KsonnetEnvironmentDestination) Unmarshal ¶ added in v0.4.4
func (m *KsonnetEnvironmentDestination) Unmarshal(dAtA []byte) error
type RepoAppDetailsQuery ¶ added in v0.7.1
type RepoAppDetailsQuery struct { Repo string `protobuf:"bytes,1,opt,name=repo,proto3" json:"repo,omitempty"` Revision string `protobuf:"bytes,2,opt,name=revision,proto3" json:"revision,omitempty"` Path string `protobuf:"bytes,3,opt,name=path,proto3" json:"path,omitempty"` }
RepoAppDetailsQuery contains query information for app details request
func (*RepoAppDetailsQuery) Descriptor ¶ added in v0.7.1
func (*RepoAppDetailsQuery) Descriptor() ([]byte, []int)
func (*RepoAppDetailsQuery) GetPath ¶ added in v0.7.1
func (m *RepoAppDetailsQuery) GetPath() string
func (*RepoAppDetailsQuery) GetRepo ¶ added in v0.7.1
func (m *RepoAppDetailsQuery) GetRepo() string
func (*RepoAppDetailsQuery) GetRevision ¶ added in v0.7.1
func (m *RepoAppDetailsQuery) GetRevision() string
func (*RepoAppDetailsQuery) Marshal ¶ added in v0.7.1
func (m *RepoAppDetailsQuery) Marshal() (dAtA []byte, err error)
func (*RepoAppDetailsQuery) MarshalTo ¶ added in v0.7.1
func (m *RepoAppDetailsQuery) MarshalTo(dAtA []byte) (int, error)
func (*RepoAppDetailsQuery) ProtoMessage ¶ added in v0.7.1
func (*RepoAppDetailsQuery) ProtoMessage()
func (*RepoAppDetailsQuery) Reset ¶ added in v0.7.1
func (m *RepoAppDetailsQuery) Reset()
func (*RepoAppDetailsQuery) Size ¶ added in v0.7.1
func (m *RepoAppDetailsQuery) Size() (n int)
func (*RepoAppDetailsQuery) String ¶ added in v0.7.1
func (m *RepoAppDetailsQuery) String() string
func (*RepoAppDetailsQuery) Unmarshal ¶ added in v0.7.1
func (m *RepoAppDetailsQuery) Unmarshal(dAtA []byte) error
type RepoAppDetailsResponse ¶ added in v0.7.1
type RepoAppDetailsResponse struct { Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"` Ksonnet *KsonnetAppSpec `protobuf:"bytes,2,opt,name=ksonnet" json:"ksonnet,omitempty"` Helm *HelmAppSpec `protobuf:"bytes,3,opt,name=helm" json:"helm,omitempty"` }
RepoAppDetailsResponse application details
func (*RepoAppDetailsResponse) Descriptor ¶ added in v0.7.1
func (*RepoAppDetailsResponse) Descriptor() ([]byte, []int)
func (*RepoAppDetailsResponse) GetHelm ¶ added in v0.7.1
func (m *RepoAppDetailsResponse) GetHelm() *HelmAppSpec
func (*RepoAppDetailsResponse) GetKsonnet ¶ added in v0.7.1
func (m *RepoAppDetailsResponse) GetKsonnet() *KsonnetAppSpec
func (*RepoAppDetailsResponse) GetType ¶ added in v0.7.1
func (m *RepoAppDetailsResponse) GetType() string
func (*RepoAppDetailsResponse) Marshal ¶ added in v0.7.1
func (m *RepoAppDetailsResponse) Marshal() (dAtA []byte, err error)
func (*RepoAppDetailsResponse) MarshalTo ¶ added in v0.7.1
func (m *RepoAppDetailsResponse) MarshalTo(dAtA []byte) (int, error)
func (*RepoAppDetailsResponse) ProtoMessage ¶ added in v0.7.1
func (*RepoAppDetailsResponse) ProtoMessage()
func (*RepoAppDetailsResponse) Reset ¶ added in v0.7.1
func (m *RepoAppDetailsResponse) Reset()
func (*RepoAppDetailsResponse) Size ¶ added in v0.7.1
func (m *RepoAppDetailsResponse) Size() (n int)
func (*RepoAppDetailsResponse) String ¶ added in v0.7.1
func (m *RepoAppDetailsResponse) String() string
func (*RepoAppDetailsResponse) Unmarshal ¶ added in v0.7.1
func (m *RepoAppDetailsResponse) Unmarshal(dAtA []byte) error
type RepoAppsQuery ¶ added in v0.7.0
type RepoAppsQuery struct { Repo string `protobuf:"bytes,1,opt,name=repo,proto3" json:"repo,omitempty"` Revision string `protobuf:"bytes,2,opt,name=revision,proto3" json:"revision,omitempty"` }
RepoAppsQuery is a query for Repository apps
func (*RepoAppsQuery) Descriptor ¶ added in v0.7.0
func (*RepoAppsQuery) Descriptor() ([]byte, []int)
func (*RepoAppsQuery) GetRepo ¶ added in v0.7.0
func (m *RepoAppsQuery) GetRepo() string
func (*RepoAppsQuery) GetRevision ¶ added in v0.7.0
func (m *RepoAppsQuery) GetRevision() string
func (*RepoAppsQuery) Marshal ¶ added in v0.7.0
func (m *RepoAppsQuery) Marshal() (dAtA []byte, err error)
func (*RepoAppsQuery) MarshalTo ¶ added in v0.7.0
func (m *RepoAppsQuery) MarshalTo(dAtA []byte) (int, error)
func (*RepoAppsQuery) ProtoMessage ¶ added in v0.7.0
func (*RepoAppsQuery) ProtoMessage()
func (*RepoAppsQuery) Reset ¶ added in v0.7.0
func (m *RepoAppsQuery) Reset()
func (*RepoAppsQuery) Size ¶ added in v0.7.0
func (m *RepoAppsQuery) Size() (n int)
func (*RepoAppsQuery) String ¶ added in v0.7.0
func (m *RepoAppsQuery) String() string
func (*RepoAppsQuery) Unmarshal ¶ added in v0.7.0
func (m *RepoAppsQuery) Unmarshal(dAtA []byte) error
type RepoAppsResponse ¶ added in v0.7.0
type RepoAppsResponse struct {
Items []*AppInfo `protobuf:"bytes,1,rep,name=items" json:"items,omitempty"`
}
RepoAppsResponse contains applications of specified repository
func (*RepoAppsResponse) Descriptor ¶ added in v0.7.0
func (*RepoAppsResponse) Descriptor() ([]byte, []int)
func (*RepoAppsResponse) GetItems ¶ added in v0.7.1
func (m *RepoAppsResponse) GetItems() []*AppInfo
func (*RepoAppsResponse) Marshal ¶ added in v0.7.0
func (m *RepoAppsResponse) Marshal() (dAtA []byte, err error)
func (*RepoAppsResponse) MarshalTo ¶ added in v0.7.0
func (m *RepoAppsResponse) MarshalTo(dAtA []byte) (int, error)
func (*RepoAppsResponse) ProtoMessage ¶ added in v0.7.0
func (*RepoAppsResponse) ProtoMessage()
func (*RepoAppsResponse) Reset ¶ added in v0.7.0
func (m *RepoAppsResponse) Reset()
func (*RepoAppsResponse) Size ¶ added in v0.7.0
func (m *RepoAppsResponse) Size() (n int)
func (*RepoAppsResponse) String ¶ added in v0.7.0
func (m *RepoAppsResponse) String() string
func (*RepoAppsResponse) Unmarshal ¶ added in v0.7.0
func (m *RepoAppsResponse) Unmarshal(dAtA []byte) error
type RepoCreateRequest ¶ added in v0.5.0
type RepoCreateRequest struct { Repo *github_com_argoproj_argo_cd_pkg_apis_application_v1alpha1.Repository `protobuf:"bytes,1,opt,name=repo" json:"repo,omitempty"` Upsert bool `protobuf:"varint,2,opt,name=upsert,proto3" json:"upsert,omitempty"` }
func (*RepoCreateRequest) Descriptor ¶ added in v0.5.0
func (*RepoCreateRequest) Descriptor() ([]byte, []int)
func (*RepoCreateRequest) GetRepo ¶ added in v0.5.0
func (m *RepoCreateRequest) GetRepo() *github_com_argoproj_argo_cd_pkg_apis_application_v1alpha1.Repository
func (*RepoCreateRequest) GetUpsert ¶ added in v0.6.0
func (m *RepoCreateRequest) GetUpsert() bool
func (*RepoCreateRequest) Marshal ¶ added in v0.5.0
func (m *RepoCreateRequest) Marshal() (dAtA []byte, err error)
func (*RepoCreateRequest) MarshalTo ¶ added in v0.5.0
func (m *RepoCreateRequest) MarshalTo(dAtA []byte) (int, error)
func (*RepoCreateRequest) ProtoMessage ¶ added in v0.5.0
func (*RepoCreateRequest) ProtoMessage()
func (*RepoCreateRequest) Reset ¶ added in v0.5.0
func (m *RepoCreateRequest) Reset()
func (*RepoCreateRequest) Size ¶ added in v0.5.0
func (m *RepoCreateRequest) Size() (n int)
func (*RepoCreateRequest) String ¶ added in v0.5.0
func (m *RepoCreateRequest) String() string
func (*RepoCreateRequest) Unmarshal ¶ added in v0.5.0
func (m *RepoCreateRequest) Unmarshal(dAtA []byte) error
type RepoQuery ¶
type RepoQuery struct {
Repo string `protobuf:"bytes,1,opt,name=repo,proto3" json:"repo,omitempty"`
}
RepoQuery is a query for Repository resources
func (*RepoQuery) Descriptor ¶
func (*RepoQuery) ProtoMessage ¶
func (*RepoQuery) ProtoMessage()
type RepoResponse ¶
type RepoResponse struct { }
func (*RepoResponse) Descriptor ¶
func (*RepoResponse) Descriptor() ([]byte, []int)
func (*RepoResponse) Marshal ¶ added in v0.3.1
func (m *RepoResponse) Marshal() (dAtA []byte, err error)
func (*RepoResponse) MarshalTo ¶ added in v0.3.1
func (m *RepoResponse) MarshalTo(dAtA []byte) (int, error)
func (*RepoResponse) ProtoMessage ¶
func (*RepoResponse) ProtoMessage()
func (*RepoResponse) Reset ¶
func (m *RepoResponse) Reset()
func (*RepoResponse) Size ¶ added in v0.3.1
func (m *RepoResponse) Size() (n int)
func (*RepoResponse) String ¶
func (m *RepoResponse) String() string
func (*RepoResponse) Unmarshal ¶ added in v0.3.1
func (m *RepoResponse) Unmarshal(dAtA []byte) error
type RepoUpdateRequest ¶
type RepoUpdateRequest struct {
Repo *github_com_argoproj_argo_cd_pkg_apis_application_v1alpha1.Repository `protobuf:"bytes,1,opt,name=repo" json:"repo,omitempty"`
}
func (*RepoUpdateRequest) Descriptor ¶
func (*RepoUpdateRequest) Descriptor() ([]byte, []int)
func (*RepoUpdateRequest) GetRepo ¶
func (m *RepoUpdateRequest) GetRepo() *github_com_argoproj_argo_cd_pkg_apis_application_v1alpha1.Repository
func (*RepoUpdateRequest) Marshal ¶ added in v0.3.1
func (m *RepoUpdateRequest) Marshal() (dAtA []byte, err error)
func (*RepoUpdateRequest) MarshalTo ¶ added in v0.3.1
func (m *RepoUpdateRequest) MarshalTo(dAtA []byte) (int, error)
func (*RepoUpdateRequest) ProtoMessage ¶
func (*RepoUpdateRequest) ProtoMessage()
func (*RepoUpdateRequest) Reset ¶
func (m *RepoUpdateRequest) Reset()
func (*RepoUpdateRequest) Size ¶ added in v0.3.1
func (m *RepoUpdateRequest) Size() (n int)
func (*RepoUpdateRequest) String ¶
func (m *RepoUpdateRequest) String() string
func (*RepoUpdateRequest) Unmarshal ¶ added in v0.3.1
func (m *RepoUpdateRequest) Unmarshal(dAtA []byte) error
type RepositoryServiceClient ¶
type RepositoryServiceClient interface { // List returns list of repos List(ctx context.Context, in *RepoQuery, opts ...grpc.CallOption) (*github_com_argoproj_argo_cd_pkg_apis_application_v1alpha1.RepositoryList, error) // ListApps returns list of apps in the repo ListApps(ctx context.Context, in *RepoAppsQuery, opts ...grpc.CallOption) (*RepoAppsResponse, error) // GetAppDetails returns application details by given path GetAppDetails(ctx context.Context, in *RepoAppDetailsQuery, opts ...grpc.CallOption) (*RepoAppDetailsResponse, error) // Create creates a repo Create(ctx context.Context, in *RepoCreateRequest, opts ...grpc.CallOption) (*github_com_argoproj_argo_cd_pkg_apis_application_v1alpha1.Repository, error) // Get returns a repo by name Get(ctx context.Context, in *RepoQuery, opts ...grpc.CallOption) (*github_com_argoproj_argo_cd_pkg_apis_application_v1alpha1.Repository, error) // Update updates a repo Update(ctx context.Context, in *RepoUpdateRequest, opts ...grpc.CallOption) (*github_com_argoproj_argo_cd_pkg_apis_application_v1alpha1.Repository, error) // Delete deletes a repo Delete(ctx context.Context, in *RepoQuery, opts ...grpc.CallOption) (*RepoResponse, error) }
func NewRepositoryServiceClient ¶
func NewRepositoryServiceClient(cc *grpc.ClientConn) RepositoryServiceClient
type RepositoryServiceServer ¶
type RepositoryServiceServer interface { // List returns list of repos List(context.Context, *RepoQuery) (*github_com_argoproj_argo_cd_pkg_apis_application_v1alpha1.RepositoryList, error) // ListApps returns list of apps in the repo ListApps(context.Context, *RepoAppsQuery) (*RepoAppsResponse, error) // GetAppDetails returns application details by given path GetAppDetails(context.Context, *RepoAppDetailsQuery) (*RepoAppDetailsResponse, error) // Create creates a repo Create(context.Context, *RepoCreateRequest) (*github_com_argoproj_argo_cd_pkg_apis_application_v1alpha1.Repository, error) // Get returns a repo by name Get(context.Context, *RepoQuery) (*github_com_argoproj_argo_cd_pkg_apis_application_v1alpha1.Repository, error) // Update updates a repo Update(context.Context, *RepoUpdateRequest) (*github_com_argoproj_argo_cd_pkg_apis_application_v1alpha1.Repository, error) // Delete deletes a repo Delete(context.Context, *RepoQuery) (*RepoResponse, error) }
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server provides a Repository service
func (*Server) Create ¶
func (s *Server) Create(ctx context.Context, q *RepoCreateRequest) (*appsv1.Repository, error)
Create creates a repository
func (*Server) GetAppDetails ¶ added in v0.7.1
func (s *Server) GetAppDetails(ctx context.Context, q *RepoAppDetailsQuery) (*RepoAppDetailsResponse, error)
func (*Server) ListApps ¶ added in v0.7.0
func (s *Server) ListApps(ctx context.Context, q *RepoAppsQuery) (*RepoAppsResponse, error)
ListKsonnetApps returns list of Ksonnet apps in the repo
func (*Server) Update ¶
func (s *Server) Update(ctx context.Context, q *RepoUpdateRequest) (*appsv1.Repository, error)
Update updates a repository