types

package
v0.125.0 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2026 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConfigFile added in v0.117.0

type ConfigFile struct {
	// Legacy single token (for backward compatibility)
	Token string `json:"token,omitempty"`

	// New profile-based configuration
	Profiles       map[string]Profile `json:"profiles,omitempty"`
	DefaultProfile string             `json:"defaultProfile,omitempty"`
}

ConfigFile represents the structure of ~/.replicated/config.yaml

type Credentials

type Credentials struct {
	// APIToken is the API token used to authenticate with the Replicated API
	APIToken string `json:"token"`

	IsEnv        bool `json:"-"`
	IsConfigFile bool `json:"-"`
	IsProfile    bool `json:"-"`
	IsCMX        bool `json:"-"`

	// APIOrigin is populated when IsCMX is true. It holds the api_url from the
	// Firecracker MMDS so the CLI can talk to the same vendor-api instance that
	// issued the token, without requiring REPLICATED_API_ORIGIN to be set manually.
	APIOrigin string `json:"-"`
}

type Profile added in v0.117.0

type Profile struct {
	APIToken       string `json:"apiToken"`
	APIOrigin      string `json:"apiOrigin,omitempty"`
	RegistryOrigin string `json:"registryOrigin,omitempty"`
	// Namespace is used for okteto dev environments to auto-generate service URLs
	// e.g., namespace="noahecampbell" generates:
	//   - vendor-api-noahecampbell.okteto.repldev.com
	//   - vendor-web-noahecampbell.okteto.repldev.com
	//   - etc.
	Namespace string `json:"namespace,omitempty"`
}

Profile represents a named authentication profile

Jump to

Keyboard shortcuts

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