# README

Deploy applications Package

This package contains executors to deploy iofog applications and microservices using the client package.

Usage

import (
	deploytypes "github.com/eclipse-iofog/iofog-go-sdk/v2/pkg/deployapps"
	deploy "github.com/eclipse-iofog/iofog-go-sdk/v2/pkg/deployapps/application"
)

// Create your Controller access structure
controller := deploytypes.IofogController{
  Endpoint: "127.0.0.1:51121",
	Email:    "[email protected]",
	Password: "kj2gh0ooiwbug",
}

// Create your application structure
application := deploytypes.Application{
  Name: "my-app"
  //...Rest of the fields
}

// OR, read it from a yaml file
yamlFile, err := ioutil.ReadFile(filename)
if err != nil {
  return err
}
err = yaml.Unmarshal(yamlFile, &application)
if err != nil {
  return err
}

// Deploy
err = deploy.Execute(controller, application)

# Functions

No description provided by the author
No description provided by the author
NewConflictError export.
No description provided by the author
NewHTTPError export.
NewInputError export.
NewInternalError export.
NewNotFoundError export.

# Constants

Available kind of deploy.
Available kind of deploy.
Available kind of deploy.

# Structs

+k8s:deepcopy-gen=true.
Application contains information for configuring an application +k8s:deepcopy-gen=true.
ApplicationData is data fetched from controller at init time.
Applications is a list of applications +k8s:deepcopy-gen=true.
CatalogItem contains information about a catalog item +k8s:deepcopy-gen=true.
ConflictError export.
No description provided by the author
Header contains k8s yaml header.
HeaderMetadata contains k8s metadata +k8s:deepcopy-gen=true.
HTTPError export.
InputError export.
InternalError export.
IofogController contains informations needed to connect to the controller +k8s:deepcopy-gen=true.
Microservice contains information for configuring a microservice +k8s:deepcopy-gen=true.
MicroserviceAgent contains information about required agent configuration for a microservice +k8s:deepcopy-gen=true.
MicroserviceContainer contains information for configuring a microservice container +k8s:deepcopy-gen=true.
+k8s:deepcopy-gen=true.
+k8s:deepcopy-gen=true.
MicroserviceImages contains information about the images for a microservice +k8s:deepcopy-gen=true.
+k8s:deepcopy-gen=true.
Microservices is a list of Microservice +k8s:deepcopy-gen=true.
+k8s:deepcopy-gen=true.
NotFoundError export.
Route contains information about a route from one microservice to another +k8s:deepcopy-gen=true.

# Interfaces

Deployable can be deployed using iofogctl deploy.

# Type aliases

Kind contains available types.
No description provided by the author