repository

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2018 License: Apache-2.0 Imports: 20 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

This section is empty.

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" json:"revision,omitempty"`
	Path        string                                                                `protobuf:"bytes,3,opt,name=path" json:"path,omitempty"`
	Environment string                                                                `protobuf:"bytes,4,opt,name=environment" 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) ProtoMessage

func (*EnvParamsRequest) ProtoMessage()

func (*EnvParamsRequest) Reset

func (m *EnvParamsRequest) Reset()

func (*EnvParamsRequest) String

func (m *EnvParamsRequest) String() string

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

func (*EnvParamsResponse) ProtoMessage()

func (*EnvParamsResponse) Reset

func (m *EnvParamsResponse) Reset()

func (*EnvParamsResponse) String

func (m *EnvParamsResponse) String() string

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" json:"revision,omitempty"`
	Path     string                                                                `protobuf:"bytes,3,opt,name=path" 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) ProtoMessage added in v0.3.0

func (*KsonnetAppRequest) ProtoMessage()

func (*KsonnetAppRequest) Reset added in v0.3.0

func (m *KsonnetAppRequest) Reset()

func (*KsonnetAppRequest) String added in v0.3.0

func (m *KsonnetAppRequest) String() string

type KsonnetAppResponse added in v0.3.0

type KsonnetAppResponse struct {
	Name         string                         `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
	Environments map[string]*KsonnetEnvironment `` /* 144-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) ProtoMessage added in v0.3.0

func (*KsonnetAppResponse) ProtoMessage()

func (*KsonnetAppResponse) Reset added in v0.3.0

func (m *KsonnetAppResponse) Reset()

func (*KsonnetAppResponse) String added in v0.3.0

func (m *KsonnetAppResponse) String() string

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" json:"name,omitempty"`
	// KubernetesVersion is the kubernetes version the targetted cluster is running on.
	K8SVersion string `protobuf:"bytes,2,opt,name=k8sVersion" json:"k8sVersion,omitempty"`
	// Path is the relative project path containing metadata for this environment.
	Path string `protobuf:"bytes,3,opt,name=path" 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) ProtoMessage added in v0.3.0

func (*KsonnetEnvironment) ProtoMessage()

func (*KsonnetEnvironment) Reset added in v0.3.0

func (m *KsonnetEnvironment) Reset()

func (*KsonnetEnvironment) String added in v0.3.0

func (m *KsonnetEnvironment) String() string

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" 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" 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) ProtoMessage added in v0.3.0

func (*KsonnetEnvironmentDestination) ProtoMessage()

func (*KsonnetEnvironmentDestination) Reset added in v0.3.0

func (m *KsonnetEnvironmentDestination) Reset()

func (*KsonnetEnvironmentDestination) String added in v0.3.0

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" json:"revision,omitempty"`
	Path                        string                                                                          `protobuf:"bytes,3,opt,name=path" json:"path,omitempty"`
	Environment                 string                                                                          `protobuf:"bytes,4,opt,name=environment" json:"environment,omitempty"`
	AppLabel                    string                                                                          `protobuf:"bytes,5,opt,name=appLabel" 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) ProtoMessage

func (*ManifestRequest) ProtoMessage()

func (*ManifestRequest) Reset

func (m *ManifestRequest) Reset()

func (*ManifestRequest) String

func (m *ManifestRequest) String() string

type ManifestResponse

type ManifestResponse struct {
	Manifests []string `protobuf:"bytes,1,rep,name=manifests" json:"manifests,omitempty"`
	Namespace string   `protobuf:"bytes,2,opt,name=namespace" json:"namespace,omitempty"`
	Server    string   `protobuf:"bytes,3,opt,name=server" json:"server,omitempty"`
	Revision  string   `protobuf:"bytes,4,opt,name=revision" 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) ProtoMessage

func (*ManifestResponse) ProtoMessage()

func (*ManifestResponse) Reset

func (m *ManifestResponse) Reset()

func (*ManifestResponse) String

func (m *ManifestResponse) String() string

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