Documentation
¶
Index ¶
- func NewParamsCollection(hash *mruby.MrbValue, spec params) (*paramsCollection, error)
- func ValidString(value *mruby.MrbValue) *string
- type Classes
- type CurrentState
- type RubyKube
- func (rk *RubyKube) AddVerb(name string, fn verbFunc, args mruby.ArgSpec)
- func (rk *RubyKube) Close() error
- func (rk *RubyKube) GetDefaultNamespace(override string) string
- func (rk *RubyKube) GetNamespace(override string) string
- func (rk *RubyKube) Mrb() *mruby.Mrb
- func (rk *RubyKube) MultiLinePrompt()
- func (rk *RubyKube) NormalPrompt()
- func (rk *RubyKube) Run(script string) (*mruby.MrbValue, error)
- func (rk *RubyKube) RunCode(block *mruby.MrbValue, stackKeep int) (*mruby.MrbValue, int, error)
- func (rk *RubyKube) SetNamespace(ns string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewParamsCollection ¶
func ValidString ¶
Types ¶
type Classes ¶
type Classes struct { Root *mruby.Class Pods *podsClass Pod *podClass Service *serviceClass Services *servicesClass Deployments *deploymentsClass Deployment *deploymentClass ReplicaSets *replicaSetsClass ReplicaSet *replicaSetClass DaemonSets *daemonSetsClass DaemonSet *daemonSetClass PodLogs *podLogsClass PodMaker *podMakerClass LabelSelector *labelSelectorClass LabelCollector *labelCollectorClass LabelKey *labelKeyClass FieldSelector *fieldSelectorClass FieldCollector *fieldCollectorClass FieldKey *fieldKeyClass }
type CurrentState ¶
type RubyKube ¶
type RubyKube struct {
// contains filtered or unexported fields
}
func NewRubyKube ¶
NewRubyKube may return an error on mruby or k8s.io/client-go issues.
func (*RubyKube) AddVerb ¶
AddVerb adds a function to the mruby dispatch as well as adding hooks around the call to ensure containers are committed and intermediate layers are cleared.
func (*RubyKube) GetDefaultNamespace ¶
func (*RubyKube) GetNamespace ¶
func (*RubyKube) MultiLinePrompt ¶
func (rk *RubyKube) MultiLinePrompt()
func (*RubyKube) NormalPrompt ¶
func (rk *RubyKube) NormalPrompt()
func (*RubyKube) SetNamespace ¶
Source Files
¶
- funcs.go
- gotemplate_daemonSetClass.go
- gotemplate_daemonSetPodFinderModule.go
- gotemplate_daemonSetSingletonModule.go
- gotemplate_daemonSetsClass.go
- gotemplate_daemonSetsListModule.go
- gotemplate_deploymentClass.go
- gotemplate_deploymentPodFinderModule.go
- gotemplate_deploymentSingletonModule.go
- gotemplate_deploymentsClass.go
- gotemplate_deploymentsListModule.go
- gotemplate_fieldCollectorClass.go
- gotemplate_fieldKeyClass.go
- gotemplate_fieldSelectorClass.go
- gotemplate_labelCollectorClass.go
- gotemplate_labelKeyClass.go
- gotemplate_labelSelectorClass.go
- gotemplate_podClass.go
- gotemplate_podLogsClass.go
- gotemplate_podMakerClass.go
- gotemplate_podSingletonModule.go
- gotemplate_podsClass.go
- gotemplate_podsListModule.go
- gotemplate_replicaSetClass.go
- gotemplate_replicaSetPodFinderModule.go
- gotemplate_replicaSetSingletonModule.go
- gotemplate_replicaSetsClass.go
- gotemplate_replicaSetsListModule.go
- gotemplate_serviceClass.go
- gotemplate_servicePodFinderModule.go
- gotemplate_serviceSingletonModule.go
- gotemplate_servicesClass.go
- gotemplate_servicesListModule.go
- helpers_fieldCollectorClass.go
- helpers_fieldKeyClass.go
- helpers_fieldSelectorClass.go
- helpers_labelCollectorClass.go
- helpers_labelKeyClass.go
- helpers_labelSelectorClass.go
- helpers_podLogsClass.go
- helpers_podMakerClass.go
- patches.go
- resources_daemonSetClass.go
- resources_daemonSetsClass.go
- resources_deploymentClass.go
- resources_deploymentsClass.go
- resources_podClass.go
- resources_podsClass.go
- resources_replicaSetClass.go
- resources_replicaSetsClass.go
- resources_serviceClass.go
- resources_servicesClass.go
- rubykube.go
- util.go
- verbs.go
Click to show internal directories.
Click to hide internal directories.