repository

package
v0.3.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 24, 2018 License: Apache-2.0 Imports: 21 Imported by: 0

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
EnvParamsRequest
EnvParamsResponse
KsonnetAppRequest
KsonnetAppResponse
KsonnetEnvironment
KsonnetEnvironmentDestination

Index

Constants

This section is empty.

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 EnvParamsRequest

type EnvParamsRequest 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"`
}

func (*EnvParamsRequest) Descriptor

func (*EnvParamsRequest) Descriptor() ([]byte, []int)

func (*EnvParamsRequest) GetEnvironment

func (m *EnvParamsRequest) GetEnvironment() string

func (*EnvParamsRequest) GetPath

func (m *EnvParamsRequest) GetPath() string

func (*EnvParamsRequest) GetRevision

func (m *EnvParamsRequest) GetRevision() string

func (*EnvParamsRequest) Marshal added in v0.3.1

func (m *EnvParamsRequest) Marshal() (dAtA []byte, err error)

func (*EnvParamsRequest) MarshalTo added in v0.3.1

func (m *EnvParamsRequest) MarshalTo(dAtA []byte) (int, error)

func (*EnvParamsRequest) ProtoMessage

func (*EnvParamsRequest) ProtoMessage()

func (*EnvParamsRequest) Reset

func (m *EnvParamsRequest) Reset()

func (*EnvParamsRequest) Size added in v0.3.1

func (m *EnvParamsRequest) Size() (n int)

func (*EnvParamsRequest) String

func (m *EnvParamsRequest) String() string

func (*EnvParamsRequest) Unmarshal added in v0.3.1

func (m *EnvParamsRequest) Unmarshal(dAtA []byte) error

type EnvParamsResponse

type EnvParamsResponse struct {
	Params []*github_com_argoproj_argo_cd_pkg_apis_application_v1alpha1.ComponentParameter `protobuf:"bytes,1,rep,name=params" json:"params,omitempty"`
}

func (*EnvParamsResponse) Descriptor

func (*EnvParamsResponse) Descriptor() ([]byte, []int)

func (*EnvParamsResponse) Marshal added in v0.3.1

func (m *EnvParamsResponse) Marshal() (dAtA []byte, err error)

func (*EnvParamsResponse) MarshalTo added in v0.3.1

func (m *EnvParamsResponse) MarshalTo(dAtA []byte) (int, error)

func (*EnvParamsResponse) ProtoMessage

func (*EnvParamsResponse) ProtoMessage()

func (*EnvParamsResponse) Reset

func (m *EnvParamsResponse) Reset()

func (*EnvParamsResponse) Size added in v0.3.1

func (m *EnvParamsResponse) Size() (n int)

func (*EnvParamsResponse) String

func (m *EnvParamsResponse) String() string

func (*EnvParamsResponse) Unmarshal added in v0.3.1

func (m *EnvParamsResponse) Unmarshal(dAtA []byte) error

type KsonnetAppRequest added in v0.3.0

type KsonnetAppRequest 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"`
}

KsonnetAppRequest is a query for ksonnet app

func (*KsonnetAppRequest) Descriptor added in v0.3.0

func (*KsonnetAppRequest) Descriptor() ([]byte, []int)

func (*KsonnetAppRequest) GetPath added in v0.3.0

func (m *KsonnetAppRequest) GetPath() string

func (*KsonnetAppRequest) GetRepo added in v0.3.0

func (*KsonnetAppRequest) GetRevision added in v0.3.0

func (m *KsonnetAppRequest) GetRevision() string

func (*KsonnetAppRequest) Marshal added in v0.3.1

func (m *KsonnetAppRequest) Marshal() (dAtA []byte, err error)

func (*KsonnetAppRequest) MarshalTo added in v0.3.1

func (m *KsonnetAppRequest) MarshalTo(dAtA []byte) (int, error)

func (*KsonnetAppRequest) ProtoMessage added in v0.3.0

func (*KsonnetAppRequest) ProtoMessage()

func (*KsonnetAppRequest) Reset added in v0.3.0

func (m *KsonnetAppRequest) Reset()

func (*KsonnetAppRequest) Size added in v0.3.1

func (m *KsonnetAppRequest) Size() (n int)

func (*KsonnetAppRequest) String added in v0.3.0

func (m *KsonnetAppRequest) String() string

func (*KsonnetAppRequest) Unmarshal added in v0.3.1

func (m *KsonnetAppRequest) Unmarshal(dAtA []byte) error

type KsonnetAppResponse added in v0.3.0

type KsonnetAppResponse struct {
	Name         string                         `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Environments map[string]*KsonnetEnvironment `` /* 151-byte string literal not displayed */
}

KsonnetAppResponse contains Ksonnet app response This roughly reflects: ksonnet/ksonnet/metadata/app/schema.go NOTE: we may expose ksonnet apps from API server, in which case these definitions will move to a more public place. For now, these types are only used internally.

func (*KsonnetAppResponse) Descriptor added in v0.3.0

func (*KsonnetAppResponse) Descriptor() ([]byte, []int)

func (*KsonnetAppResponse) GetEnvironments added in v0.3.0

func (m *KsonnetAppResponse) GetEnvironments() map[string]*KsonnetEnvironment

func (*KsonnetAppResponse) GetName added in v0.3.0

func (m *KsonnetAppResponse) GetName() string

func (*KsonnetAppResponse) Marshal added in v0.3.1

func (m *KsonnetAppResponse) Marshal() (dAtA []byte, err error)

func (*KsonnetAppResponse) MarshalTo added in v0.3.1

func (m *KsonnetAppResponse) MarshalTo(dAtA []byte) (int, error)

func (*KsonnetAppResponse) ProtoMessage added in v0.3.0

func (*KsonnetAppResponse) ProtoMessage()

func (*KsonnetAppResponse) Reset added in v0.3.0

func (m *KsonnetAppResponse) Reset()

func (*KsonnetAppResponse) Size added in v0.3.1

func (m *KsonnetAppResponse) Size() (n int)

func (*KsonnetAppResponse) String added in v0.3.0

func (m *KsonnetAppResponse) String() string

func (*KsonnetAppResponse) Unmarshal added in v0.3.1

func (m *KsonnetAppResponse) Unmarshal(dAtA []byte) error

type KsonnetEnvironment added in v0.3.0

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.3.0

func (*KsonnetEnvironment) Descriptor() ([]byte, []int)

func (*KsonnetEnvironment) GetDestination added in v0.3.0

func (*KsonnetEnvironment) GetK8SVersion added in v0.3.0

func (m *KsonnetEnvironment) GetK8SVersion() string

func (*KsonnetEnvironment) GetName added in v0.3.0

func (m *KsonnetEnvironment) GetName() string

func (*KsonnetEnvironment) GetPath added in v0.3.0

func (m *KsonnetEnvironment) GetPath() string

func (*KsonnetEnvironment) Marshal added in v0.3.1

func (m *KsonnetEnvironment) Marshal() (dAtA []byte, err error)

func (*KsonnetEnvironment) MarshalTo added in v0.3.1

func (m *KsonnetEnvironment) MarshalTo(dAtA []byte) (int, error)

func (*KsonnetEnvironment) ProtoMessage added in v0.3.0

func (*KsonnetEnvironment) ProtoMessage()

func (*KsonnetEnvironment) Reset added in v0.3.0

func (m *KsonnetEnvironment) Reset()

func (*KsonnetEnvironment) Size added in v0.3.1

func (m *KsonnetEnvironment) Size() (n int)

func (*KsonnetEnvironment) String added in v0.3.0

func (m *KsonnetEnvironment) String() string

func (*KsonnetEnvironment) Unmarshal added in v0.3.1

func (m *KsonnetEnvironment) Unmarshal(dAtA []byte) error

type KsonnetEnvironmentDestination added in v0.3.0

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.3.0

func (*KsonnetEnvironmentDestination) Descriptor() ([]byte, []int)

func (*KsonnetEnvironmentDestination) GetNamespace added in v0.3.0

func (m *KsonnetEnvironmentDestination) GetNamespace() string

func (*KsonnetEnvironmentDestination) GetServer added in v0.3.0

func (m *KsonnetEnvironmentDestination) GetServer() string

func (*KsonnetEnvironmentDestination) Marshal added in v0.3.1

func (m *KsonnetEnvironmentDestination) Marshal() (dAtA []byte, err error)

func (*KsonnetEnvironmentDestination) MarshalTo added in v0.3.1

func (m *KsonnetEnvironmentDestination) MarshalTo(dAtA []byte) (int, error)

func (*KsonnetEnvironmentDestination) ProtoMessage added in v0.3.0

func (*KsonnetEnvironmentDestination) ProtoMessage()

func (*KsonnetEnvironmentDestination) Reset added in v0.3.0

func (m *KsonnetEnvironmentDestination) Reset()

func (*KsonnetEnvironmentDestination) Size added in v0.3.1

func (m *KsonnetEnvironmentDestination) Size() (n int)

func (*KsonnetEnvironmentDestination) String added in v0.3.0

func (*KsonnetEnvironmentDestination) Unmarshal added in v0.3.1

func (m *KsonnetEnvironmentDestination) 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"`
}

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) GetEnvironment

func (m *ManifestRequest) GetEnvironment() string

func (*ManifestRequest) GetPath

func (m *ManifestRequest) GetPath() string

func (*ManifestRequest) GetRevision

func (m *ManifestRequest) GetRevision() 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"`
}

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) 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)
	// Retrieve Ksonnet environment params in specified repo name and revision
	GetEnvParams(ctx context.Context, in *EnvParamsRequest, opts ...grpc.CallOption) (*EnvParamsResponse, error)
	// Retrieve Ksonnet environment params in specified repo name and revision
	GetKsonnetApp(ctx context.Context, in *KsonnetAppRequest, opts ...grpc.CallOption) (*KsonnetAppResponse, 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)
	// Retrieve Ksonnet environment params in specified repo name and revision
	GetEnvParams(context.Context, *EnvParamsRequest) (*EnvParamsResponse, error)
	// Retrieve Ksonnet environment params in specified repo name and revision
	GetKsonnetApp(context.Context, *KsonnetAppRequest) (*KsonnetAppResponse, error)
}

type Service

type Service struct {
	// contains filtered or unexported fields
}

Service implements ManifestService interface

func NewService

func NewService(namespace string, kubeClient kubernetes.Interface, gitClient git.Client) *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) GetEnvParams

func (s *Service) GetEnvParams(c context.Context, q *EnvParamsRequest) (*EnvParamsResponse, error)

GetEnvParams retrieves Ksonnet environment params in specified repo name and revision

func (*Service) GetKsonnetApp added in v0.3.0

func (s *Service) GetKsonnetApp(ctx context.Context, in *KsonnetAppRequest) (*KsonnetAppResponse, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL