config

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2025 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrLogin = errors.New("not authenticated; either set RENDER_API_KEY or ask your MCP host to authenticate")
View Source
var ErrNoWorkspace = errors.New("no workspace set. Prompt the user to select a workspace. Do NOT try to select a workspace for them, as it may be destructive")

Functions

func DashboardURL

func DashboardURL() string

func SelectWorkspace

func SelectWorkspace(workspaceID string) error

func SetAPIConfig

func SetAPIConfig(input APIConfig) error

func WorkspaceID

func WorkspaceID() (string, error)

Types

type APIConfig

type APIConfig struct {
	ExpiresAt    int64  `yaml:"expires_at,omitempty"`
	Host         string `json:"host,omitempty"`
	RefreshToken string `json:"refresh_token,omitempty"`
}

func DefaultAPIConfig

func DefaultAPIConfig() (APIConfig, error)

type Config

type Config struct {
	Version   int    `yaml:"version"`
	Workspace string `yaml:"workspace"`

	APIConfig `yaml:"api"`
}

func Load

func Load() (*Config, error)

func (*Config) Persist

func (c *Config) Persist() error

Jump to

Keyboard shortcuts

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