daemon

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2022 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

func NewClient

func NewClient() (*Client, error)

func (*Client) Kubeconfig

func (c *Client) Kubeconfig() (*Kubeconfig, error)

func (*Client) Readyz

func (c *Client) Readyz() error

func (*Client) StopDaemon

func (c *Client) StopDaemon() (string, error)

func (*Client) WebhookConfig

func (c *Client) WebhookConfig() (*WebhookConfig, error)

type Daemon

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

func NewDaemon

func NewDaemon(sock *Socket, testEnv *envtest.Environment) *Daemon

func (*Daemon) Run

func (d *Daemon) Run(ctx context.Context, cancel context.CancelFunc) error

type Kubeconfig

type Kubeconfig struct {
	Server     string `json:"server"`
	ClientCert string `json:"client-certificate-data"`
	ClientKey  string `json:"client-key-data"`
}

type Message

type Message struct {
	Message string `json:"message"`
}

type Socket

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

func NewSocket

func NewSocket() (*Socket, error)

func (*Socket) Close

func (s *Socket) Close() error

func (*Socket) Path

func (s *Socket) Path() string

type WebhookConfig

type WebhookConfig struct {
	LocalServingHost    string `json:"local-serving-host"`
	LocalServingPort    int    `json:"local-serving-port"`
	LocalServingCertDir string `json:"local-serving-cert-dir"`
}

Jump to

Keyboard shortcuts

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