Documentation
¶
Index ¶
- func APIPresent(config *rest.Config) error
- func IsColliding(services corev1.ServiceInterface, stack *apiv1beta1.Stack, ...) error
- func LoadStack(name string, cfg composetypes.Config) (*apiv1beta1.Stack, error)
- func RunDeploy(dockerCli *KubeCli, opts options.Deploy) error
- func RunList(dockerCli *KubeCli, opts options.List) error
- func RunPS(dockerCli *KubeCli, options options.PS) error
- func RunRemove(dockerCli *KubeCli, opts options.Remove) error
- func RunServices(dockerCli *KubeCli, opts options.Services) error
- type DeployWatcher
- type Factory
- func (s *Factory) ConfigMaps() corev1.ConfigMapInterface
- func (s *Factory) Nodes() corev1.NodeInterface
- func (s *Factory) Pods() corev1.PodInterface
- func (s *Factory) ReplicaSets() typesappsv1beta2.ReplicaSetInterface
- func (s *Factory) ReplicationControllers() corev1.ReplicationControllerInterface
- func (s *Factory) Secrets() corev1.SecretInterface
- func (s *Factory) Services() corev1.ServiceInterface
- type KubeCli
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func APIPresent ¶
APIPresent checks that an API is installed.
func IsColliding ¶
func IsColliding(services corev1.ServiceInterface, stack *apiv1beta1.Stack, cfg *composetypes.Config) error
IsColliding verify that services defined in the stack collides with already deployed services
func LoadStack ¶
func LoadStack(name string, cfg composetypes.Config) (*apiv1beta1.Stack, error)
LoadStack loads a stack from a Compose config, with a given name.
Types ¶
type DeployWatcher ¶
type DeployWatcher struct {
Pods corev1.PodInterface
}
DeployWatcher watches a stack deployement
func (DeployWatcher) Watch ¶
func (w DeployWatcher) Watch(stack *apiv1beta1.Stack, serviceNames []string) chan bool
Watch watches a stuck deployement and return a chan that will holds the state of the stack
type Factory ¶
type Factory struct {
// contains filtered or unexported fields
}
Factory is the kubernetes client factory
func NewFactory ¶
func NewFactory(namespace string, config *restclient.Config) (*Factory, error)
NewFactory creates a kubernetes client factory
func (*Factory) ConfigMaps ¶
func (s *Factory) ConfigMaps() corev1.ConfigMapInterface
ConfigMaps returns a client for kubernetes's config maps
func (*Factory) Nodes ¶
func (s *Factory) Nodes() corev1.NodeInterface
Nodes returns a client for kubernetes's nodes
func (*Factory) Pods ¶
func (s *Factory) Pods() corev1.PodInterface
Pods returns a client for kubernetes's pods
func (*Factory) ReplicaSets ¶
func (s *Factory) ReplicaSets() typesappsv1beta2.ReplicaSetInterface
ReplicaSets return a client for kubernetes replace sets
func (*Factory) ReplicationControllers ¶
func (s *Factory) ReplicationControllers() corev1.ReplicationControllerInterface
ReplicationControllers returns a client for kubernetes replication controllers
func (*Factory) Secrets ¶
func (s *Factory) Secrets() corev1.SecretInterface
Secrets returns a client for kubernetes's secrets
func (*Factory) Services ¶
func (s *Factory) Services() corev1.ServiceInterface
Services returns a client for kubernetes's secrets