Documentation ¶
Index ¶
- func NewFakeFactory() jxfactory.Factory
- func NewFakeFactoryWithObjects(kubeObjects []runtime.Object, jxObjects []runtime.Object, namespace string) jxfactory.Factory
- type FakeFactory
- func (f *FakeFactory) CreateJXClient() (versioned.Interface, string, error)
- func (f *FakeFactory) CreateKubeClient() (kubernetes.Interface, string, error)
- func (f *FakeFactory) CreateKubeConfig() (*rest.Config, error)
- func (f *FakeFactory) CreateTektonClient() (tektonclient.Interface, string, error)
- func (f *FakeFactory) CreateTektonPipelineResourceClient() (versioned2.Interface, string, error)
- func (f *FakeFactory) ImpersonateUser(user string) jxfactory.Factory
- func (f *FakeFactory) KubeConfig() kube.Kuber
- func (f *FakeFactory) LoadConfig() (*api.Config, *clientcmd.PathOptions, error)
- func (f *FakeFactory) UpdateConfig(namespace string, server string, caData string, user string, token string) error
- func (f *FakeFactory) WithBearerToken(token string) jxfactory.Factory
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewFakeFactory ¶
NewFakeFactory returns a fake factory for testing
Types ¶
type FakeFactory ¶
type FakeFactory struct { KubeClient kubernetes.Interface JXClient versioned.Interface TektonClient tektonclient.Interface Namespace string }
FakeFactory represents a fake factory
func (*FakeFactory) CreateJXClient ¶
func (f *FakeFactory) CreateJXClient() (versioned.Interface, string, error)
func (*FakeFactory) CreateKubeClient ¶
func (f *FakeFactory) CreateKubeClient() (kubernetes.Interface, string, error)
func (*FakeFactory) CreateKubeConfig ¶
func (f *FakeFactory) CreateKubeConfig() (*rest.Config, error)
func (*FakeFactory) CreateTektonClient ¶
func (f *FakeFactory) CreateTektonClient() (tektonclient.Interface, string, error)
func (*FakeFactory) CreateTektonPipelineResourceClient ¶ added in v0.0.20
func (f *FakeFactory) CreateTektonPipelineResourceClient() (versioned2.Interface, string, error)
func (*FakeFactory) ImpersonateUser ¶
func (f *FakeFactory) ImpersonateUser(user string) jxfactory.Factory
func (*FakeFactory) KubeConfig ¶
func (f *FakeFactory) KubeConfig() kube.Kuber
func (*FakeFactory) LoadConfig ¶
func (f *FakeFactory) LoadConfig() (*api.Config, *clientcmd.PathOptions, error)
func (*FakeFactory) UpdateConfig ¶
func (*FakeFactory) WithBearerToken ¶
func (f *FakeFactory) WithBearerToken(token string) jxfactory.Factory
Click to show internal directories.
Click to hide internal directories.