Documentation ¶
Index ¶
- Variables
- type BasicOptions
- type Context
- type FakeContext
- func (f *FakeContext) Applier() *helper.Applier
- func (f *FakeContext) Builder() *resource.Builder
- func (f *FakeContext) Client() client.Client
- func (f *FakeContext) Namespace() string
- func (f *FakeContext) Scheme() *runtime.Scheme
- func (f *FakeContext) SetClient(c client.Client)
- func (f *FakeContext) SetNamespace(ns string)
- type Options
- type RWContext
Constants ¶
This section is empty.
Variables ¶
View Source
var Dummy = &dummyContext{
namespace: "test",
}
Dummy is the default dummy context.
View Source
var Fake = &FakeContext{
namespace: "test",
}
Functions ¶
This section is empty.
Types ¶
type BasicOptions ¶
type BasicOptions struct { Name string Namespace string genericclioptions.IOStreams }
func NewBasicOptions ¶
func NewBasicOptions(streams genericclioptions.IOStreams) *BasicOptions
func (*BasicOptions) GetRWInstance ¶
func (o *BasicOptions) GetRWInstance(ctx context.Context, rwCtx Context) (*v1alpha1.RisingWave, error)
type FakeContext ¶
type FakeContext struct {
// contains filtered or unexported fields
}
func (*FakeContext) Applier ¶
func (f *FakeContext) Applier() *helper.Applier
func (*FakeContext) Builder ¶
func (f *FakeContext) Builder() *resource.Builder
func (*FakeContext) Client ¶
func (f *FakeContext) Client() client.Client
func (*FakeContext) Namespace ¶
func (f *FakeContext) Namespace() string
func (*FakeContext) Scheme ¶
func (f *FakeContext) Scheme() *runtime.Scheme
func (*FakeContext) SetClient ¶
func (f *FakeContext) SetClient(c client.Client)
func (*FakeContext) SetNamespace ¶
func (f *FakeContext) SetNamespace(ns string)
type Options ¶
type Options interface { BasicOptions Complete() error Validate() error Run() error }
type RWContext ¶
type RWContext struct { *genericclioptions.ConfigFlags // contains filtered or unexported fields }
RWContext wraps the configuration and credential for risingwave cluster accessing.
func NewContext ¶
func NewContext(f *genericclioptions.ConfigFlags) *RWContext
Click to show internal directories.
Click to hide internal directories.