captensdk

package
v0.0.0-...-73f03d9 Latest Latest
Warning

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

Go to latest
Published: May 20, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

README

Overview

"capten-sdk" is SDK designed to use by end customer to communicate with integrator.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ApplicationClient

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

func (*ApplicationClient) Create

func (*ApplicationClient) Delete

Delete... TODO: For delete all parameters not required. It has to be enhanced with separate delete payload request

func (*ApplicationClient) Update

type CaptenAgentConfiguration

type CaptenAgentConfiguration struct {
	AgentAddress string `envconfig:"AGENT_ADDRESS" default:"localhost"`
	AgentPort    int    `envconfig:"AGENT_PORT" default:"9091"`
}

type CaptenClient

type CaptenClient interface {
	NewApplicationClient() (*ApplicationClient, error)
	NewClimonClient(opts *TransportSSLOptions) (*ClimonClient, error)
	NewClusterClient() (*ClusterClient, error)
	NewRepoClient() (*RepoClient, error)
	NewProjectClient() (*ProjectClient, error)
}

type Client

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

func NewClient

func NewClient(log logging.Logger) (*Client, error)

func NewClientWithConfiguratin

func NewClientWithConfiguratin(cfg *CaptenAgentConfiguration, log logging.Logger) (*Client, error)

func (*Client) NewApplicationClient

func (c *Client) NewApplicationClient(opts *TransportSSLOptions) (*ApplicationClient, error)

func (*Client) NewClimonClient

func (c *Client) NewClimonClient(opts *TransportSSLOptions) (*ClimonClient, error)

func (*Client) NewClusterClient

func (c *Client) NewClusterClient() (*ClusterClient, error)

func (*Client) NewProjectClient

func (c *Client) NewProjectClient() (*ProjectClient, error)

func (*Client) NewRepoClient

func (c *Client) NewRepoClient() (*RepoClient, error)

type ClimonClient

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

func (*ClimonClient) Create

func (*ClimonClient) Delete

Delete... TODO: For delete all parameters not required. It has to be enhanced with separate delete payload request

func (*ClimonClient) Update

type ClimonRequestData

type ClimonRequestData struct {
	RepoName    string `json:"repo_name" required:"true"`
	RepoURL     string `json:"repo_url" required:"true"`
	ChartName   string `json:"chart_name" required:"true"`
	Namespace   string `json:"namespace" required:"true"`
	ReleaseName string `json:"release_name" required:"true"`
	Timeout     int    `json:"timeout" default:"5"`
}

type ClimonRequestPayload

type ClimonRequestPayload struct {
	PluginName string            `json:"plugin_name" required:"true"`
	Action     string            `json:"action" required:"true"`
	Data       ClimonRequestData `json:"data" required:"true"`
}

type ClusterClient

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

func (*ClusterClient) Create

func (cc *ClusterClient) Create(req *ClusterRequest) error

func (*ClusterClient) Delete

func (cc *ClusterClient) Delete(req *ClusterRequest) error

func (*ClusterClient) Update

func (cc *ClusterClient) Update(req *ClusterRequest) error

type ClusterRequest

type ClusterRequest struct {
}

type DeploymentRequestData

type DeploymentRequestData struct {
	RepoName    string `json:"repo_name" required:"true"`
	RepoURL     string `json:"repo_url" required:"true"`
	ChartName   string `json:"chart_name" required:"true"`
	Namespace   string `json:"namespace" required:"true"`
	ReleaseName string `json:"release_name" required:"true"`
	Timeout     int    `json:"timeout" default:"5"`
}

type DeploymentRequestPayload

type DeploymentRequestPayload struct {
	PluginName string                `json:"plugin_name" required:"true"`
	Action     string                `json:"action" required:"true"`
	Data       DeploymentRequestData `json:"data" required:"true"`
}

type ProjectClient

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

func (*ProjectClient) Create

func (r *ProjectClient) Create(req *ProjectRequest) error

func (*ProjectClient) Delete

func (r *ProjectClient) Delete(req *ProjectRequest) error

func (*ProjectClient) Update

func (r *ProjectClient) Update(req *ProjectRequest) error

type ProjectRequest

type ProjectRequest struct {
}

type RepoClient

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

func (*RepoClient) Create

func (r *RepoClient) Create(req *RepositoryRequest) error

func (*RepoClient) Delete

func (r *RepoClient) Delete(req *RepositoryRequest) error

func (*RepoClient) Update

func (r *RepoClient) Update(req *RepositoryRequest) error

type RepositoryRequest

type RepositoryRequest struct {
}

type TransportSSLOptions

type TransportSSLOptions struct {
	IsSSLEnabled bool
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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