portal

package
v0.32.0 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2026 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Overview

Package portal contains functions for listing routes.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Option

type Option func(cfg *config)

An Option customizes the portal config.

func WithBrowserCommand

func WithBrowserCommand(browserCommand string) Option

WithBrowserCommand sets the browser command in the portal config.

func WithJWTCache

func WithJWTCache(jwtCache jwt.Cache) Option

WithJWTCache sets the jwt cache in the portal config.

func WithServiceAccount

func WithServiceAccount(serviceAccount string) Option

WithServiceAccount sets the service account in the portal config.

func WithServiceAccountFile

func WithServiceAccountFile(serviceAccountFile string) Option

WithServiceAccountFile sets the service account file in the portal config.

func WithTLSConfig

func WithTLSConfig(tlsConfig *tls.Config) Option

WithTLSConfig sets the tls config in the portal config.

type Portal

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

func New

func New(options ...Option) *Portal

New creates a new Portal.

func (*Portal) ListRoutes

func (p *Portal) ListRoutes(ctx context.Context, rawServerURL string) ([]Route, error)

type Route

type Route = portal.Route

Jump to

Keyboard shortcuts

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