Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type InstanceSummary ¶ added in v0.2.13
type InstanceSummary struct {
Name string `json:"name" yaml:"name"`
Selected bool `json:"selected" yaml:"selected"`
Status string `json:"status" yaml:"status"`
Port int `json:"port,omitempty" yaml:"port,omitempty"`
APIPort int `json:"apiPort,omitempty" yaml:"apiPort,omitempty"`
Version string `json:"version,omitempty" yaml:"version,omitempty"`
Profile string `json:"profile" yaml:"profile"`
}
InstanceSummary is one row of `agyn local list`.
type RunContext ¶
type RunContext struct {
Config *config.Config
Clients *gateway.Clients
// ProfileName is the profile this invocation runs under. Endpoint, token,
// CA and organization all resolve through it, so a command never has to
// know which cluster it is talking to.
ProfileName string
OutputFormat output.Format
NoColor bool
}
func RunContextFrom ¶
func RunContextFrom(cmd *cobra.Command) (*RunContext, error)
func (*RunContext) OrganizationID ¶ added in v0.2.13
func (r *RunContext) OrganizationID(flag string) string
OrganizationID resolves the organization a command acts in from local settings alone: an explicit flag, then the environment, then the profile's selection. An empty result means nothing local chose one — see resolveOrganizationID, which then asks the Gateway.
Source Files
¶
- agents.go
- app_proxy.go
- apps.go
- auth.go
- egress.go
- env.go
- expose.go
- expose_add.go
- expose_list.go
- expose_remove.go
- files.go
- files_download.go
- files_info.go
- files_upload.go
- files_url.go
- format.go
- groups.go
- local.go
- local_ca.go
- local_config.go
- local_credentials.go
- local_instances.go
- local_kubeconfig.go
- local_reset.go
- messages.go
- networks.go
- organizations.go
- profile.go
- root.go
- sandbox.go
- sandbox_attach.go
- sandbox_cp.go
- sandbox_resolve.go
- sandbox_sync.go
- sandbox_sync_daemon.go
- sandbox_sync_manage.go
- sandbox_sync_run.go
- sandbox_sync_stdout_linux.go
- threads.go
- version.go