Documentation ¶
Index ¶
- Constants
- Variables
- type DockerContainer
- type DockerImage
- type DockerService
- type HelmManager
- type InstallRequest
- type InstallResponse
- type ListRequest
- type ListResponse
- type ResourceManager
- type ResourceManagerConfig
- type UnInstallRequest
- type UnInstallResponse
- type UpgradeRequest
- type UpgradeResponse
Constants ¶
View Source
const ( LocalDockerStrategy = "docker" HelmChartStrategy = "helm" )
Variables ¶
View Source
var ( Strategies = []string{LocalDockerStrategy, HelmChartStrategy} DefaultStrategy = LocalDockerStrategy HelmProviders = getter.All(cli.New()) )
Functions ¶
This section is empty.
Types ¶
type DockerContainer ¶
type DockerContainer struct { // podstawowo obraz Name string }
type DockerImage ¶
type DockerImage struct { // podstawowo obraz Name string }
type DockerService ¶
type DockerService struct{}
func NewDockerService ¶
func NewDockerService() (*DockerService, error)
add optional argument with chart version
func (*DockerService) Install ¶
func (d *DockerService) Install(*InstallRequest) error
func (*DockerService) Suspend ¶
func (d *DockerService) Suspend() error
func (*DockerService) UnInstall ¶
func (d *DockerService) UnInstall(*UnInstallRequest) error
type HelmManager ¶
type HelmManager struct {
// contains filtered or unexported fields
}
func NewHelmManager ¶
func NewHelmManager(cfg *ResourceManagerConfig) (*HelmManager, error)
add optional argument with chart version
func (*HelmManager) Install ¶
func (c *HelmManager) Install(request *InstallRequest) (err error)
func (*HelmManager) List ¶
func (c *HelmManager) List(*ListRequest) (err error)
func (*HelmManager) UnInstall ¶
func (c *HelmManager) UnInstall(request *UnInstallRequest) (err error)
func (*HelmManager) Upgrade ¶
func (c *HelmManager) Upgrade(request *UpgradeRequest) (err error)
type InstallRequest ¶
type InstallRequest struct { ResourceManagerConfig Name string HelmValues []string WorkloadConfigString string }
type InstallResponse ¶
type InstallResponse struct{}
type ListRequest ¶
type ListRequest struct {
ResourceManagerConfig
}
type ListResponse ¶
type ListResponse struct{}
type ResourceManager ¶
type ResourceManager interface { Install(*InstallRequest) error Upgrade(*UpgradeRequest) error UnInstall(*UnInstallRequest) error List(*ListRequest) error }
func GetResourceManager ¶
func GetResourceManager(cfg *ResourceManagerConfig) (ResourceManager, error)
type ResourceManagerConfig ¶
type UnInstallRequest ¶
type UnInstallRequest struct { ResourceManagerConfig Name string }
type UnInstallResponse ¶
type UnInstallResponse struct{}
type UpgradeRequest ¶
type UpgradeRequest struct { ResourceManagerConfig Name string HelmValues []string WorkloadConfigString string }
type UpgradeResponse ¶
type UpgradeResponse struct{}
Click to show internal directories.
Click to hide internal directories.