types

package
v0.124.1 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2025 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:"-"`
}

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