incluster

package
v0.0.28 Latest Latest
Warning

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

Go to latest
Published: Jan 1, 2024 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Adapter

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

func NewInClusterAdapter

func NewInClusterAdapter(cfg config.InCluster, k8sclient dynamic.Interface) *Adapter

func (*Adapter) Callbacks added in v0.0.5

func (a *Adapter) Callbacks(_ context.Context) (domain.Callbacks, error)

func (*Adapter) DeleteObject

func (a *Adapter) DeleteObject(ctx context.Context, id domain.KindName) error

func (*Adapter) GetClient added in v0.0.23

func (a *Adapter) GetClient(id domain.KindName) (adapters.Client, error)

func (*Adapter) GetObject

func (a *Adapter) GetObject(ctx context.Context, id domain.KindName, baseObject []byte) error

func (*Adapter) PatchObject

func (a *Adapter) PatchObject(ctx context.Context, id domain.KindName, checksum string, patch []byte) error

func (*Adapter) PutObject

func (a *Adapter) PutObject(ctx context.Context, id domain.KindName, object []byte) error

func (*Adapter) RegisterCallbacks

func (a *Adapter) RegisterCallbacks(_ context.Context, callbacks domain.Callbacks)

func (*Adapter) Start

func (a *Adapter) Start(ctx context.Context) error

func (*Adapter) VerifyObject

func (a *Adapter) VerifyObject(ctx context.Context, id domain.KindName, checksum string) error

type Client

type Client struct {
	ShadowObjects map[string][]byte
	Strategy      domain.Strategy
	// contains filtered or unexported fields
}

func NewClient

func NewClient(client dynamic.Interface, account, cluster string, r config.Resource) *Client

func (*Client) Callbacks added in v0.0.5

func (c *Client) Callbacks(_ context.Context) (domain.Callbacks, error)

func (*Client) DeleteObject

func (c *Client) DeleteObject(_ context.Context, id domain.KindName) error

func (*Client) GetObject

func (c *Client) GetObject(ctx context.Context, id domain.KindName, baseObject []byte) error

func (*Client) PatchObject

func (c *Client) PatchObject(ctx context.Context, id domain.KindName, checksum string, patch []byte) error

func (*Client) PutObject

func (c *Client) PutObject(_ context.Context, id domain.KindName, object []byte) error

func (*Client) RegisterCallbacks

func (c *Client) RegisterCallbacks(_ context.Context, callbacks domain.Callbacks)

func (*Client) Start

func (c *Client) Start(ctx context.Context) error

func (*Client) VerifyObject

func (c *Client) VerifyObject(ctx context.Context, id domain.KindName, newChecksum string) error

Jump to

Keyboard shortcuts

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