webui

package
v2.24.1 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2024 License: Apache-2.0 Imports: 49 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsWebUiBuildIncluded

func IsWebUiBuildIncluded() bool

Types

type AuthConfig

type AuthConfig struct {
	AuthEnabled    bool
	AuthSecretName string
	AuthSecretKey  string

	StaticLoginEnabled    bool
	StaticLoginSecretName string
	StaticAdminSecretKey  string
	StaticViewerSecretKey string

	AdminRbacUser  string
	ViewerRbacUser string

	OidcIssuerUrl        string
	OidcDisplayName      string
	OidcClientId         string
	OidcClientSecretName string
	OidcClientSecretKey  string
	OidcRedirectUrl      string
	OidcScopes           []string
	OidcParams           []string
	OidcUserClaim        string
	OidcGroupClaim       string
	OidcAdminsGroups     []string
	OidcViewersGroups    []string

	LogoutUrl         string
	LogoutReturnParam string
}

type AuthInfo

type AuthInfo struct {
	AuthEnabled        bool `json:"authEnabled"`
	StaticLoginEnabled bool `json:"staticLoginEnabled"`

	OidcEnabled     bool   `json:"oidcEnabled"`
	OidcDisplayName string `json:"oidcName,omitempty"`
}

type CommandResultsServer

type CommandResultsServer struct {
	// contains filtered or unexported fields
}

func NewCommandResultsServer

func NewCommandResultsServer(
	ctx context.Context,
	store *results.ResultsCollector,
	configs []*rest.Config,
	controllerNamespace string,
	serverConfig *rest.Config,
	serverClient client.Client,
	authConfig AuthConfig,
	onlyApi bool) (*CommandResultsServer, error)

func (*CommandResultsServer) Run

func (s *CommandResultsServer) Run(host string, port int, openBrowser bool) error

type KluctlDeploymentParam

type KluctlDeploymentParam struct {
	Cluster   string `json:"cluster" form:"cluster"`
	Name      string `json:"name" form:"name"`
	Namespace string `json:"namespace" form:"namespace"`
}

type ProjectTargetKey

type ProjectTargetKey struct {
	Project result.ProjectKey `json:"project"`
	Target  result.TargetKey  `json:"target"`
}

type ShortName

type ShortName struct {
	Group     string `json:"group,omitempty"`
	Kind      string `json:"kind"`
	ShortName string `json:"shortName"`
}

func GetShortNames

func GetShortNames() []ShortName

type StaticWebuiBuilder

type StaticWebuiBuilder struct {
	// contains filtered or unexported fields
}

func NewStaticWebuiBuilder

func NewStaticWebuiBuilder(store results.ResultStore, maxResults int) *StaticWebuiBuilder

func (*StaticWebuiBuilder) Build

func (swb *StaticWebuiBuilder) Build(ctx context.Context, path string) error

type User

type User struct {
	Username string `json:"username"`
	IsAdmin  bool   `json:"isAdmin"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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