flux: github.com/weaveworks/flux/pkg/http/daemon Index | Files

package daemon

import "github.com/weaveworks/flux/pkg/http/daemon"


Package Files

server.go upstream.go


var (
    ErrEndpointDeprecated = errors.New("Your fluxd version is deprecated - please upgrade, see https://github.com/weaveworks/flux-adapter")

func NewHandler Uses

func NewHandler(s api.Server, r *mux.Router) http.Handler

func NewRouter Uses

func NewRouter() *mux.Router

An API server for the daemon

type HTTPServer Uses

type HTTPServer struct {
    // contains filtered or unexported fields

func (HTTPServer) Export Uses

func (s HTTPServer) Export(w http.ResponseWriter, r *http.Request)

func (HTTPServer) GetPublicSSHKey Uses

func (s HTTPServer) GetPublicSSHKey(w http.ResponseWriter, r *http.Request)

func (HTTPServer) GitRepoConfig Uses

func (s HTTPServer) GitRepoConfig(w http.ResponseWriter, r *http.Request)

func (HTTPServer) JobStatus Uses

func (s HTTPServer) JobStatus(w http.ResponseWriter, r *http.Request)

func (HTTPServer) ListImagesWithOptions Uses

func (s HTTPServer) ListImagesWithOptions(w http.ResponseWriter, r *http.Request)

func (HTTPServer) ListServicesWithOptions Uses

func (s HTTPServer) ListServicesWithOptions(w http.ResponseWriter, r *http.Request)

func (HTTPServer) Notify Uses

func (s HTTPServer) Notify(w http.ResponseWriter, r *http.Request)

func (HTTPServer) Ping Uses

func (s HTTPServer) Ping(w http.ResponseWriter, r *http.Request)

func (HTTPServer) RegeneratePublicSSHKey Uses

func (s HTTPServer) RegeneratePublicSSHKey(w http.ResponseWriter, r *http.Request)

func (HTTPServer) SyncStatus Uses

func (s HTTPServer) SyncStatus(w http.ResponseWriter, r *http.Request)

func (HTTPServer) UpdateImages Uses

func (s HTTPServer) UpdateImages(w http.ResponseWriter, r *http.Request)

func (HTTPServer) UpdateManifests Uses

func (s HTTPServer) UpdateManifests(w http.ResponseWriter, r *http.Request)

func (HTTPServer) UpdatePolicies Uses

func (s HTTPServer) UpdatePolicies(w http.ResponseWriter, r *http.Request)

func (HTTPServer) Version Uses

func (s HTTPServer) Version(w http.ResponseWriter, r *http.Request)

type Upstream Uses

type Upstream struct {
    // contains filtered or unexported fields

Upstream handles communication from the daemon to a service

func NewUpstream Uses

func NewUpstream(client *http.Client, ua string, t fluxclient.Token, router *mux.Router, endpoint string, s api.Server, timeout time.Duration, logger log.Logger) (*Upstream, error)

func (*Upstream) Close Uses

func (a *Upstream) Close() error

Close closes the connection to the service

func (*Upstream) LogEvent Uses

func (a *Upstream) LogEvent(event event.Event) error

Package daemon imports 26 packages (graph). Updated 2019-09-29. Refresh now. Tools for package owners.