Documentation ¶
Index ¶
- func ComponentsIndexInformer(client scheme.Interface, namespace string, fieldSelector fields.Selector, ...) cache.SharedIndexInformer
- func DeploymentsIndexInformer(client kubernetes.Interface, namespace string, fieldSelector fields.Selector, ...) cache.SharedIndexInformer
- type API
- func (a *API) CreateService(service *corev1.Service, namespace string) error
- func (a *API) DeleteService(serviceName string, namespace string) error
- func (a *API) GetDaprClient() scheme.Interface
- func (a *API) GetDeployment(name, namespace string) (*appsv1.Deployment, error)
- func (a *API) GetDeploymentsBySelector(selector meta_v1.LabelSelector) ([]appsv1.Deployment, error)
- func (a *API) GetEndpoints(name, namespace string) (*corev1.Endpoints, error)
- func (a *API) GetKubeClient() kubernetes.Interface
- func (a *API) ServiceExists(name, namespace string) bool
- func (a *API) UpdateDeployment(deployment *appsv1.Deployment) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ComponentsIndexInformer ¶
func DeploymentsIndexInformer ¶
func DeploymentsIndexInformer( client kubernetes.Interface, namespace string, fieldSelector fields.Selector, labelSelector labels.Selector, ) cache.SharedIndexInformer
Types ¶
type API ¶ added in v0.2.0
type API struct {
// contains filtered or unexported fields
}
func NewAPI ¶ added in v0.2.0
func NewAPI(kubeClient kubernetes.Interface, daprClient scheme.Interface) *API
NewAPI returns api to interact with kubernetes
func (*API) CreateService ¶ added in v0.2.0
CreateService creates a new service
func (*API) DeleteService ¶ added in v0.2.0
Delete a service
func (*API) GetDaprClient ¶ added in v0.2.0
GetDaprClient returns Dapr Client
func (*API) GetDeployment ¶ added in v0.2.0
func (a *API) GetDeployment(name, namespace string) (*appsv1.Deployment, error)
GetDeployment gets a deployment
func (*API) GetDeploymentsBySelector ¶ added in v0.2.0
func (a *API) GetDeploymentsBySelector(selector meta_v1.LabelSelector) ([]appsv1.Deployment, error)
GetDeploymentsBySelector returns a deployment by a selector
func (*API) GetEndpoints ¶ added in v0.2.0
GetEndpoints returns a list of service endpoints
func (*API) GetKubeClient ¶ added in v0.2.0
func (a *API) GetKubeClient() kubernetes.Interface
GetKubeClient returns Kube Client
func (*API) ServiceExists ¶ added in v0.2.0
ServiceExists checks if a service already exists
func (*API) UpdateDeployment ¶ added in v0.2.0
func (a *API) UpdateDeployment(deployment *appsv1.Deployment) error
UpdateDeployment updates an existing deployment
Click to show internal directories.
Click to hide internal directories.