oam

package
v0.5.23 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 30, 2021 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package oam contains the definitions for OAM objects as well as the parsers and register functions associated with it

Index

Constants

This section is empty.

Variables

View Source
var AvailableVersions = map[string]bool{}

AvailableVersions denote the component versions available statically

Functions

func ParseApplicationComponent

func ParseApplicationComponent(jsn string) (acomp v1alpha1.Component, err error)

ParseApplicationComponent converts json application component to go struct

func ParseApplicationConfiguration

func ParseApplicationConfiguration(jsn string) (acomp v1alpha1.Configuration, err error)

ParseApplicationConfiguration converts json application configuration to go struct

func RegisterTraits

func RegisterTraits(runtime, host string) error

RegisterTraits will register all of the trait definitions present in the path oam/traits

Registeration process will send POST request to $runtime/api/oam/trait

func RegisterWorkloads

func RegisterWorkloads(runtime, host string) error

RegisterWorkloads will register all of the workload definitions present in the path oam/workloads

Registration process will send POST request to $runtime/api/oam/workload

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL