Documentation
¶
Index ¶
- type ApplicationInfo
- type BuildConfig
- type BuildResult
- type CommitCallback
- type CommitEvent
- type DeploymentAutomation
- func (da *DeploymentAutomation) DeleteApplication(ctx context.Context, namespace, name string) error
- func (da *DeploymentAutomation) DeployApplication(ctx context.Context, config DeploymentConfig) (*DeploymentResult, error)
- func (da *DeploymentAutomation) ListApplications(ctx context.Context, namespace string) ([]ApplicationInfo, error)
- type DeploymentConfig
- type DeploymentResult
- type DeploymentTemplate
- type GitWatcher
- func (gw *GitWatcher) AddCommitCallback(callback CommitCallback)
- func (gw *GitWatcher) AddRepository(url, branch string, credentials *http.BasicAuth) error
- func (gw *GitWatcher) AddWebhook(repoURL string, config *WebhookConfig)
- func (gw *GitWatcher) GetRepositories() map[string]*Repository
- func (gw *GitWatcher) HandleWebhook(repoURL string, payload []byte) error
- func (gw *GitWatcher) RemoveRepository(url, branch string)
- func (gw *GitWatcher) StartPolling(ctx context.Context)
- type ImageBuilder
- type ImageInfo
- type PushConfig
- type PushResult
- type RegistryConfig
- type RegistryPusher
- func (rp *RegistryPusher) AddRegistry(name string, config *RegistryConfig)
- func (rp *RegistryPusher) DeleteImage(ctx context.Context, registryName, repository, tag string) error
- func (rp *RegistryPusher) GetImageInfo(ctx context.Context, registryName, repository, tag string) (*ImageInfo, error)
- func (rp *RegistryPusher) GetRegistries() map[string]*RegistryConfig
- func (rp *RegistryPusher) ListRepositories(ctx context.Context, registryName string) ([]string, error)
- func (rp *RegistryPusher) ListTags(ctx context.Context, registryName, repository string) ([]string, error)
- func (rp *RegistryPusher) PushImage(ctx context.Context, config PushConfig) (*PushResult, error)
- func (rp *RegistryPusher) RemoveRegistry(name string)
- func (rp *RegistryPusher) ValidateRegistryAccess(ctx context.Context, registryName string) error
- type Repository
- type ResourceRequirements
- type WebhookConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ApplicationInfo ¶
type ApplicationInfo struct {
Name string `json:"name"`
Namespace string `json:"namespace"`
Image string `json:"image"`
Replicas string `json:"replicas"`
Status string `json:"status"`
ServiceName string `json:"service_name,omitempty"`
Port int32 `json:"port,omitempty"`
IngressURL string `json:"ingress_url,omitempty"`
CreatedAt time.Time `json:"created_at"`
Labels map[string]string `json:"labels"`
}
type BuildConfig ¶
type BuildResult ¶
type CommitCallback ¶
type CommitCallback func(event CommitEvent) error
type CommitEvent ¶
type DeploymentAutomation ¶
type DeploymentAutomation struct {
// contains filtered or unexported fields
}
func NewDeploymentAutomation ¶
func NewDeploymentAutomation(kubeConfig *rest.Config) (*DeploymentAutomation, error)
func (*DeploymentAutomation) DeleteApplication ¶
func (da *DeploymentAutomation) DeleteApplication(ctx context.Context, namespace, name string) error
func (*DeploymentAutomation) DeployApplication ¶
func (da *DeploymentAutomation) DeployApplication(ctx context.Context, config DeploymentConfig) (*DeploymentResult, error)
func (*DeploymentAutomation) ListApplications ¶
func (da *DeploymentAutomation) ListApplications(ctx context.Context, namespace string) ([]ApplicationInfo, error)
type DeploymentConfig ¶
type DeploymentConfig struct {
Name string
Namespace string
Image string
Tag string
Replicas int32
Port int32
ServiceType string
Labels map[string]string
Annotations map[string]string
EnvVars map[string]string
Resources *ResourceRequirements
Strategy string // "recreate", "rolling", "blue-green"
ExposeIngress bool
IngressDomain string
}
type DeploymentResult ¶
type DeploymentTemplate ¶
type GitWatcher ¶
type GitWatcher struct {
// contains filtered or unexported fields
}
func NewGitWatcher ¶
func NewGitWatcher(pollInterval time.Duration) *GitWatcher
func (*GitWatcher) AddCommitCallback ¶
func (gw *GitWatcher) AddCommitCallback(callback CommitCallback)
func (*GitWatcher) AddRepository ¶
func (gw *GitWatcher) AddRepository(url, branch string, credentials *http.BasicAuth) error
func (*GitWatcher) AddWebhook ¶
func (gw *GitWatcher) AddWebhook(repoURL string, config *WebhookConfig)
func (*GitWatcher) GetRepositories ¶
func (gw *GitWatcher) GetRepositories() map[string]*Repository
func (*GitWatcher) HandleWebhook ¶
func (gw *GitWatcher) HandleWebhook(repoURL string, payload []byte) error
func (*GitWatcher) RemoveRepository ¶
func (gw *GitWatcher) RemoveRepository(url, branch string)
func (*GitWatcher) StartPolling ¶
func (gw *GitWatcher) StartPolling(ctx context.Context)
type ImageBuilder ¶
type ImageBuilder struct {
// contains filtered or unexported fields
}
func NewImageBuilder ¶
func NewImageBuilder(kubeConfig *rest.Config, defaultNamespace string) (*ImageBuilder, error)
func (*ImageBuilder) BuildImage ¶
func (ib *ImageBuilder) BuildImage(ctx context.Context, config BuildConfig) (*BuildResult, error)
func (*ImageBuilder) DeleteImage ¶
func (*ImageBuilder) ListImages ¶
type PushConfig ¶
type PushResult ¶
type RegistryConfig ¶
type RegistryPusher ¶
type RegistryPusher struct {
// contains filtered or unexported fields
}
func NewRegistryPusher ¶
func NewRegistryPusher(kubeConfig *rest.Config) (*RegistryPusher, error)
func (*RegistryPusher) AddRegistry ¶
func (rp *RegistryPusher) AddRegistry(name string, config *RegistryConfig)
func (*RegistryPusher) DeleteImage ¶
func (rp *RegistryPusher) DeleteImage(ctx context.Context, registryName, repository, tag string) error
func (*RegistryPusher) GetImageInfo ¶
func (*RegistryPusher) GetRegistries ¶
func (rp *RegistryPusher) GetRegistries() map[string]*RegistryConfig
func (*RegistryPusher) ListRepositories ¶
func (*RegistryPusher) PushImage ¶
func (rp *RegistryPusher) PushImage(ctx context.Context, config PushConfig) (*PushResult, error)
func (*RegistryPusher) RemoveRegistry ¶
func (rp *RegistryPusher) RemoveRegistry(name string)
func (*RegistryPusher) ValidateRegistryAccess ¶
func (rp *RegistryPusher) ValidateRegistryAccess(ctx context.Context, registryName string) error
type Repository ¶
type ResourceRequirements ¶
type WebhookConfig ¶
Click to show internal directories.
Click to hide internal directories.