Documentation ¶
Index ¶
- type RedirectClient
- func (c *RedirectClient) Get(ct context.Context, name string) (*v1alpha1.Redirect, error)
- func (c *RedirectClient) GetNameNamespace(ct context.Context, name, namespace string) (*v1alpha1.Redirect, error)
- func (c *RedirectClient) GetNamespaced(ct context.Context, nameNamespaced types.NamespacedName) (*v1alpha1.Redirect, error)
- func (c *RedirectClient) List(ct context.Context) (*v1alpha1.RedirectList, error)
- func (c *RedirectClient) ListAll(ct context.Context) (*v1alpha1.RedirectList, error)
- func (c *RedirectClient) ListNamespaced(ct context.Context, namespace string) (*v1alpha1.RedirectList, error)
- func (c *RedirectClient) Query(ct context.Context, label string) (*v1alpha1.RedirectList, error)
- func (c *RedirectClient) Save(ct context.Context, Redirect *v1alpha1.Redirect) error
- func (c *RedirectClient) SaveStatus(ct context.Context, Redirect *v1alpha1.Redirect) error
- type ShortlinkClient
- func (c *ShortlinkClient) Create(ct context.Context, shortlink *v1alpha1.ShortLink) error
- func (c *ShortlinkClient) Delete(ct context.Context, shortlink *v1alpha1.ShortLink) error
- func (c *ShortlinkClient) Get(ct context.Context, name string) (*v1alpha1.ShortLink, error)
- func (c *ShortlinkClient) GetNameNamespace(ct context.Context, name, namespace string) (*v1alpha1.ShortLink, error)
- func (c *ShortlinkClient) GetNamespaced(ct context.Context, nameNamespaced types.NamespacedName) (*v1alpha1.ShortLink, error)
- func (c *ShortlinkClient) IncrementInvocationCount(ct context.Context, shortlink *v1alpha1.ShortLink) error
- func (c *ShortlinkClient) List(ct context.Context) (*v1alpha1.ShortLinkList, error)
- func (c *ShortlinkClient) ListNamespaced(ct context.Context, namespace string) (*v1alpha1.ShortLinkList, error)
- func (c *ShortlinkClient) Update(ct context.Context, shortlink *v1alpha1.ShortLink) error
- func (c *ShortlinkClient) UpdateStatus(ct context.Context, shortlink *v1alpha1.ShortLink) error
- type ShortlinkClientAuth
- func (c *ShortlinkClientAuth) Create(ct context.Context, username string, shortLink *v1alpha1.ShortLink) error
- func (c *ShortlinkClientAuth) Delete(ct context.Context, username string, shortLink *v1alpha1.ShortLink) error
- func (c *ShortlinkClientAuth) Get(ct context.Context, username string, name string) (*v1alpha1.ShortLink, error)
- func (c *ShortlinkClientAuth) List(ct context.Context, username string) (*v1alpha1.ShortLinkList, error)
- func (c *ShortlinkClientAuth) Update(ct context.Context, username string, shortLink *v1alpha1.ShortLink) error
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) 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 ¶
func (c *RedirectClient) List(ct context.Context) (*v1alpha1.RedirectList, error)
List returns a list of all Redirect in the current namespace
func (*RedirectClient) ListAll ¶
func (c *RedirectClient) ListAll(ct context.Context) (*v1alpha1.RedirectList, error)
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 ¶
func (c *RedirectClient) Query(ct context.Context, label string) (*v1alpha1.RedirectList, error)
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) SaveStatus ¶
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) 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 (*ShortlinkClient) List ¶
func (c *ShortlinkClient) List(ct context.Context) (*v1alpha1.ShortLinkList, error)
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) UpdateStatus ¶
type ShortlinkClientAuth ¶
type ShortlinkClientAuth struct {
// contains filtered or unexported fields
}
func NewAuthenticatedShortlinkClient ¶
func NewAuthenticatedShortlinkClient(tracer trace.Tracer, client *ShortlinkClient) *ShortlinkClientAuth
func (*ShortlinkClientAuth) List ¶
func (c *ShortlinkClientAuth) List(ct context.Context, username string) (*v1alpha1.ShortLinkList, error)