admin

package
v0.0.0-...-dae269f Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2023 License: AGPL-3.0 Imports: 27 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Admin

type Admin struct {
	component.Base
	Dependencies struct {
		Fetchers []component.DistilleryFetcher

		Instances *instances.Instances

		Auth *auth.Auth

		Policy *policy.Policy

		Templating *templating.Templating

		Sockets *socket.Sockets
	}

	Analytics *lifetime.Analytics
}

func (*Admin) Fetch

func (admin *Admin) Fetch(flags component.FetcherFlags, target *status.Distillery) error

func (*Admin) HandleRoute

func (admin *Admin) HandleRoute(ctx context.Context, route string) (handler http.Handler, err error)

func (*Admin) Menu

func (admin *Admin) Menu(r *http.Request) []component.MenuItem

func (*Admin) Routes

func (admin *Admin) Routes() component.Routes

func (*Admin) Status

func (admin *Admin) Status(ctx context.Context, QuickInformation bool) (target status.Distillery, information []status.WissKI, err error)

Status produces a new observation of the distillery, and a new information of all instances The information on all instances is passed the given quick flag.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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