server

package
v0.11.1 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2019 License: Apache-2.0 Imports: 69 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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 Argo CD

func NewServer

func NewServer(ctx context.Context, opts ArgoCDServerOpts) *ArgoCDServer

NewServer returns a new instance of the Argo CD 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).

func (*ArgoCDServer) Shutdown added in v0.4.4

func (a *ArgoCDServer) Shutdown()

Shutdown stops the Argo CD server

type ArgoCDServerOpts added in v0.3.0

type ArgoCDServerOpts struct {
	DisableAuth            bool
	Insecure               bool
	Namespace              string
	DexServerAddr          string
	StaticAssetsDir        string
	BaseHRef               string
	KubeClientset          kubernetes.Interface
	AppClientset           appclientset.Interface
	RepoClientset          reposerver.Clientset
	AppControllerClientset controller.Clientset
	TLSConfigCustomizer    tlsutil.ConfigCustomizer
}

Directories

Path Synopsis
Package account is a reverse proxy.
Package account is a reverse proxy.
Package application is a reverse proxy.
Package application is a reverse proxy.
Package cluster is a reverse proxy.
Package cluster is a reverse proxy.
mocks
Code generated by mockery v1.0.0
Code generated by mockery v1.0.0
Package project is a reverse proxy.
Package project is a reverse proxy.
Package repository is a reverse proxy.
Package repository is a reverse proxy.
Package session is a reverse proxy.
Package session is a reverse proxy.
mocks
Code generated by mockery v1.0.0 Code generated by mockery v1.0.0
Code generated by mockery v1.0.0 Code generated by mockery v1.0.0
Package settings is a reverse proxy.
Package settings is a reverse proxy.
Package version is a reverse proxy.
Package version is a reverse proxy.

Jump to

Keyboard shortcuts

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