dashboard

package
v1.14.2 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2025 License: Apache-2.0 Imports: 20 Imported by: ? 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 DashboardResourceRegistrySingleton = registry.NewRegistry("dashboard_resource")

Functions

This section is empty.

Types

type PlatformAuthorizationMode

type PlatformAuthorizationMode string
const (
	PlatformAuthorizationModeServiceAccount          PlatformAuthorizationMode = "service-account"
	PlatformAuthorizationModeAuthorizationHeaderOIDC PlatformAuthorizationMode = "authorization-header-oidc"
)

type Server

type Server struct {
	*restful.AbstractServer

	Platform         platform.Platform
	NoPullBaseImages bool

	Offline    bool
	Repository *functiontemplates.Repository
	// contains filtered or unexported fields
}

func NewServer

func NewServer(parentLogger logger.Logger,
	containerBuilderKind string,
	dockerKeyDir string,
	defaultRegistryURL string,
	defaultRunRegistryURL string,
	platform platform.Platform,
	noPullBaseImages bool,
	configuration *platformconfig.WebServer,
	defaultCredRefreshInterval *time.Duration,
	externalIPAddresses []string,
	defaultNamespace string,
	offline bool,
	repository *functiontemplates.Repository,
	platformConfiguration *platformconfig.Config,
	imageNamePrefixTemplate string,
	platformAuthorizationMode string,
	dependantImageRegistryURL string,
	authConfig *auth.Config) (*Server, error)

func (*Server) GetAuthenticator

func (s *Server) GetAuthenticator() auth.Auth

func (*Server) GetDefaultNamespace

func (s *Server) GetDefaultNamespace() string

func (*Server) GetDependantImagesRegistryURL

func (s *Server) GetDependantImagesRegistryURL() string

func (*Server) GetExternalIPAddresses

func (s *Server) GetExternalIPAddresses() []string

func (*Server) GetImageNamePrefixTemplate

func (s *Server) GetImageNamePrefixTemplate() string

func (*Server) GetPlatformAuthorizationMode

func (s *Server) GetPlatformAuthorizationMode() PlatformAuthorizationMode

func (*Server) GetPlatformConfiguration

func (s *Server) GetPlatformConfiguration() *platformconfig.Config

func (*Server) GetRegistryURL

func (s *Server) GetRegistryURL() string

func (*Server) GetRunRegistryURL

func (s *Server) GetRunRegistryURL() string

func (*Server) InstallMiddleware

func (s *Server) InstallMiddleware(router chi.Router) error

func (*Server) ServeHTTP

func (s *Server) ServeHTTP(w http.ResponseWriter, r *http.Request)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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