Documentation ¶
Index ¶
- type ApplicationClient
- func (a *ApplicationClient) Create(req *agentpb.ApplicationInstallRequest) (*agentpb.JobResponse, error)
- func (a *ApplicationClient) Delete(req *agentpb.ApplicationDeleteRequest) (*agentpb.JobResponse, error)
- func (a *ApplicationClient) Update(req *agentpb.ApplicationInstallRequest) (*agentpb.JobResponse, error)
- type CaptenAgentConfiguration
- type CaptenClient
- type Client
- func (c *Client) NewApplicationClient(opts *TransportSSLOptions) (*ApplicationClient, error)
- func (c *Client) NewClimonClient(opts *TransportSSLOptions) (*ClimonClient, error)
- func (c *Client) NewClusterClient() (*ClusterClient, error)
- func (c *Client) NewProjectClient() (*ProjectClient, error)
- func (c *Client) NewRepoClient() (*RepoClient, error)
- type ClimonClient
- type ClimonRequestData
- type ClimonRequestPayload
- type ClusterClient
- type ClusterRequest
- type DeploymentRequestData
- type DeploymentRequestPayload
- type ProjectClient
- type ProjectRequest
- type RepoClient
- type RepositoryRequest
- type TransportSSLOptions
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 (a *ApplicationClient) Create(req *agentpb.ApplicationInstallRequest) (*agentpb.JobResponse, error)
func (*ApplicationClient) Delete ¶
func (a *ApplicationClient) Delete(req *agentpb.ApplicationDeleteRequest) (*agentpb.JobResponse, error)
Delete... TODO: For delete all parameters not required. It has to be enhanced with separate delete payload request
func (*ApplicationClient) Update ¶
func (a *ApplicationClient) Update(req *agentpb.ApplicationInstallRequest) (*agentpb.JobResponse, error)
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 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 (a *ClimonClient) Create(req *agentpb.ClimonInstallRequest) (*agentpb.JobResponse, error)
func (*ClimonClient) Delete ¶
func (a *ClimonClient) Delete(req *agentpb.ClimonDeleteRequest) (*agentpb.JobResponse, error)
Delete... TODO: For delete all parameters not required. It has to be enhanced with separate delete payload request
func (*ClimonClient) Update ¶
func (a *ClimonClient) Update(req *agentpb.ClimonInstallRequest) (*agentpb.JobResponse, error)
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
}
Source Files ¶
Click to show internal directories.
Click to hide internal directories.