Documentation
¶
Index ¶
- Constants
- func Capitalize(word string) string
- func GetMacFromIeId(ieId string) (string, error)
- func GetService(serviceComponent *llov1alpha1.ServiceComponentDocker) (string, error)
- func GetServiceAndComponentNames(serviceComponent string) (string, string, error)
- func GetServiceComponentEntityId(serviceComponent string, service string) (string, error)
- type DockerApi
- type DockerApiPorts
- type ServiceComponentDockerReconciler
- func (r *ServiceComponentDockerReconciler) CreateContextBrokerCondition(serviceComponent *llov1alpha1.ServiceComponentDocker)
- func (r *ServiceComponentDockerReconciler) CreateContextBrokerFailedCondition(serviceComponent *llov1alpha1.ServiceComponentDocker)
- func (r *ServiceComponentDockerReconciler) CreateInitializedCondition(serviceComponent *llov1alpha1.ServiceComponentDocker)
- func (r *ServiceComponentDockerReconciler) CreateNetworkingConfigurationCondition(serviceComponent *llov1alpha1.ServiceComponentDocker)
- func (r *ServiceComponentDockerReconciler) CreateUpdatedCondition(serviceComponent *llov1alpha1.ServiceComponentDocker)
- func (r *ServiceComponentDockerReconciler) HandleCreate(ctx context.Context, serviceComponent *llov1alpha1.ServiceComponentDocker) (ctrl.Result, error)
- func (r *ServiceComponentDockerReconciler) HandleDelete(ctx context.Context, serviceComponent *llov1alpha1.ServiceComponentDocker) (ctrl.Result, error)
- func (r *ServiceComponentDockerReconciler) HandleUpdate(ctx context.Context, serviceComponent *llov1alpha1.ServiceComponentDocker) (ctrl.Result, error)
- func (r *ServiceComponentDockerReconciler) IsNewInstance(serviceComponent *llov1alpha1.ServiceComponentDocker) bool
- func (r *ServiceComponentDockerReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)
- func (r *ServiceComponentDockerReconciler) SendNotifications(serviceComponent *llov1alpha1.ServiceComponentDocker, event string, ...) (err error)
- func (r *ServiceComponentDockerReconciler) SetupWithManager(mgr ctrl.Manager) error
- func (r *ServiceComponentDockerReconciler) ShowServiceComponentLogs(serviceComponent *llov1alpha1.ServiceComponentDocker, log logr.Logger)
Constants ¶
View Source
const ( EventDeleted = "deleted" EventDeployed = "deployed" EventFailed = "failed" EventUpdated = "updated" )
TODO use enum
Variables ¶
This section is empty.
Functions ¶
func Capitalize ¶
func GetMacFromIeId ¶
func GetService ¶
func GetService(serviceComponent *llov1alpha1.ServiceComponentDocker) (string, error)
func GetServiceAndComponentNames ¶
FIXME
Types ¶
type DockerApi ¶
type DockerApi struct {
Method string `json:"method,omitempty"`
Name string `json:"name,omitempty"`
Image string `json:"image,omitempty"`
Tag string `json:"tag,omitempty"`
Priviledged bool `json:"priviledged,omitempty"`
Ports []DockerApiPorts `json:"ports,omitempty"`
EnvVars []llov1alpha1.KeyValue `json:"envVars,omitempty"`
CliArgs []llov1alpha1.KeyValue `json:"cliArgs,omitempty"`
ContainerID string `json:"containerID,omitempty"`
}
type DockerApiPorts ¶
type ServiceComponentDockerReconciler ¶
type ServiceComponentDockerReconciler struct {
client.Client
Scheme *runtime.Scheme
CbClient *contextbroker.ContextBroker
Config *config.Config
IotaClient *iotatangle.IotaClient
NatsClient *nats.NatsClient
NotificationsClient *notifications.NotificationClient
}
ServiceComponentDockerReconciler reconciles a ServiceComponentDocker object
func (*ServiceComponentDockerReconciler) CreateContextBrokerCondition ¶
func (r *ServiceComponentDockerReconciler) CreateContextBrokerCondition(serviceComponent *llov1alpha1.ServiceComponentDocker)
func (*ServiceComponentDockerReconciler) CreateContextBrokerFailedCondition ¶
func (r *ServiceComponentDockerReconciler) CreateContextBrokerFailedCondition(serviceComponent *llov1alpha1.ServiceComponentDocker)
func (*ServiceComponentDockerReconciler) CreateInitializedCondition ¶
func (r *ServiceComponentDockerReconciler) CreateInitializedCondition(serviceComponent *llov1alpha1.ServiceComponentDocker)
? create a condition for deployment and service
func (*ServiceComponentDockerReconciler) CreateNetworkingConfigurationCondition ¶
func (r *ServiceComponentDockerReconciler) CreateNetworkingConfigurationCondition(serviceComponent *llov1alpha1.ServiceComponentDocker)
func (*ServiceComponentDockerReconciler) CreateUpdatedCondition ¶
func (r *ServiceComponentDockerReconciler) CreateUpdatedCondition(serviceComponent *llov1alpha1.ServiceComponentDocker)
func (*ServiceComponentDockerReconciler) HandleCreate ¶
func (r *ServiceComponentDockerReconciler) HandleCreate(ctx context.Context, serviceComponent *llov1alpha1.ServiceComponentDocker) (ctrl.Result, error)
func (*ServiceComponentDockerReconciler) HandleDelete ¶
func (r *ServiceComponentDockerReconciler) HandleDelete(ctx context.Context, serviceComponent *llov1alpha1.ServiceComponentDocker) (ctrl.Result, error)
func (*ServiceComponentDockerReconciler) HandleUpdate ¶
func (r *ServiceComponentDockerReconciler) HandleUpdate(ctx context.Context, serviceComponent *llov1alpha1.ServiceComponentDocker) (ctrl.Result, error)
func (*ServiceComponentDockerReconciler) IsNewInstance ¶
func (r *ServiceComponentDockerReconciler) IsNewInstance(serviceComponent *llov1alpha1.ServiceComponentDocker) bool
func (*ServiceComponentDockerReconciler) SendNotifications ¶
func (r *ServiceComponentDockerReconciler) SendNotifications(serviceComponent *llov1alpha1.ServiceComponentDocker, event string, log logr.Logger) (err error)
Send Portal and IOTA notifications using predefined messages
func (*ServiceComponentDockerReconciler) SetupWithManager ¶
func (r *ServiceComponentDockerReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.
func (*ServiceComponentDockerReconciler) ShowServiceComponentLogs ¶
func (r *ServiceComponentDockerReconciler) ShowServiceComponentLogs(serviceComponent *llov1alpha1.ServiceComponentDocker, log logr.Logger)
Click to show internal directories.
Click to hide internal directories.