Documentation
¶
Overview ¶
Package cmd: `rune describe` — one-shot resource diagnostics (RUNE-126).
describe is the deep "why is this resource stuck" view: status with a real reason, the related resources it depends on, and (Phase 2) an event trail. The server assembles it in one RPC; this file is a thin renderer over the result.
Package cmd: `rune get events` — surface the persisted event log (RUNE-126 Phase 2). The same log is also folded into `rune describe`'s Events block.
Package cmd — generic-verb (`rune get volume(s)`, `rune get storageclass(es)`) dispatch handlers for the storage subsystem.
These functions delegate to the same renderers used by the noun-tree commands in volume.go and storageclass.go so the two CLI shapes always produce identical output.
Package cmd: `rune ingress` command family (RUNE-067).
Surfaces the per-service ingress + TLS lifecycle owned by the ingress controller and ACME orchestrator (RUNE-066). All commands are thin views over the existing Service API: a service is considered "exposed" when Spec.Expose.Host is set, and its IngressCertStatus is read directly off the Service. There is no new server-side endpoint in v1.
RUNE-121 S6 — `rune logs <svc> --init-step <name>` surface.
Package cmd: helpers for rendering compiled ServiceNetworkPolicy.
Surfaced via the verb-first `rune get netpolicy <service>` command; the `policy.Compile(...).Explain()` output is the operator's primary tool for answering "why was this connection denied?".
Package cmd — `rune snapshot` noun-tree subcommands.
Mirrors the `rune volume` precedent at pkg/cli/cmd/volume.go. The underlying gRPC SnapshotService is namespace-scoped, so all subcommands accept --namespace (default: "default"). list adds --all-namespaces.
Wired against the live SnapshotService in RUNE-071 (Slice 10a).
Package cmd — `rune storageclass` (alias `sc`) noun-tree subcommands.
Mirrors the `rune secret` precedent at pkg/cli/cmd/secret.go: a single command group whose subcommands wrap the typed StorageClassClient. The underlying gRPC service is cluster-scoped, so none of these subcommands take a --namespace flag.
Package cmd — `rune volume` noun-tree subcommands.
Mirrors the `rune secret` precedent at pkg/cli/cmd/secret.go. The underlying gRPC service is namespace-scoped, so all subcommands accept --namespace (default: "default"). list adds --all-namespaces.
detach and retry-provision call the VolumeService RPCs of the same name. restore is still stubbed pending the SnapshotService (RUNE-071).
Index ¶
- Constants
- func Execute()
- type Context
- type ContextConfig
- type ResourceInfo
- type ResourceTable
- func (t *ResourceTable) RenderConfigmaps(configmaps []*types.Configmap) error
- func (t *ResourceTable) RenderDeletionOperations(operations []*generated.DeletionOperation) error
- func (t *ResourceTable) RenderEvents(events []*generated.Event) error
- func (t *ResourceTable) RenderInstances(instances []*types.Instance) error
- func (t *ResourceTable) RenderNamespaces(namespaces []*types.Namespace) error
- func (t *ResourceTable) RenderSecrets(secrets []*types.Secret) error
- func (t *ResourceTable) RenderServices(services []*types.Service) error
- func (t *ResourceTable) SetHeaders(headers []string)
- func (t *ResourceTable) SetStripAnsiFunc(fn func(string) string)
Constants ¶
const ( OutputFormatText = "text" OutputFormatJSON = "json" OutputFormatRaw = "raw" )
Valid output formats
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Context ¶
type Context struct {
Server string `yaml:"server"`
Token string `yaml:"token"`
DefaultNamespace string `yaml:"defaultNamespace,omitempty"`
// RefreshToken is the RUNE-201 refresh grant. When present, the client
// transparently renews Token on Unauthenticated and rewrites both here.
RefreshToken string `yaml:"refreshToken,omitempty"`
}
Context represents a single context configuration
type ContextConfig ¶
type ContextConfig struct {
CurrentContext string `yaml:"current-context"`
Contexts map[string]Context `yaml:"contexts"`
}
ContextConfig represents the structure of the Rune config file
type ResourceInfo ¶
type ResourceInfo struct {
FilesByType map[string][]string
ServicesByFile map[string][]*types.Service
SecretsByFile map[string][]*types.Secret
ConfigmapsByFile map[string][]*types.Configmap
StorageClassesByFile map[string][]*types.StorageClass
VolumesByFile map[string][]*types.Volume
TotalResources int
SourceArguments []string
}
ResourceInfo holds information about resources to be deployed
type ResourceTable ¶
type ResourceTable struct {
// Configuration
Headers []string
ShowHeaders bool
AllNamespaces bool
ShowLabels bool
MaxWidth int
// Namespace is the resolved namespace scope used when rendering an
// empty-results message (e.g. "No services found in namespace 'stg'").
// Ignored when AllNamespaces is true.
Namespace string
// contains filtered or unexported fields
}
ResourceTable provides a generic interface for rendering tables of different resources
func NewResourceTable ¶
func NewResourceTable() *ResourceTable
NewResourceTable creates a new resource table with default configuration
func (*ResourceTable) RenderConfigmaps ¶
func (t *ResourceTable) RenderConfigmaps(configmaps []*types.Configmap) error
RenderConfigmaps renders a table of configmaps
func (*ResourceTable) RenderDeletionOperations ¶
func (t *ResourceTable) RenderDeletionOperations(operations []*generated.DeletionOperation) error
RenderDeletionOperations renders a table of deletion operations
func (*ResourceTable) RenderEvents ¶
func (t *ResourceTable) RenderEvents(events []*generated.Event) error
RenderEvents renders a table of resource events, newest-first as supplied by the caller. The TARGET column is "<kind>/<name>" with the kind lowercased (e.g. instance/gateway-0) to match the resource-ref style used elsewhere in the CLI and in `rune describe`.
func (*ResourceTable) RenderInstances ¶
func (t *ResourceTable) RenderInstances(instances []*types.Instance) error
RenderInstances renders a table of instances
func (*ResourceTable) RenderNamespaces ¶
func (t *ResourceTable) RenderNamespaces(namespaces []*types.Namespace) error
RenderNamespaces renders a table of namespaces
func (*ResourceTable) RenderSecrets ¶
func (t *ResourceTable) RenderSecrets(secrets []*types.Secret) error
RenderSecrets renders a table of secrets
func (*ResourceTable) RenderServices ¶
func (t *ResourceTable) RenderServices(services []*types.Service) error
RenderServices renders a table of services
func (*ResourceTable) SetHeaders ¶
func (t *ResourceTable) SetHeaders(headers []string)
SetHeaders sets the headers for the table
func (*ResourceTable) SetStripAnsiFunc ¶
func (t *ResourceTable) SetStripAnsiFunc(fn func(string) string)
SetStripAnsiFunc sets a custom function for stripping ANSI codes
Source Files
¶
- admin.go
- admin_policy.go
- admin_service.go
- admin_token.go
- admin_user.go
- audit.go
- cast.go
- cast_display.go
- cast_render.go
- cast_resolve.go
- cast_rollback.go
- cast_runeset.go
- cast_secret_templates.go
- config.go
- configmap.go
- create.go
- delete.go
- deps.go
- describe.go
- exec.go
- get.go
- get_events.go
- get_storage.go
- health.go
- ingress.go
- lint.go
- login.go
- logout.go
- logs.go
- logs_init_step.go
- network.go
- pack.go
- portforward.go
- portforward_daemon_entry.go
- portforward_subcmds.go
- release.go
- restart.go
- root.go
- scale.go
- secret.go
- service.go
- snapshot.go
- status.go
- stop.go
- storageclass.go
- table.go
- ui.go
- utils.go
- version.go
- volume.go
- wait_render.go
- whoami.go
Directories
¶
| Path | Synopsis |
|---|---|
|
Package portforwarddaemon implements the detached daemon backing `rune port-forward -d`, plus the CLI-side RPC client and subcommands for `list` / `stop` / `logs`.
|
Package portforwarddaemon implements the detached daemon backing `rune port-forward -d`, plus the CLI-side RPC client and subcommands for `list` / `stop` / `logs`. |