client

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: May 22, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateAddress added in v0.0.19

func GenerateAddress(ctx context.Context, cli client.Client, k8sgptConfig *v1alpha1.K8sGPT) (string, error)

Types

type Client

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

This is the client for communicating with the K8sGPT in cluster deployment

func NewClient

func NewClient(address string) (*Client, error)

func (*Client) AddConfig added in v0.0.21

func (c *Client) AddConfig(config *v1alpha1.K8sGPT) error

func (*Client) AddIntegration added in v0.0.22

func (c *Client) AddIntegration(config *v1alpha1.K8sGPT) error

func (*Client) Close added in v0.0.19

func (c *Client) Close() error

func (*Client) ProcessAnalysis

func (c *Client) ProcessAnalysis(deployment v1.Deployment, config *v1alpha1.K8sGPT, allowAIRequest bool) (*common.K8sGPTReponse, error)

func (*Client) RemoveConfig added in v0.0.21

func (c *Client) RemoveConfig(config *v1alpha1.K8sGPT) error

Jump to

Keyboard shortcuts

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