list

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: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type API

type API struct {
	component.Base
	Dependencies struct {
		ListInstances *ListInstances
		Auth          *auth.Auth
	}
}

API implements an API to list all instances

func (*API) HandleRoute

func (a *API) HandleRoute(ctx context.Context, path string) (http.Handler, error)

func (*API) Routes

func (lia *API) Routes() component.Routes

type APISystem

type APISystem struct {
	Slug    string
	URL     string
	Tagline string

	EntityCount int
	BundleCount int
	LastEdit    time.Time
}

APISystem represents a system returned by the api

type ListInstances

type ListInstances struct {
	component.Base

	Dependencies struct {
		Auth      *auth.Auth
		Instances *instances.Instances
	}
	// contains filtered or unexported fields
}

ListInstances holds information about all instances

func (*ListInstances) Cron

func (li *ListInstances) Cron(ctx context.Context) (err error)

func (*ListInstances) Infos

func (li *ListInstances) Infos() []status.WissKI

func (*ListInstances) Names

func (li *ListInstances) Names() map[string]struct{}

func (*ListInstances) ShouldShowList

func (li *ListInstances) ShouldShowList(r *http.Request) bool

ShouldShowList determines if a list should be shown for the given request

func (*ListInstances) TaskName

func (li *ListInstances) TaskName() string

Jump to

Keyboard shortcuts

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