apiserver

package
v2.3.2+incompatible Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2018 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewReadOnlySwitch

func NewReadOnlySwitch() server.Middleware

NewStatWare returns a new StatWare, some ignored urls can be specified with prefixes which would not be logged.

Types

type ApiError

type ApiError struct {
	Message string      `json:"message"`
	Data    interface{} `json:"data"`
}

type EngineConfigApi

type EngineConfigApi struct {
	server.BaseResource
}

func (EngineConfigApi) Get

func (eca EngineConfigApi) Get(ctx context.Context, r *http.Request) (int, interface{})

func (EngineConfigApi) Patch

func (eca EngineConfigApi) Patch(ctx context.Context, r *http.Request) (int, interface{})

type EngineMaintenanceApi

type EngineMaintenanceApi struct {
	server.BaseResource
}

func (EngineMaintenanceApi) Patch

func (ema EngineMaintenanceApi) Patch(ctx context.Context, r *http.Request) (int, interface{})

type Ports

type Ports struct {
	Ports []int
}

type ReadOnlySwitch

type ReadOnlySwitch struct {
}

StatWare is the statistics middleware which would log all the access and performation information.

func (*ReadOnlySwitch) ServeHTTP

ServeHTTP implements the Middleware interface. Would log all the access, status and performance information.

type RestfulCntStatusHstry

type RestfulCntStatusHstry struct {
	server.BaseResource
}

func (RestfulCntStatusHstry) Get

func (rpg RestfulCntStatusHstry) Get(ctx context.Context, r *http.Request) (int, interface{})

type RestfulConstraints

type RestfulConstraints struct {
	server.BaseResource
}

func (RestfulConstraints) Delete

func (rc RestfulConstraints) Delete(ctx context.Context, r *http.Request) (int, interface{})

func (RestfulConstraints) Get

func (rc RestfulConstraints) Get(ctx context.Context, r *http.Request) (int, interface{})

func (RestfulConstraints) Patch

func (rc RestfulConstraints) Patch(ctx context.Context, r *http.Request) (int, interface{})

type RestfulDependPods

type RestfulDependPods struct {
	server.BaseResource
}

func (RestfulDependPods) Delete

func (rdp RestfulDependPods) Delete(ctx context.Context, r *http.Request) (int, interface{})

func (RestfulDependPods) Get

func (rdp RestfulDependPods) Get(ctx context.Context, r *http.Request) (int, interface{})

func (RestfulDependPods) Post

func (rdp RestfulDependPods) Post(ctx context.Context, r *http.Request) (int, interface{})

func (RestfulDependPods) Put

func (rdp RestfulDependPods) Put(ctx context.Context, r *http.Request) (int, interface{})

type RestfulGuard

type RestfulGuard struct {
	server.BaseResource
}

func (RestfulGuard) Get

func (rs RestfulGuard) Get(ctx context.Context, r *http.Request) (int, interface{})

func (RestfulGuard) Post

func (rs RestfulGuard) Post(ctx context.Context, r *http.Request) (int, interface{})

type RestfulNodes

type RestfulNodes struct {
	server.BaseResource
}

func (RestfulNodes) Delete

func (rn RestfulNodes) Delete(ctx context.Context, r *http.Request) (int, interface{})

func (RestfulNodes) Get

func (rn RestfulNodes) Get(ctx context.Context, r *http.Request) (int, interface{})

func (RestfulNodes) Patch

func (rn RestfulNodes) Patch(ctx context.Context, r *http.Request) (int, interface{})

type RestfulNotifies

type RestfulNotifies struct {
	server.BaseResource
}

func (RestfulNotifies) Delete

func (rc RestfulNotifies) Delete(ctx context.Context, r *http.Request) (int, interface{})

func (RestfulNotifies) Get

func (rc RestfulNotifies) Get(ctx context.Context, r *http.Request) (int, interface{})

func (RestfulNotifies) Post

func (rc RestfulNotifies) Post(ctx context.Context, r *http.Request) (int, interface{})

type RestfulPodGroups

type RestfulPodGroups struct {
	server.BaseResource
}

func (RestfulPodGroups) Delete

func (rpg RestfulPodGroups) Delete(ctx context.Context, r *http.Request) (int, interface{})

func (RestfulPodGroups) Get

func (rpg RestfulPodGroups) Get(ctx context.Context, r *http.Request) (int, interface{})

func (RestfulPodGroups) Patch

func (rpg RestfulPodGroups) Patch(ctx context.Context, r *http.Request) (int, interface{})

func (RestfulPodGroups) Post

func (rpg RestfulPodGroups) Post(ctx context.Context, r *http.Request) (int, interface{})

type RestfulPorts

type RestfulPorts struct {
	server.BaseResource
}

func (RestfulPorts) Get

func (rn RestfulPorts) Get(ctx context.Context, r *http.Request) (int, interface{})

func (RestfulPorts) Post

func (rn RestfulPorts) Post(ctx context.Context, r *http.Request) (int, interface{})

type RestfulStatus

type RestfulStatus struct {
	server.BaseResource
}

func (RestfulStatus) Get

func (rs RestfulStatus) Get(ctx context.Context, r *http.Request) (int, interface{})

func (RestfulStatus) Patch

func (rs RestfulStatus) Patch(ctx context.Context, r *http.Request) (int, interface{})

type Server

type Server struct {
	*server.Server
	// contains filtered or unexported fields
}

func New

func New(swarmAddr, etcdAddr string, isDebug bool) *Server

func (*Server) ListenAndServe

func (s *Server) ListenAndServe(addr string) error

func (*Server) Shutdown

func (s *Server) Shutdown()

type UrlReverser

type UrlReverser interface {
	Reverse(name string, params ...interface{}) string
	Assets(path string) string
}

Jump to

Keyboard shortcuts

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