client

package
v0.0.0-...-18fdf9b Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2024 License: Apache-2.0 Imports: 11 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RedirectClient

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

RedirectClient is a Kubernetes client for easy CRUD operations

func NewRedirectClient

func NewRedirectClient(client client.Client, tracer trace.Tracer) *RedirectClient

NewRedirectClient creates a new Redirect Client

func (*RedirectClient) Get

func (*RedirectClient) GetNameNamespace

func (c *RedirectClient) GetNameNamespace(ct context.Context, name, namespace string) (*v1alpha1.Redirect, error)

GetNameNamespace returns a Redirect for a given name in a given namespace

func (*RedirectClient) GetNamespaced

func (c *RedirectClient) GetNamespaced(ct context.Context, nameNamespaced types.NamespacedName) (*v1alpha1.Redirect, error)

Get returns a Redirect

func (*RedirectClient) List

List returns a list of all Redirect in the current namespace

func (*RedirectClient) ListAll

List returns a list of all Redirect

func (*RedirectClient) ListNamespaced

func (c *RedirectClient) ListNamespaced(ct context.Context, namespace string) (*v1alpha1.RedirectList, error)

List returns a list of Redirects in a Namespace

func (*RedirectClient) Query

List returns a list of all Redirect that match the label Redirect with the parameter label ToDo: Rewrite and come up with a better way. This only works client-side and is absolutely ugly and inefficient

func (*RedirectClient) Save

func (c *RedirectClient) Save(ct context.Context, Redirect *v1alpha1.Redirect) error

func (*RedirectClient) SaveStatus

func (c *RedirectClient) SaveStatus(ct context.Context, Redirect *v1alpha1.Redirect) error

type ShortlinkClient

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

ShortlinkClient is a Kubernetes client for easy CRUD operations

func NewShortlinkClient

func NewShortlinkClient(client client.Client, tracer trace.Tracer) *ShortlinkClient

NewShortlinkClient creates a new shortlink Client

func (*ShortlinkClient) Create

func (c *ShortlinkClient) Create(ct context.Context, shortlink *v1alpha1.ShortLink) error

func (*ShortlinkClient) Delete

func (c *ShortlinkClient) Delete(ct context.Context, shortlink *v1alpha1.ShortLink) error

func (*ShortlinkClient) Get

Get returns a ShortLink in the current namespace

func (*ShortlinkClient) GetNameNamespace

func (c *ShortlinkClient) GetNameNamespace(ct context.Context, name, namespace string) (*v1alpha1.ShortLink, error)

GetNameNamespace returns a Shortlink for a given name in a given namespace

func (*ShortlinkClient) GetNamespaced

func (c *ShortlinkClient) GetNamespaced(ct context.Context, nameNamespaced types.NamespacedName) (*v1alpha1.ShortLink, error)

Get returns a Shortlink

func (*ShortlinkClient) IncrementInvocationCount

func (c *ShortlinkClient) IncrementInvocationCount(ct context.Context, shortlink *v1alpha1.ShortLink) error

func (*ShortlinkClient) List

List returns a list of all Shortlinks in the current namespace

func (*ShortlinkClient) ListNamespaced

func (c *ShortlinkClient) ListNamespaced(ct context.Context, namespace string) (*v1alpha1.ShortLinkList, error)

ListNamespaced returns a list of all Shortlinks in a namespace

func (*ShortlinkClient) Update

func (c *ShortlinkClient) Update(ct context.Context, shortlink *v1alpha1.ShortLink) error

func (*ShortlinkClient) UpdateStatus

func (c *ShortlinkClient) UpdateStatus(ct context.Context, shortlink *v1alpha1.ShortLink) error

type ShortlinkClientAuth

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

func NewAuthenticatedShortlinkClient

func NewAuthenticatedShortlinkClient(tracer trace.Tracer, client *ShortlinkClient) *ShortlinkClientAuth

func (*ShortlinkClientAuth) Create

func (c *ShortlinkClientAuth) Create(ct context.Context, username string, shortLink *v1alpha1.ShortLink) error

func (*ShortlinkClientAuth) Delete

func (c *ShortlinkClientAuth) Delete(ct context.Context, username string, shortLink *v1alpha1.ShortLink) error

func (*ShortlinkClientAuth) Get

func (c *ShortlinkClientAuth) Get(ct context.Context, username string, name string) (*v1alpha1.ShortLink, error)

func (*ShortlinkClientAuth) List

func (*ShortlinkClientAuth) Update

func (c *ShortlinkClientAuth) Update(ct context.Context, username string, shortLink *v1alpha1.ShortLink) error

Jump to

Keyboard shortcuts

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