Help us shape the future of Go! Take the 2026 Go Developer Survey

entities

package
v0.1.24 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2018 License: Apache-2.0 Imports: 4 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Driver

type Driver struct {
	entitystore.BaseEntity
	Type    string            `json:"type"`
	Config  map[string]string `json:"config,omitempty"`
	Secrets []string          `json:"secrets,omitempty"`
	Image   string            `json:"image"`
	Expose  bool              `json:"expose"`
	URL     string            `json:"url"`
}

Driver represents an event driver instance(e.g. vcenter1.corp.local)

func (*Driver) FromModel

func (d *Driver) FromModel(m *v1.EventDriver, orgID string)

FromModel builds a driver struct from swagger model

func (*Driver) ToModel

func (d *Driver) ToModel() *v1.EventDriver

ToModel creates swagger model from the driver struct

type DriverType

type DriverType struct {
	entitystore.BaseEntity
	Image   string            `json:"image"`
	Expose  bool              `json:"expose"`
	BuiltIn bool              `json:"builtIn"`
	Config  map[string]string `json:"config,omitempty"`
}

DriverType represents a custom type of driver (e.g. timer-driver)

func (*DriverType) FromModel

func (dt *DriverType) FromModel(m *v1.EventDriverType, orgID string)

FromModel builds driver type from swagger model

func (*DriverType) ToModel

func (dt *DriverType) ToModel() *v1.EventDriverType

ToModel creates swagger model from driver type

Jump to

Keyboard shortcuts

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