repository

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2018 License: Apache-2.0 Imports: 19 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

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

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

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

Jump to

Keyboard shortcuts

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