Documentation
¶
Index ¶
- Variables
- func ClearProjectFilter() error
- func DashboardURL() string
- func GetProjectFilter() (projectID string, projectName string, err error)
- func IsWorkspaceSet() bool
- func SetAPIConfig(input APIConfig) error
- func SetDashboardURL(u string) error
- func SetProjectFilter(projectID string, projectName string) error
- func WorkspaceID() (string, error)
- func WorkspaceName() (string, error)
- type APIConfig
- type Config
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrLogin = errors.New("run `render login` to authenticate")
View Source
var ErrNoWorkspace = errors.New("no workspace set. Use `render workspace set` to set a workspace")
Functions ¶
func ClearProjectFilter ¶
func ClearProjectFilter() error
func DashboardURL ¶
func DashboardURL() string
func GetProjectFilter ¶
func IsWorkspaceSet ¶
func IsWorkspaceSet() bool
func SetAPIConfig ¶
func SetDashboardURL ¶
func SetProjectFilter ¶
func WorkspaceID ¶
func WorkspaceName ¶
Types ¶
type APIConfig ¶
type APIConfig struct {
Key string `yaml:"key,omitempty"`
ExpiresAt int64 `yaml:"expires_at,omitempty"`
Host string `json:"host,omitempty"`
RefreshToken string `json:"refresh_token,omitempty"`
}
func DefaultAPIConfig ¶
type Config ¶
type Config struct {
Version int `yaml:"version"`
Workspace string `yaml:"workspace"`
WorkspaceName string `yaml:"workspace_name"`
ProjectFilter string `yaml:"project_filter,omitempty"` // Project ID for filtering
ProjectName string `yaml:"project_name,omitempty"` // Project name for display
APIConfig `yaml:"api"`
DashboardURL string `yaml:"dashboard_url,omitempty"`
}
Click to show internal directories.
Click to hide internal directories.