server

package
v0.4.0-alpha1 Latest Latest
Warning

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

Go to latest
Published: May 11, 2018 License: Apache-2.0 Imports: 40 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrNoSession indicates no auth token was supplied as part of a request
	ErrNoSession = status.Errorf(codes.Unauthenticated, "no session information")
)

Functions

This section is empty.

Types

type ArgoCDServer

type ArgoCDServer struct {
	ArgoCDServerOpts
	// contains filtered or unexported fields
}

ArgoCDServer is the API server for ArgoCD

func NewServer

func NewServer(opts ArgoCDServerOpts) *ArgoCDServer

NewServer returns a new instance of the ArgoCD API server

func (*ArgoCDServer) Run

func (a *ArgoCDServer) Run(ctx context.Context, port int)

Run runs the API Server We use k8s.io/code-generator/cmd/go-to-protobuf to generate the .proto files from the API types. k8s.io/ go-to-protobuf uses protoc-gen-gogo, which comes from gogo/protobuf (a fork of golang/protobuf).

type ArgoCDServerOpts added in v0.3.0

type ArgoCDServerOpts struct {
	DisableAuth     bool
	Insecure        bool
	Namespace       string
	StaticAssetsDir string
	KubeClientset   kubernetes.Interface
	AppClientset    appclientset.Interface
	RepoClientset   reposerver.Clientset
}

Directories

Path Synopsis
Package application is a generated protocol buffer package.
Package application is a generated protocol buffer package.
Package cluster is a generated protocol buffer package.
Package cluster is a generated protocol buffer package.
mocks
Code generated by mockery v1.0.0
Code generated by mockery v1.0.0
Package repository is a generated protocol buffer package.
Package repository is a generated protocol buffer package.
mocks
Code generated by mockery v1.0.0
Code generated by mockery v1.0.0
Package session is a generated protocol buffer package.
Package session is a generated protocol buffer package.
mocks
Code generated by mockery v1.0.0
Code generated by mockery v1.0.0
Package settings is a generated protocol buffer package.
Package settings is a generated protocol buffer package.
Package version is a generated protocol buffer package.
Package version is a generated protocol buffer package.

Jump to

Keyboard shortcuts

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