client

package
v0.0.0-...-2998d80 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2024 License: MIT Imports: 16 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 New

func New(baseUrl string, clientCert tls.Certificate, serverCert []byte) *Client

func (*Client) GetContainers

func (c *Client) GetContainers(projectName string) ([]*dockertypes.Container, error)

func (*Client) GetProject

func (c *Client) GetProject(name string) (*projectv1.Project, error)

func (*Client) GetProjects

func (c *Client) GetProjects() ([]*projectv1.Project, error)

func (*Client) GetRepositories

func (c *Client) GetRepositories() ([]*repositoryv1.Repository, error)

func (*Client) GetRepository

func (c *Client) GetRepository(name string) (*repositoryv1.Repository, error)

func (*Client) Reconcile

func (c *Client) Reconcile() error

func (*Client) StreamContainerLogs

func (c *Client) StreamContainerLogs(containerId string) error

type Config

type Config struct {
	RecoonHost string `json:"recoonHost"`
	ServerCert string `json:"serverCert"`
	ClientCert string `json:"clientCert"`
	ClientKey  string `json:"clientKey"`
}

func GenerateConfig

func GenerateConfig(apiBase string, serverCert []byte, clientCert tls.Certificate) (*Config, error)

func LoadConfig

func LoadConfig(configPath string) (*Config, error)

func (*Config) GetClientCert

func (c *Config) GetClientCert() tls.Certificate

func (*Config) GetServerCert

func (c *Config) GetServerCert() []byte

Jump to

Keyboard shortcuts

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