Documentation ¶
Index ¶
- func FromKube(ci *knativev1alpha1.Ingress) *v1alpha1.ClusterIngress
- func NewClusterIngreessCache(ctx context.Context, knativeClient knativeclient.Interface) (*knativeCache, error)
- func ToKube(resource resources.Resource) (*knativev1alpha1.Ingress, error)
- type Cache
- type ResourceClient
- func (rc *ResourceClient) Delete(namespace, name string, opts clients.DeleteOpts) error
- func (rc *ResourceClient) Kind() string
- func (rc *ResourceClient) List(_ string, opts clients.ListOpts) (resources.ResourceList, error)
- func (rc *ResourceClient) NewResource() resources.Resource
- func (rc *ResourceClient) Read(namespace, name string, opts clients.ReadOpts) (resources.Resource, error)
- func (rc *ResourceClient) Register() error
- func (rc *ResourceClient) Watch(_ string, opts clients.WatchOpts) (<-chan resources.ResourceList, <-chan error, error)
- func (rc *ResourceClient) Write(resource resources.Resource, opts clients.WriteOpts) (resources.Resource, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FromKube ¶
func FromKube(ci *knativev1alpha1.Ingress) *v1alpha1.ClusterIngress
func NewClusterIngreessCache ¶
func NewClusterIngreessCache(ctx context.Context, knativeClient knativeclient.Interface) (*knativeCache, error)
This context should live as long as the cache is desired. i.e. if the cache is shared across clients, it should get a context that has a longer lifetime than the clients themselves
Types ¶
type Cache ¶
type Cache interface { ClusterIngressLister() knativelisters.IngressLister Subscribe() <-chan struct{} Unsubscribe(<-chan struct{}) }
type ResourceClient ¶
type ResourceClient struct {
// contains filtered or unexported fields
}
func NewResourceClient ¶
func NewResourceClient(knativeClient knativeclient.Interface, cache Cache) *ResourceClient
func (*ResourceClient) Delete ¶
func (rc *ResourceClient) Delete(namespace, name string, opts clients.DeleteOpts) error
func (*ResourceClient) Kind ¶
func (rc *ResourceClient) Kind() string
func (*ResourceClient) List ¶
func (rc *ResourceClient) List(_ string, opts clients.ListOpts) (resources.ResourceList, error)
func (*ResourceClient) NewResource ¶
func (rc *ResourceClient) NewResource() resources.Resource
func (*ResourceClient) Register ¶
func (rc *ResourceClient) Register() error
func (*ResourceClient) Watch ¶
func (rc *ResourceClient) Watch(_ string, opts clients.WatchOpts) (<-chan resources.ResourceList, <-chan error, error)
Click to show internal directories.
Click to hide internal directories.