Documentation
¶
Index ¶
- Constants
- func CompileTOSCA(context contextpkg.Context, url string, inputs map[string]ard.Value, ...) error
- func ReadClout(reader io.Reader, urlContext *exturl.Context) (*cloutpkg.Clout, error)
- func RequireCloutScriptlet(clout *cloutpkg.Clout, scriptletName string, arguments map[string]string, ...) (string, error)
- func WriteClout(clout *cloutpkg.Clout, writer io.Writer) error
- type Controller
- func (self *Controller) CompileServiceTemplate(context contextpkg.Context, serviceTemplateURL string, ...) (string, error)
- func (self *Controller) EventCloutUpdateError(service *resources.Service, err error)
- func (self *Controller) EventCompilationError(service *resources.Service, err error)
- func (self *Controller) EventCompiled(service *resources.Service)
- func (self *Controller) EventInstantiated(service *resources.Service)
- func (self *Controller) EventInstantiationError(service *resources.Service, err error)
- func (self *Controller) GetAttributesFromResources(resourceMappings parser.KubernetesResourceMappings) (parser.CloutAttributeValues, error)
- func (self *Controller) GetResource(resourceMapping *parser.KubernetesResourceMapping) (*unstructured.Unstructured, error)
- func (self *Controller) NewDelegate(name string) (*clientpkg.Client, error)
- func (self *Controller) ReadClout(context contextpkg.Context, cloutPath string, resolve bool, coerce bool, ...) (*cloutpkg.Clout, error)
- func (self *Controller) Run(concurrency uint, startup func()) error
- func (self *Controller) Substitute(context contextpkg.Context, namespace string, nodeTemplateName string, ...) error
- func (self *Controller) UpdateServiceInstantiationState(service *resources.Service, state resources.ServiceInstantiationState) (*resources.Service, error)
- func (self *Controller) UpdateServiceStatusClout(service *resources.Service, cloutPath string, cloutHash string) (*resources.Service, error)
- func (self *Controller) UpdateServiceStatusMode(service *resources.Service) (*resources.Service, error)
- func (self *Controller) UpdateServiceStatusNodeStates(service *resources.Service, states parser.OrchestrationNodeStates) (*resources.Service, error)
- func (self *Controller) UpdateServiceStatusOutputs(service *resources.Service, outputs map[string]string) (*resources.Service, error)
- func (self *Controller) WriteClout(yaml string, cloutPath string) (string, error)
- func (self *Controller) WriteServiceClout(yaml string, service *resources.Service) (*resources.Service, error)
Constants ¶
View Source
const ( NamePrefix = "turandot" PartOf = "Turandot" ManagedBy = "Turandot" OperatorImageName = "tliron/turandot-operator" CacheDirectory = "/cache" )
View Source
const ( EventCompiled = "Compiled" EventCompilationError = "CompilationError" EventInstantiated = "Instantiated" EventInstantiationError = "InstantiationError" EventCloutUpdateError = "CloutUpdateError" )
Variables ¶
This section is empty.
Functions ¶
func CompileTOSCA ¶
func RequireCloutScriptlet ¶
Types ¶
type Controller ¶
type Controller struct {
Site string
Config *restpkg.Config
Dynamic *kubernetesutil.Dynamic
Kubernetes kubernetes.Interface
Turandot turandotpkg.Interface
Client *clientpkg.Client
CachePath string
StopChannel <-chan struct{}
Processors *kubernetesutil.Processors
Events record.EventRecorder
KubernetesInformerFactory informers.SharedInformerFactory
TurandotInformerFactory turandotinformers.SharedInformerFactory
Services turandotlisters.ServiceLister
Context contextpkg.Context
Log commonlog.Logger
}
func NewController ¶
func NewController(context contextpkg.Context, toolName string, site string, clusterMode bool, clusterRole string, namespace string, dynamic dynamicpkg.Interface, kubernetes kubernetes.Interface, apiExtensions apiextensionspkg.Interface, turandot turandotpkg.Interface, reposure reposurepkg.Interface, config *restpkg.Config, cachePath string, informerResyncPeriod time.Duration, stopChannel <-chan struct{}) *Controller
func (*Controller) CompileServiceTemplate ¶
func (*Controller) EventCloutUpdateError ¶
func (self *Controller) EventCloutUpdateError(service *resources.Service, err error)
func (*Controller) EventCompilationError ¶
func (self *Controller) EventCompilationError(service *resources.Service, err error)
func (*Controller) EventCompiled ¶
func (self *Controller) EventCompiled(service *resources.Service)
func (*Controller) EventInstantiated ¶
func (self *Controller) EventInstantiated(service *resources.Service)
func (*Controller) EventInstantiationError ¶
func (self *Controller) EventInstantiationError(service *resources.Service, err error)
func (*Controller) GetAttributesFromResources ¶
func (self *Controller) GetAttributesFromResources(resourceMappings parser.KubernetesResourceMappings) (parser.CloutAttributeValues, error)
func (*Controller) GetResource ¶
func (self *Controller) GetResource(resourceMapping *parser.KubernetesResourceMapping) (*unstructured.Unstructured, error)
func (*Controller) NewDelegate ¶
func (self *Controller) NewDelegate(name string) (*clientpkg.Client, error)
func (*Controller) Run ¶
func (self *Controller) Run(concurrency uint, startup func()) error
func (*Controller) Substitute ¶
func (*Controller) UpdateServiceInstantiationState ¶
func (self *Controller) UpdateServiceInstantiationState(service *resources.Service, state resources.ServiceInstantiationState) (*resources.Service, error)
func (*Controller) UpdateServiceStatusClout ¶
func (*Controller) UpdateServiceStatusMode ¶
func (*Controller) UpdateServiceStatusNodeStates ¶
func (self *Controller) UpdateServiceStatusNodeStates(service *resources.Service, states parser.OrchestrationNodeStates) (*resources.Service, error)
func (*Controller) UpdateServiceStatusOutputs ¶
func (*Controller) WriteClout ¶
func (self *Controller) WriteClout(yaml string, cloutPath string) (string, error)
func (*Controller) WriteServiceClout ¶
Source Files
¶
Click to show internal directories.
Click to hide internal directories.