Documentation ¶
Overview ¶
Code generated by counterfeiter. DO NOT EDIT.
Index ¶
- Constants
- func FixLabelValue(value string) string
- func MakeK8sValue(k8s K8s, args starlark.Tuple, kwargs []starlark.Tuple) (value starlark.Value, e error)
- func NewStreamValue(s Stream) starlark.Value
- type CancelObjectStream
- type Config
- type Configs
- type FakeK8s
- func (fake *FakeK8s) Apply(arg1 ObjectStream, arg2 *Options) error
- func (fake *FakeK8s) ApplyArgsForCall(i int) (ObjectStream, *Options)
- func (fake *FakeK8s) ApplyCallCount() int
- func (fake *FakeK8s) ApplyCalls(stub func(ObjectStream, *Options) error)
- func (fake *FakeK8s) ApplyReturns(result1 error)
- func (fake *FakeK8s) ApplyReturnsOnCall(i int, result1 error)
- func (fake *FakeK8s) ConfigContent() *string
- func (fake *FakeK8s) ConfigContentCallCount() int
- func (fake *FakeK8s) ConfigContentCalls(stub func() *string)
- func (fake *FakeK8s) ConfigContentReturns(result1 *string)
- func (fake *FakeK8s) ConfigContentReturnsOnCall(i int, result1 *string)
- func (fake *FakeK8s) CreateOrUpdate(arg1 *Object, arg2 func(obj *Object) error, arg3 *Options) (*Object, error)
- func (fake *FakeK8s) CreateOrUpdateArgsForCall(i int) (*Object, func(obj *Object) error, *Options)
- func (fake *FakeK8s) CreateOrUpdateCallCount() int
- func (fake *FakeK8s) CreateOrUpdateCalls(stub func(*Object, func(obj *Object) error, *Options) (*Object, error))
- func (fake *FakeK8s) CreateOrUpdateReturns(result1 *Object, result2 error)
- func (fake *FakeK8s) CreateOrUpdateReturnsOnCall(i int, result1 *Object, result2 error)
- func (fake *FakeK8s) Delete(arg1 ObjectStream, arg2 *Options) error
- func (fake *FakeK8s) DeleteArgsForCall(i int) (ObjectStream, *Options)
- func (fake *FakeK8s) DeleteByName(arg1 string, arg2 string, arg3 *Options) error
- func (fake *FakeK8s) DeleteByNameArgsForCall(i int) (string, string, *Options)
- func (fake *FakeK8s) DeleteByNameCallCount() int
- func (fake *FakeK8s) DeleteByNameCalls(stub func(string, string, *Options) error)
- func (fake *FakeK8s) DeleteByNameReturns(result1 error)
- func (fake *FakeK8s) DeleteByNameReturnsOnCall(i int, result1 error)
- func (fake *FakeK8s) DeleteCallCount() int
- func (fake *FakeK8s) DeleteCalls(stub func(ObjectStream, *Options) error)
- func (fake *FakeK8s) DeleteObject(arg1 string, arg2 string, arg3 *Options) error
- func (fake *FakeK8s) DeleteObjectArgsForCall(i int) (string, string, *Options)
- func (fake *FakeK8s) DeleteObjectCallCount() int
- func (fake *FakeK8s) DeleteObjectCalls(stub func(string, string, *Options) error)
- func (fake *FakeK8s) DeleteObjectReturns(result1 error)
- func (fake *FakeK8s) DeleteObjectReturnsOnCall(i int, result1 error)
- func (fake *FakeK8s) DeleteReturns(result1 error)
- func (fake *FakeK8s) DeleteReturnsOnCall(i int, result1 error)
- func (fake *FakeK8s) ForConfig(arg1 string) (K8s, error)
- func (fake *FakeK8s) ForConfigArgsForCall(i int) string
- func (fake *FakeK8s) ForConfigCallCount() int
- func (fake *FakeK8s) ForConfigCalls(stub func(string) (K8s, error))
- func (fake *FakeK8s) ForConfigReturns(result1 K8s, result2 error)
- func (fake *FakeK8s) ForConfigReturnsOnCall(i int, result1 K8s, result2 error)
- func (fake *FakeK8s) ForSubChart(arg1 string, arg2 string, arg3 *semver.Version, arg4 int) K8s
- func (fake *FakeK8s) ForSubChartArgsForCall(i int) (string, string, *semver.Version, int)
- func (fake *FakeK8s) ForSubChartCallCount() int
- func (fake *FakeK8s) ForSubChartCalls(stub func(string, string, *semver.Version, int) K8s)
- func (fake *FakeK8s) ForSubChartReturns(result1 K8s)
- func (fake *FakeK8s) ForSubChartReturnsOnCall(i int, result1 K8s)
- func (fake *FakeK8s) Get(arg1 string, arg2 string, arg3 *Options) (*Object, error)
- func (fake *FakeK8s) GetArgsForCall(i int) (string, string, *Options)
- func (fake *FakeK8s) GetCallCount() int
- func (fake *FakeK8s) GetCalls(stub func(string, string, *Options) (*Object, error))
- func (fake *FakeK8s) GetReturns(result1 *Object, result2 error)
- func (fake *FakeK8s) GetReturnsOnCall(i int, result1 *Object, result2 error)
- func (fake *FakeK8s) Host() string
- func (fake *FakeK8s) HostCallCount() int
- func (fake *FakeK8s) HostCalls(stub func() string)
- func (fake *FakeK8s) HostReturns(result1 string)
- func (fake *FakeK8s) HostReturnsOnCall(i int, result1 string)
- func (fake *FakeK8s) Inspect() string
- func (fake *FakeK8s) InspectCallCount() int
- func (fake *FakeK8s) InspectCalls(stub func() string)
- func (fake *FakeK8s) InspectReturns(result1 string)
- func (fake *FakeK8s) InspectReturnsOnCall(i int, result1 string)
- func (fake *FakeK8s) Invocations() map[string][][]interface{}
- func (fake *FakeK8s) IsNotExist(arg1 error) bool
- func (fake *FakeK8s) IsNotExistArgsForCall(i int) error
- func (fake *FakeK8s) IsNotExistCallCount() int
- func (fake *FakeK8s) IsNotExistCalls(stub func(error) bool)
- func (fake *FakeK8s) IsNotExistReturns(result1 bool)
- func (fake *FakeK8s) IsNotExistReturnsOnCall(i int, result1 bool)
- func (fake *FakeK8s) List(arg1 string, arg2 *Options, arg3 *ListOptions) (*Object, error)
- func (fake *FakeK8s) ListArgsForCall(i int) (string, *Options, *ListOptions)
- func (fake *FakeK8s) ListCallCount() int
- func (fake *FakeK8s) ListCalls(stub func(string, *Options, *ListOptions) (*Object, error))
- func (fake *FakeK8s) ListReturns(result1 *Object, result2 error)
- func (fake *FakeK8s) ListReturnsOnCall(i int, result1 *Object, result2 error)
- func (fake *FakeK8s) Namespace(arg1 *Options) *string
- func (fake *FakeK8s) NamespaceArgsForCall(i int) *Options
- func (fake *FakeK8s) NamespaceCallCount() int
- func (fake *FakeK8s) NamespaceCalls(stub func(*Options) *string)
- func (fake *FakeK8s) NamespaceReturns(result1 *string)
- func (fake *FakeK8s) NamespaceReturnsOnCall(i int, result1 *string)
- func (fake *FakeK8s) Patch(arg1 string, arg2 string, arg3 types.PatchType, arg4 string, arg5 *Options) (*Object, error)
- func (fake *FakeK8s) PatchArgsForCall(i int) (string, string, types.PatchType, string, *Options)
- func (fake *FakeK8s) PatchCallCount() int
- func (fake *FakeK8s) PatchCalls(stub func(string, string, types.PatchType, string, *Options) (*Object, error))
- func (fake *FakeK8s) PatchReturns(result1 *Object, result2 error)
- func (fake *FakeK8s) PatchReturnsOnCall(i int, result1 *Object, result2 error)
- func (fake *FakeK8s) Progress(arg1 int)
- func (fake *FakeK8s) ProgressArgsForCall(i int) int
- func (fake *FakeK8s) ProgressCallCount() int
- func (fake *FakeK8s) ProgressCalls(stub func(int))
- func (fake *FakeK8s) RolloutStatus(arg1 string, arg2 string, arg3 *Options) error
- func (fake *FakeK8s) RolloutStatusArgsForCall(i int) (string, string, *Options)
- func (fake *FakeK8s) RolloutStatusCallCount() int
- func (fake *FakeK8s) RolloutStatusCalls(stub func(string, string, *Options) error)
- func (fake *FakeK8s) RolloutStatusReturns(result1 error)
- func (fake *FakeK8s) RolloutStatusReturnsOnCall(i int, result1 error)
- func (fake *FakeK8s) SetTool(arg1 Tool)
- func (fake *FakeK8s) SetToolArgsForCall(i int) Tool
- func (fake *FakeK8s) SetToolCallCount() int
- func (fake *FakeK8s) SetToolCalls(stub func(Tool))
- func (fake *FakeK8s) Tool() Tool
- func (fake *FakeK8s) ToolCallCount() int
- func (fake *FakeK8s) ToolCalls(stub func() Tool)
- func (fake *FakeK8s) ToolReturns(result1 Tool)
- func (fake *FakeK8s) ToolReturnsOnCall(i int, result1 Tool)
- func (fake *FakeK8s) Wait(arg1 string, arg2 string, arg3 string, arg4 *Options) error
- func (fake *FakeK8s) WaitArgsForCall(i int) (string, string, string, *Options)
- func (fake *FakeK8s) WaitCallCount() int
- func (fake *FakeK8s) WaitCalls(stub func(string, string, string, *Options) error)
- func (fake *FakeK8s) WaitReturns(result1 error)
- func (fake *FakeK8s) WaitReturnsOnCall(i int, result1 error)
- func (fake *FakeK8s) Watch(arg1 string, arg2 string, arg3 *Options) ObjectStream
- func (fake *FakeK8s) WatchArgsForCall(i int) (string, string, *Options)
- func (fake *FakeK8s) WatchCallCount() int
- func (fake *FakeK8s) WatchCalls(stub func(string, string, *Options) ObjectStream)
- func (fake *FakeK8s) WatchReturns(result1 ObjectStream)
- func (fake *FakeK8s) WatchReturnsOnCall(i int, result1 ObjectStream)
- func (fake *FakeK8s) WithContext(arg1 context.Context) K8s
- func (fake *FakeK8s) WithContextArgsForCall(i int) context.Context
- func (fake *FakeK8s) WithContextCallCount() int
- func (fake *FakeK8s) WithContextCalls(stub func(context.Context) K8s)
- func (fake *FakeK8s) WithContextReturns(result1 K8s)
- func (fake *FakeK8s) WithContextReturnsOnCall(i int, result1 K8s)
- type K8s
- type K8sInMemory
- func (k K8sInMemory) Apply(output ObjectStream, options *Options) error
- func (k K8sInMemory) ConfigContent() *string
- func (k K8sInMemory) CreateOrUpdate(obj *Object, mutate func(obj *Object) error, options *Options) (*Object, error)
- func (k K8sInMemory) Delete(output ObjectStream, options *Options) error
- func (k K8sInMemory) DeleteByName(kind string, name string, options *Options) error
- func (k K8sInMemory) DeleteObject(kind string, name string, options *Options) error
- func (k K8sInMemory) ForConfig(config string) (K8s, error)
- func (k K8sInMemory) ForSubChart(namespace string, app string, version *semver.Version, children int) K8s
- func (k K8sInMemory) Get(kind string, name string, options *Options) (*Object, error)
- func (k K8sInMemory) GetObject(kind string, name string, options *Options) (*Object, error)
- func (k K8sInMemory) Host() string
- func (k K8sInMemory) Inspect() string
- func (k K8sInMemory) IsNotExist(err error) bool
- func (k K8sInMemory) List(kind string, options *Options, listOptions *ListOptions) (*Object, error)
- func (k K8sInMemory) Namespace(options *Options) *string
- func (k K8sInMemory) Patch(kind string, name string, pt types.PatchType, patchJSON string, ...) (*Object, error)
- func (k K8sInMemory) Progress(progress int)
- func (k K8sInMemory) RolloutStatus(kind string, name string, options *Options) error
- func (k K8sInMemory) SetTool(tool Tool)
- func (k K8sInMemory) Tool() Tool
- func (k K8sInMemory) Wait(kind string, name string, condition string, options *Options) error
- func (k K8sInMemory) Watch(kind string, name string, options *Options) ObjectStream
- func (k K8sInMemory) WithContext(ctx context.Context) K8s
- type K8sReader
- type K8sValue
- type ListOptions
- type MetaData
- type Object
- type ObjectConsumer
- type ObjectStream
- func (o ObjectStream) Encode() Stream
- func (o ObjectStream) Filter(filter func(obj *Object) bool) ObjectStream
- func (o ObjectStream) GroupBy(group func(o *Object) string) func(key string) ObjectStream
- func (o ObjectStream) Map(f func(obj *Object) *Object) ObjectStream
- func (o ObjectStream) Sort(f func(o1 *Object, o2 *Object) int, reverse bool) ObjectStream
- type Options
- type ProgressSubscription
- type Stream
- type Tool
Constants ¶
View Source
const ( // ToolKubectl - ToolKubectl = iota // ToolKapp - ToolKapp )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CancelObjectStream ¶
type CancelObjectStream struct{}
CancelObjectStream -
func (CancelObjectStream) Error ¶
func (c CancelObjectStream) Error() string
type Config ¶
Config -
func WithKubeConfigContent ¶
WithKubeConfigContent -
func WithProgressSubscription ¶
func WithProgressSubscription(value ProgressSubscription) Config
WithProgressSubscription -
type FakeK8s ¶
type FakeK8s struct { ApplyStub func(ObjectStream, *Options) error ConfigContentStub func() *string CreateOrUpdateStub func(*Object, func(obj *Object) error, *Options) (*Object, error) DeleteStub func(ObjectStream, *Options) error DeleteByNameStub func(string, string, *Options) error DeleteObjectStub func(string, string, *Options) error ForConfigStub func(string) (K8s, error) ForSubChartStub func(string, string, *semver.Version, int) K8s GetStub func(string, string, *Options) (*Object, error) HostStub func() string InspectStub func() string IsNotExistStub func(error) bool ListStub func(string, *Options, *ListOptions) (*Object, error) NamespaceStub func(*Options) *string PatchStub func(string, string, types.PatchType, string, *Options) (*Object, error) ProgressStub func(int) RolloutStatusStub func(string, string, *Options) error SetToolStub func(Tool) ToolStub func() Tool WaitStub func(string, string, string, *Options) error WatchStub func(string, string, *Options) ObjectStream WithContextStub func(context.Context) K8s // contains filtered or unexported fields }
func (*FakeK8s) ApplyArgsForCall ¶
func (fake *FakeK8s) ApplyArgsForCall(i int) (ObjectStream, *Options)
func (*FakeK8s) ApplyCallCount ¶
func (*FakeK8s) ApplyCalls ¶
func (fake *FakeK8s) ApplyCalls(stub func(ObjectStream, *Options) error)
func (*FakeK8s) ApplyReturns ¶
func (*FakeK8s) ApplyReturnsOnCall ¶
func (*FakeK8s) ConfigContent ¶
func (*FakeK8s) ConfigContentCallCount ¶
func (*FakeK8s) ConfigContentCalls ¶
func (*FakeK8s) ConfigContentReturns ¶
func (*FakeK8s) ConfigContentReturnsOnCall ¶
func (*FakeK8s) CreateOrUpdate ¶
func (*FakeK8s) CreateOrUpdateArgsForCall ¶
func (*FakeK8s) CreateOrUpdateCallCount ¶
func (*FakeK8s) CreateOrUpdateCalls ¶
func (*FakeK8s) CreateOrUpdateReturns ¶
func (*FakeK8s) CreateOrUpdateReturnsOnCall ¶
func (*FakeK8s) DeleteArgsForCall ¶
func (fake *FakeK8s) DeleteArgsForCall(i int) (ObjectStream, *Options)
func (*FakeK8s) DeleteByName ¶
func (*FakeK8s) DeleteByNameArgsForCall ¶
func (*FakeK8s) DeleteByNameCallCount ¶
func (*FakeK8s) DeleteByNameCalls ¶
func (*FakeK8s) DeleteByNameReturns ¶
func (*FakeK8s) DeleteByNameReturnsOnCall ¶
func (*FakeK8s) DeleteCallCount ¶
func (*FakeK8s) DeleteCalls ¶
func (fake *FakeK8s) DeleteCalls(stub func(ObjectStream, *Options) error)
func (*FakeK8s) DeleteObject ¶
func (*FakeK8s) DeleteObjectArgsForCall ¶
func (*FakeK8s) DeleteObjectCallCount ¶
func (*FakeK8s) DeleteObjectCalls ¶
func (*FakeK8s) DeleteObjectReturns ¶
func (*FakeK8s) DeleteObjectReturnsOnCall ¶
func (*FakeK8s) DeleteReturns ¶
func (*FakeK8s) DeleteReturnsOnCall ¶
func (*FakeK8s) ForConfigArgsForCall ¶
func (*FakeK8s) ForConfigCallCount ¶
func (*FakeK8s) ForConfigCalls ¶
func (*FakeK8s) ForConfigReturns ¶
func (*FakeK8s) ForConfigReturnsOnCall ¶
func (*FakeK8s) ForSubChart ¶
func (*FakeK8s) ForSubChartArgsForCall ¶
func (*FakeK8s) ForSubChartCallCount ¶
func (*FakeK8s) ForSubChartCalls ¶
func (*FakeK8s) ForSubChartReturns ¶
func (*FakeK8s) ForSubChartReturnsOnCall ¶
func (*FakeK8s) GetArgsForCall ¶
func (*FakeK8s) GetCallCount ¶
func (*FakeK8s) GetReturns ¶
func (*FakeK8s) GetReturnsOnCall ¶
func (*FakeK8s) HostCallCount ¶
func (*FakeK8s) HostReturns ¶
func (*FakeK8s) HostReturnsOnCall ¶
func (*FakeK8s) InspectCallCount ¶
func (*FakeK8s) InspectCalls ¶
func (*FakeK8s) InspectReturns ¶
func (*FakeK8s) InspectReturnsOnCall ¶
func (*FakeK8s) Invocations ¶
func (*FakeK8s) IsNotExist ¶
func (*FakeK8s) IsNotExistArgsForCall ¶
func (*FakeK8s) IsNotExistCallCount ¶
func (*FakeK8s) IsNotExistCalls ¶
func (*FakeK8s) IsNotExistReturns ¶
func (*FakeK8s) IsNotExistReturnsOnCall ¶
func (*FakeK8s) ListArgsForCall ¶
func (fake *FakeK8s) ListArgsForCall(i int) (string, *Options, *ListOptions)
func (*FakeK8s) ListCallCount ¶
func (*FakeK8s) ListReturns ¶
func (*FakeK8s) ListReturnsOnCall ¶
func (*FakeK8s) NamespaceArgsForCall ¶
func (*FakeK8s) NamespaceCallCount ¶
func (*FakeK8s) NamespaceCalls ¶
func (*FakeK8s) NamespaceReturns ¶
func (*FakeK8s) NamespaceReturnsOnCall ¶
func (*FakeK8s) PatchArgsForCall ¶
func (*FakeK8s) PatchCallCount ¶
func (*FakeK8s) PatchCalls ¶
func (*FakeK8s) PatchReturns ¶
func (*FakeK8s) PatchReturnsOnCall ¶
func (*FakeK8s) ProgressArgsForCall ¶
func (*FakeK8s) ProgressCallCount ¶
func (*FakeK8s) ProgressCalls ¶
func (*FakeK8s) RolloutStatus ¶
func (*FakeK8s) RolloutStatusArgsForCall ¶
func (*FakeK8s) RolloutStatusCallCount ¶
func (*FakeK8s) RolloutStatusCalls ¶
func (*FakeK8s) RolloutStatusReturns ¶
func (*FakeK8s) RolloutStatusReturnsOnCall ¶
func (*FakeK8s) SetToolArgsForCall ¶
func (*FakeK8s) SetToolCallCount ¶
func (*FakeK8s) SetToolCalls ¶
func (*FakeK8s) ToolCallCount ¶
func (*FakeK8s) ToolReturns ¶
func (*FakeK8s) ToolReturnsOnCall ¶
func (*FakeK8s) WaitArgsForCall ¶
func (*FakeK8s) WaitCallCount ¶
func (*FakeK8s) WaitReturns ¶
func (*FakeK8s) WaitReturnsOnCall ¶
func (*FakeK8s) Watch ¶
func (fake *FakeK8s) Watch(arg1 string, arg2 string, arg3 *Options) ObjectStream
func (*FakeK8s) WatchArgsForCall ¶
func (*FakeK8s) WatchCallCount ¶
func (*FakeK8s) WatchCalls ¶
func (fake *FakeK8s) WatchCalls(stub func(string, string, *Options) ObjectStream)
func (*FakeK8s) WatchReturns ¶
func (fake *FakeK8s) WatchReturns(result1 ObjectStream)
func (*FakeK8s) WatchReturnsOnCall ¶
func (fake *FakeK8s) WatchReturnsOnCall(i int, result1 ObjectStream)
func (*FakeK8s) WithContextArgsForCall ¶
func (*FakeK8s) WithContextCallCount ¶
func (*FakeK8s) WithContextCalls ¶
func (*FakeK8s) WithContextReturns ¶
func (*FakeK8s) WithContextReturnsOnCall ¶
type K8s ¶
type K8s interface { K8sReader ForSubChart(namespace string, app string, version *semver.Version, children int) K8s Inspect() string Watch(kind string, name string, options *Options) ObjectStream RolloutStatus(kind string, name string, options *Options) error Wait(kind string, name string, condition string, options *Options) error DeleteObject(kind string, name string, options *Options) error Apply(output ObjectStream, options *Options) error Delete(output ObjectStream, options *Options) error Patch(kind string, name string, pt types.PatchType, patch string, options *Options) (*Object, error) CreateOrUpdate(obj *Object, mutate func(obj *Object) error, options *Options) (*Object, error) DeleteByName(kind string, name string, options *Options) error ConfigContent() *string ForConfig(config string) (K8s, error) WithContext(ctx context.Context) K8s Progress(progress int) Tool() Tool SetTool(tool Tool) Namespace(options *Options) *string }
K8s kubernetes API
type K8sInMemory ¶
type K8sInMemory struct {
// contains filtered or unexported fields
}
K8sInMemory in memory implementation of K8s
func NewK8sInMemory ¶
func NewK8sInMemory(namespace string, objects ...Object) *K8sInMemory
NewK8sInMemory creates a new K8sInMemory instance
func NewK8sInMemoryEmpty ¶
func NewK8sInMemoryEmpty() *K8sInMemory
NewK8sInMemoryEmpty creates a new K8sInMemory instance
func (K8sInMemory) Apply ¶
func (k K8sInMemory) Apply(output ObjectStream, options *Options) error
Apply -
func (K8sInMemory) CreateOrUpdate ¶
func (K8sInMemory) Delete ¶
func (k K8sInMemory) Delete(output ObjectStream, options *Options) error
Delete -
func (K8sInMemory) DeleteByName ¶
func (k K8sInMemory) DeleteByName(kind string, name string, options *Options) error
func (K8sInMemory) DeleteObject ¶
func (k K8sInMemory) DeleteObject(kind string, name string, options *Options) error
DeleteObject -
func (K8sInMemory) ForConfig ¶
func (k K8sInMemory) ForConfig(config string) (K8s, error)
ForConfig -
func (K8sInMemory) ForSubChart ¶
func (k K8sInMemory) ForSubChart(namespace string, app string, version *semver.Version, children int) K8s
ForSubChart -
func (K8sInMemory) List ¶
func (k K8sInMemory) List(kind string, options *Options, listOptions *ListOptions) (*Object, error)
List -
func (K8sInMemory) Namespace ¶
func (k K8sInMemory) Namespace(options *Options) *string
func (K8sInMemory) Patch ¶
func (k K8sInMemory) Patch(kind string, name string, pt types.PatchType, patchJSON string, options *Options) (*Object, error)
Patch -
func (K8sInMemory) RolloutStatus ¶
func (k K8sInMemory) RolloutStatus(kind string, name string, options *Options) error
RolloutStatus -
func (K8sInMemory) Watch ¶
func (k K8sInMemory) Watch(kind string, name string, options *Options) ObjectStream
Watch -
func (K8sInMemory) WithContext ¶
func (k K8sInMemory) WithContext(ctx context.Context) K8s
WithContext -
type K8sReader ¶
type K8sReader interface { Host() string Get(kind string, name string, options *Options) (*Object, error) List(kind string, options *Options, listOptions *ListOptions) (*Object, error) IsNotExist(err error) bool }
K8sReader kubernetes reader API
type K8sValue ¶
K8sValue -
func NewK8sValue ¶
NewK8sValue create new instance to interact with kubernetes
type ListOptions ¶
ListOptions -
type MetaData ¶
type MetaData struct { Namespace string Name string Labels map[string]string Annotations map[string]string Additional map[string]json.RawMessage }
MetaData -
type Object ¶
type Object struct { MetaData MetaData `json:"metadata,omitempty"` APIVersion string `json:"apiVersion,omitempty"` Kind string `json:"kind,omitempty"` Additional map[string]json.RawMessage `json:",inline"` }
Object -
type ObjectStream ¶
type ObjectStream func(w ObjectConsumer) error
ObjectStream -
func (ObjectStream) Filter ¶
func (o ObjectStream) Filter(filter func(obj *Object) bool) ObjectStream
Filter -
func (ObjectStream) GroupBy ¶
func (o ObjectStream) GroupBy(group func(o *Object) string) func(key string) ObjectStream
GroupBy -
func (ObjectStream) Sort ¶
func (o ObjectStream) Sort(f func(o1 *Object, o2 *Object) int, reverse bool) ObjectStream
Sort -
type Options ¶
type Options struct { ClusterScoped bool Namespace string Timeout time.Duration IgnoreNotFound bool Quiet bool Tool Tool }
Options common options for calls to k8s
Click to show internal directories.
Click to hide internal directories.