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 Subscription

type Subscription struct {
	entitystore.BaseEntity
	EventType string   `json:"eventType"`
	Function  string   `json:"function"`
	Secrets   []string `json:"secrets,omitempty"`
}

Subscription struct represents a single subscription of subscriber to publisher

func (*Subscription) FromModel

func (s *Subscription) FromModel(m *v1.Subscription, orgID string)

FromModel builds subscription based on swagger model

func (*Subscription) ToModel

func (s *Subscription) ToModel() *v1.Subscription

ToModel converts subscription to swagger model

Jump to

Keyboard shortcuts

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