Documentation ¶
Overview ¶
Package repository is a generated protocol buffer package.
It is generated from these files:
reposerver/repository/repository.proto
It has these top-level messages:
ManifestRequest ManifestResponse ListDirRequest FileList GetFileRequest GetFileResponse
Index ¶
- Constants
- Variables
- func RegisterRepositoryServiceServer(s *grpc.Server, srv RepositoryServiceServer)
- type AppSourceType
- type FileList
- func (*FileList) Descriptor() ([]byte, []int)
- func (m *FileList) GetItems() []string
- func (m *FileList) Marshal() (dAtA []byte, err error)
- func (m *FileList) MarshalTo(dAtA []byte) (int, error)
- func (*FileList) ProtoMessage()
- func (m *FileList) Reset()
- func (m *FileList) Size() (n int)
- func (m *FileList) String() string
- func (m *FileList) Unmarshal(dAtA []byte) error
- type GetFileRequest
- func (*GetFileRequest) Descriptor() ([]byte, []int)
- func (m *GetFileRequest) GetPath() string
- func (m *GetFileRequest) GetRepo() *github_com_argoproj_argo_cd_pkg_apis_application_v1alpha1.Repository
- func (m *GetFileRequest) GetRevision() string
- func (m *GetFileRequest) Marshal() (dAtA []byte, err error)
- func (m *GetFileRequest) MarshalTo(dAtA []byte) (int, error)
- func (*GetFileRequest) ProtoMessage()
- func (m *GetFileRequest) Reset()
- func (m *GetFileRequest) Size() (n int)
- func (m *GetFileRequest) String() string
- func (m *GetFileRequest) Unmarshal(dAtA []byte) error
- type GetFileResponse
- func (*GetFileResponse) Descriptor() ([]byte, []int)
- func (m *GetFileResponse) GetData() []byte
- func (m *GetFileResponse) Marshal() (dAtA []byte, err error)
- func (m *GetFileResponse) MarshalTo(dAtA []byte) (int, error)
- func (*GetFileResponse) ProtoMessage()
- func (m *GetFileResponse) Reset()
- func (m *GetFileResponse) Size() (n int)
- func (m *GetFileResponse) String() string
- func (m *GetFileResponse) Unmarshal(dAtA []byte) error
- type ListDirRequest
- func (*ListDirRequest) Descriptor() ([]byte, []int)
- func (m *ListDirRequest) GetPath() string
- func (m *ListDirRequest) GetRepo() *github_com_argoproj_argo_cd_pkg_apis_application_v1alpha1.Repository
- func (m *ListDirRequest) GetRevision() string
- func (m *ListDirRequest) Marshal() (dAtA []byte, err error)
- func (m *ListDirRequest) MarshalTo(dAtA []byte) (int, error)
- func (*ListDirRequest) ProtoMessage()
- func (m *ListDirRequest) Reset()
- func (m *ListDirRequest) Size() (n int)
- func (m *ListDirRequest) String() string
- func (m *ListDirRequest) Unmarshal(dAtA []byte) error
- type ManifestRequest
- func (*ManifestRequest) Descriptor() ([]byte, []int)
- func (m *ManifestRequest) GetAppLabel() string
- func (m *ManifestRequest) GetComponentParameterOverrides() ...
- func (m *ManifestRequest) GetEnvironment() string
- func (m *ManifestRequest) GetPath() string
- func (m *ManifestRequest) GetRepo() *github_com_argoproj_argo_cd_pkg_apis_application_v1alpha1.Repository
- func (m *ManifestRequest) GetRevision() string
- func (m *ManifestRequest) GetValueFiles() []string
- func (m *ManifestRequest) Marshal() (dAtA []byte, err error)
- func (m *ManifestRequest) MarshalTo(dAtA []byte) (int, error)
- func (*ManifestRequest) ProtoMessage()
- func (m *ManifestRequest) Reset()
- func (m *ManifestRequest) Size() (n int)
- func (m *ManifestRequest) String() string
- func (m *ManifestRequest) Unmarshal(dAtA []byte) error
- type ManifestResponse
- func (*ManifestResponse) Descriptor() ([]byte, []int)
- func (m *ManifestResponse) GetManifests() []string
- func (m *ManifestResponse) GetNamespace() string
- func (m *ManifestResponse) GetParams() ...
- func (m *ManifestResponse) GetRevision() string
- func (m *ManifestResponse) GetServer() string
- func (m *ManifestResponse) Marshal() (dAtA []byte, err error)
- func (m *ManifestResponse) MarshalTo(dAtA []byte) (int, error)
- func (*ManifestResponse) ProtoMessage()
- func (m *ManifestResponse) Reset()
- func (m *ManifestResponse) Size() (n int)
- func (m *ManifestResponse) String() string
- func (m *ManifestResponse) Unmarshal(dAtA []byte) error
- type RepositoryServiceClient
- type RepositoryServiceServer
- type Service
Constants ¶
View Source
const ( // DefaultRepoCacheExpiration is the duration for items to live in the repo cache DefaultRepoCacheExpiration = 24 * time.Hour )
Variables ¶
View Source
var ( ErrInvalidLengthRepository = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowRepository = fmt.Errorf("proto: integer overflow") )
Functions ¶
func RegisterRepositoryServiceServer ¶
func RegisterRepositoryServiceServer(s *grpc.Server, srv RepositoryServiceServer)
Types ¶
type AppSourceType ¶ added in v0.7.0
type AppSourceType string
const ( AppSourceKsonnet AppSourceType = "ksonnet" AppSourceHelm AppSourceType = "helm" AppSourceDirectory AppSourceType = "directory" )
func IdentifyAppSourceTypeByAppDir ¶ added in v0.7.1
func IdentifyAppSourceTypeByAppDir(appDirPath string) AppSourceType
IdentifyAppSourceTypeByAppDir examines a directory and determines its application source type
func IdentifyAppSourceTypeByAppPath ¶ added in v0.7.1
func IdentifyAppSourceTypeByAppPath(appFilePath string) AppSourceType
IdentifyAppSourceTypeByAppPath determines application source type by app file path
type FileList ¶ added in v0.4.4
type FileList struct {
Items []string `protobuf:"bytes,1,rep,name=items" json:"items,omitempty"`
}
FileList returns the contents of the repo of a ListDir request
func (*FileList) Descriptor ¶ added in v0.4.4
func (*FileList) ProtoMessage ¶ added in v0.4.4
func (*FileList) ProtoMessage()
type GetFileRequest ¶ added in v0.4.0
type GetFileRequest struct { Repo *github_com_argoproj_argo_cd_pkg_apis_application_v1alpha1.Repository `protobuf:"bytes,1,opt,name=repo" 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"` }
GetFileRequest return
func (*GetFileRequest) Descriptor ¶ added in v0.4.0
func (*GetFileRequest) Descriptor() ([]byte, []int)
func (*GetFileRequest) GetPath ¶ added in v0.4.0
func (m *GetFileRequest) GetPath() string
func (*GetFileRequest) GetRepo ¶ added in v0.4.0
func (m *GetFileRequest) GetRepo() *github_com_argoproj_argo_cd_pkg_apis_application_v1alpha1.Repository
func (*GetFileRequest) GetRevision ¶ added in v0.4.0
func (m *GetFileRequest) GetRevision() string
func (*GetFileRequest) Marshal ¶ added in v0.4.0
func (m *GetFileRequest) Marshal() (dAtA []byte, err error)
func (*GetFileRequest) MarshalTo ¶ added in v0.4.0
func (m *GetFileRequest) MarshalTo(dAtA []byte) (int, error)
func (*GetFileRequest) ProtoMessage ¶ added in v0.4.0
func (*GetFileRequest) ProtoMessage()
func (*GetFileRequest) Reset ¶ added in v0.4.0
func (m *GetFileRequest) Reset()
func (*GetFileRequest) Size ¶ added in v0.4.0
func (m *GetFileRequest) Size() (n int)
func (*GetFileRequest) String ¶ added in v0.4.0
func (m *GetFileRequest) String() string
func (*GetFileRequest) Unmarshal ¶ added in v0.4.0
func (m *GetFileRequest) Unmarshal(dAtA []byte) error
type GetFileResponse ¶ added in v0.4.0
type GetFileResponse struct {
Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
}
GetFileResponse returns the contents of the file of a GetFile request
func (*GetFileResponse) Descriptor ¶ added in v0.4.0
func (*GetFileResponse) Descriptor() ([]byte, []int)
func (*GetFileResponse) GetData ¶ added in v0.4.0
func (m *GetFileResponse) GetData() []byte
func (*GetFileResponse) Marshal ¶ added in v0.4.0
func (m *GetFileResponse) Marshal() (dAtA []byte, err error)
func (*GetFileResponse) MarshalTo ¶ added in v0.4.0
func (m *GetFileResponse) MarshalTo(dAtA []byte) (int, error)
func (*GetFileResponse) ProtoMessage ¶ added in v0.4.0
func (*GetFileResponse) ProtoMessage()
func (*GetFileResponse) Reset ¶ added in v0.4.0
func (m *GetFileResponse) Reset()
func (*GetFileResponse) Size ¶ added in v0.4.0
func (m *GetFileResponse) Size() (n int)
func (*GetFileResponse) String ¶ added in v0.4.0
func (m *GetFileResponse) String() string
func (*GetFileResponse) Unmarshal ¶ added in v0.4.0
func (m *GetFileResponse) Unmarshal(dAtA []byte) error
type ListDirRequest ¶ added in v0.4.4
type ListDirRequest struct { Repo *github_com_argoproj_argo_cd_pkg_apis_application_v1alpha1.Repository `protobuf:"bytes,1,opt,name=repo" 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"` }
ListDirRequest requests a repository directory structure
func (*ListDirRequest) Descriptor ¶ added in v0.4.4
func (*ListDirRequest) Descriptor() ([]byte, []int)
func (*ListDirRequest) GetPath ¶ added in v0.4.4
func (m *ListDirRequest) GetPath() string
func (*ListDirRequest) GetRepo ¶ added in v0.4.4
func (m *ListDirRequest) GetRepo() *github_com_argoproj_argo_cd_pkg_apis_application_v1alpha1.Repository
func (*ListDirRequest) GetRevision ¶ added in v0.4.4
func (m *ListDirRequest) GetRevision() string
func (*ListDirRequest) Marshal ¶ added in v0.4.4
func (m *ListDirRequest) Marshal() (dAtA []byte, err error)
func (*ListDirRequest) MarshalTo ¶ added in v0.4.4
func (m *ListDirRequest) MarshalTo(dAtA []byte) (int, error)
func (*ListDirRequest) ProtoMessage ¶ added in v0.4.4
func (*ListDirRequest) ProtoMessage()
func (*ListDirRequest) Reset ¶ added in v0.4.4
func (m *ListDirRequest) Reset()
func (*ListDirRequest) Size ¶ added in v0.4.4
func (m *ListDirRequest) Size() (n int)
func (*ListDirRequest) String ¶ added in v0.4.4
func (m *ListDirRequest) String() string
func (*ListDirRequest) Unmarshal ¶ added in v0.4.4
func (m *ListDirRequest) Unmarshal(dAtA []byte) error
type ManifestRequest ¶
type ManifestRequest struct { Repo *github_com_argoproj_argo_cd_pkg_apis_application_v1alpha1.Repository `protobuf:"bytes,1,opt,name=repo" 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"` Environment string `protobuf:"bytes,4,opt,name=environment,proto3" json:"environment,omitempty"` AppLabel string `protobuf:"bytes,5,opt,name=appLabel,proto3" json:"appLabel,omitempty"` ComponentParameterOverrides []*github_com_argoproj_argo_cd_pkg_apis_application_v1alpha1.ComponentParameter `protobuf:"bytes,6,rep,name=componentParameterOverrides" json:"componentParameterOverrides,omitempty"` ValueFiles []string `protobuf:"bytes,7,rep,name=valueFiles" json:"valueFiles,omitempty"` }
ManifestRequest is a query for manifest generation.
func (*ManifestRequest) Descriptor ¶
func (*ManifestRequest) Descriptor() ([]byte, []int)
func (*ManifestRequest) GetAppLabel ¶
func (m *ManifestRequest) GetAppLabel() string
func (*ManifestRequest) GetComponentParameterOverrides ¶
func (m *ManifestRequest) GetComponentParameterOverrides() []*github_com_argoproj_argo_cd_pkg_apis_application_v1alpha1.ComponentParameter
func (*ManifestRequest) GetEnvironment ¶
func (m *ManifestRequest) GetEnvironment() string
func (*ManifestRequest) GetPath ¶
func (m *ManifestRequest) GetPath() string
func (*ManifestRequest) GetRepo ¶
func (m *ManifestRequest) GetRepo() *github_com_argoproj_argo_cd_pkg_apis_application_v1alpha1.Repository
func (*ManifestRequest) GetRevision ¶
func (m *ManifestRequest) GetRevision() string
func (*ManifestRequest) GetValueFiles ¶ added in v0.7.0
func (m *ManifestRequest) GetValueFiles() []string
func (*ManifestRequest) Marshal ¶ added in v0.3.1
func (m *ManifestRequest) Marshal() (dAtA []byte, err error)
func (*ManifestRequest) MarshalTo ¶ added in v0.3.1
func (m *ManifestRequest) MarshalTo(dAtA []byte) (int, error)
func (*ManifestRequest) ProtoMessage ¶
func (*ManifestRequest) ProtoMessage()
func (*ManifestRequest) Reset ¶
func (m *ManifestRequest) Reset()
func (*ManifestRequest) Size ¶ added in v0.3.1
func (m *ManifestRequest) Size() (n int)
func (*ManifestRequest) String ¶
func (m *ManifestRequest) String() string
func (*ManifestRequest) Unmarshal ¶ added in v0.3.1
func (m *ManifestRequest) Unmarshal(dAtA []byte) error
type ManifestResponse ¶
type ManifestResponse struct { Manifests []string `protobuf:"bytes,1,rep,name=manifests" json:"manifests,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"` Revision string `protobuf:"bytes,4,opt,name=revision,proto3" json:"revision,omitempty"` Params []*github_com_argoproj_argo_cd_pkg_apis_application_v1alpha1.ComponentParameter `protobuf:"bytes,5,rep,name=params" json:"params,omitempty"` }
func (*ManifestResponse) Descriptor ¶
func (*ManifestResponse) Descriptor() ([]byte, []int)
func (*ManifestResponse) GetManifests ¶
func (m *ManifestResponse) GetManifests() []string
func (*ManifestResponse) GetNamespace ¶
func (m *ManifestResponse) GetNamespace() string
func (*ManifestResponse) GetParams ¶ added in v0.4.0
func (m *ManifestResponse) GetParams() []*github_com_argoproj_argo_cd_pkg_apis_application_v1alpha1.ComponentParameter
func (*ManifestResponse) GetRevision ¶
func (m *ManifestResponse) GetRevision() string
func (*ManifestResponse) GetServer ¶
func (m *ManifestResponse) GetServer() string
func (*ManifestResponse) Marshal ¶ added in v0.3.1
func (m *ManifestResponse) Marshal() (dAtA []byte, err error)
func (*ManifestResponse) MarshalTo ¶ added in v0.3.1
func (m *ManifestResponse) MarshalTo(dAtA []byte) (int, error)
func (*ManifestResponse) ProtoMessage ¶
func (*ManifestResponse) ProtoMessage()
func (*ManifestResponse) Reset ¶
func (m *ManifestResponse) Reset()
func (*ManifestResponse) Size ¶ added in v0.3.1
func (m *ManifestResponse) Size() (n int)
func (*ManifestResponse) String ¶
func (m *ManifestResponse) String() string
func (*ManifestResponse) Unmarshal ¶ added in v0.3.1
func (m *ManifestResponse) Unmarshal(dAtA []byte) error
type RepositoryServiceClient ¶
type RepositoryServiceClient interface { // Generate manifest for application in specified repo name and revision GenerateManifest(ctx context.Context, in *ManifestRequest, opts ...grpc.CallOption) (*ManifestResponse, error) // ListDir returns the file contents at the specified repo and path ListDir(ctx context.Context, in *ListDirRequest, opts ...grpc.CallOption) (*FileList, error) // GetFile returns the file contents at the specified repo and path GetFile(ctx context.Context, in *GetFileRequest, opts ...grpc.CallOption) (*GetFileResponse, error) }
func NewRepositoryServiceClient ¶
func NewRepositoryServiceClient(cc *grpc.ClientConn) RepositoryServiceClient
type RepositoryServiceServer ¶
type RepositoryServiceServer interface { // Generate manifest for application in specified repo name and revision GenerateManifest(context.Context, *ManifestRequest) (*ManifestResponse, error) // ListDir returns the file contents at the specified repo and path ListDir(context.Context, *ListDirRequest) (*FileList, error) // GetFile returns the file contents at the specified repo and path GetFile(context.Context, *GetFileRequest) (*GetFileResponse, error) }
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service implements ManifestService interface
func NewService ¶
func NewService(gitFactory git.ClientFactory, cache cache.Cache) *Service
NewService returns a new instance of the Manifest service
func (*Service) GenerateManifest ¶
func (s *Service) GenerateManifest(c context.Context, q *ManifestRequest) (*ManifestResponse, error)
func (*Service) GetFile ¶ added in v0.4.0
func (s *Service) GetFile(ctx context.Context, q *GetFileRequest) (*GetFileResponse, error)
Click to show internal directories.
Click to hide internal directories.