dashboard

package
v0.0.0-...-c154a1c Latest Latest
Warning

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

Go to latest
Published: May 16, 2024 License: Apache-2.0 Imports: 20 Imported by: 0

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