client

package
v0.0.0-...-dc0d138 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 7, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NginxClient

type NginxClient struct {
	// contains filtered or unexported fields
}

NginxClient implements NginxGetter

func NewForConfig

func NewForConfig(c *rest.Config) (*NginxClient, error)

NewForConfig return NginxClient

func (*NginxClient) Nginxes

func (c *NginxClient) Nginxes(namespace string) NginxInterface

type NginxGetter

type NginxGetter interface {
	Nginxes(namespace string) NginxInterface
}

NginxGetter has a method to return a NginxInterface. A group's client should implement this interface.

type NginxInterface

type NginxInterface interface {
	Create(ctx context.Context, nginx *devopsV1.Nginx, opts metaV1.CreateOptions) (*devopsV1.Nginx, error)
	Update(ctx context.Context, nginx *devopsV1.Nginx, opts metaV1.UpdateOptions) (*devopsV1.Nginx, error)
	UpdateStatus(ctx context.Context, nginx *devopsV1.Nginx, opts metaV1.UpdateOptions) (*devopsV1.Nginx, error)
	Delete(ctx context.Context, name string, opts metaV1.DeleteOptions) error
	DeleteCollection(ctx context.Context, opts metaV1.DeleteOptions, listOpts metaV1.ListOptions) error
	Get(ctx context.Context, name string, opts metaV1.GetOptions) (*devopsV1.Nginx, error)
	List(ctx context.Context, opts metaV1.ListOptions) (*devopsV1.NginxList, error)
	Watch(ctx context.Context, opts metaV1.ListOptions) (watch.Interface, error)
	Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metaV1.PatchOptions, subResources ...string) (result *devopsV1.Nginx, err error)
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL