models

package
v0.0.1-alpha.0...-5fa1b17 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2017 License: Apache-2.0 Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Auth

type Auth struct {

	// j w t
	JWT string `json:"JWT,omitempty"`

	// level
	Level int64 `json:"level,omitempty"`

	// username
	Username string `json:"username,omitempty"`
}

Auth auth swagger:model Auth

func (*Auth) Validate

func (m *Auth) Validate(formats strfmt.Registry) error

Validate validates this auth

type IncomingWebhookService

type IncomingWebhookService struct {

	// j w t
	JWT string `json:"JWT,omitempty"`

	// id
	ID int64 `json:"id,omitempty"`

	// name
	Name string `json:"name,omitempty"`

	// Project ID
	Project int64 `json:"project,omitempty"`

	// secret
	Secret string `json:"secret,omitempty"`

	// "incoming-webhook"
	Type string `json:"type,omitempty"`

	// url
	URL string `json:"url,omitempty"`
}

IncomingWebhookService incoming webhook service swagger:model IncomingWebhookService

func (*IncomingWebhookService) Validate

func (m *IncomingWebhookService) Validate(formats strfmt.Registry) error

Validate validates this incoming webhook service

type IncomingWebhookServiceUpdate

type IncomingWebhookServiceUpdate struct {

	// name
	// Required: true
	Name *string `json:"name"`

	// Project ID
	// Required: true
	Project *int64 `json:"project"`

	// secret
	Secret string `json:"secret"`

	// "incoming-webhook"
	// Required: true
	Type *string `json:"type"`
}

IncomingWebhookServiceUpdate incoming webhook service update swagger:model IncomingWebhookServiceUpdate

func (*IncomingWebhookServiceUpdate) Validate

func (m *IncomingWebhookServiceUpdate) Validate(formats strfmt.Registry) error

Validate validates this incoming webhook service update

type Module

type Module struct {

	// id
	ID string `json:"id,omitempty"`

	// is online
	IsOnline bool `json:"is_online,omitempty"`

	// name
	Name string `json:"name,omitempty"`

	// Project ID
	Project int64 `json:"project,omitempty"`
}

Module module swagger:model Module

func (*Module) Validate

func (m *Module) Validate(formats strfmt.Registry) error

Validate validates this module

type ModuleRegister

type ModuleRegister struct {

	// name
	// Required: true
	Name *string `json:"name"`

	// Project ID
	// Required: true
	Project *int64 `json:"project"`

	// register id
	// Required: true
	RegisterID *string `json:"register_id"`

	// register pass
	// Required: true
	RegisterPass *string `json:"register_pass"`
}

ModuleRegister Module Register Information swagger:model ModuleRegister

func (*ModuleRegister) Validate

func (m *ModuleRegister) Validate(formats strfmt.Registry) error

Validate validates this module register

type ModuleUpdate

type ModuleUpdate struct {

	// name
	// Required: true
	Name *string `json:"name"`

	// Project ID
	// Required: true
	Project *int64 `json:"project"`
}

ModuleUpdate Module swagger:model ModuleUpdate

func (*ModuleUpdate) Validate

func (m *ModuleUpdate) Validate(formats strfmt.Registry) error

Validate validates this module update

type OutgoingWebhookService

type OutgoingWebhookService struct {

	// j w t
	JWT string `json:"JWT,omitempty"`

	// id
	ID int64 `json:"id,omitempty"`

	// name
	Name string `json:"name,omitempty"`

	// Project ID
	Project int64 `json:"project,omitempty"`

	// secret
	Secret string `json:"secret,omitempty"`

	// "outgoing-webhook"
	Type string `json:"type,omitempty"`

	// url
	URL string `json:"url,omitempty"`
}

OutgoingWebhookService outgoing webhook service swagger:model OutgoingWebhookService

func (*OutgoingWebhookService) Validate

func (m *OutgoingWebhookService) Validate(formats strfmt.Registry) error

Validate validates this outgoing webhook service

type OutgoingWebhookServiceUpdate

type OutgoingWebhookServiceUpdate struct {

	// name
	// Required: true
	Name *string `json:"name"`

	// Project ID
	// Required: true
	Project *int64 `json:"project"`

	// secret
	Secret string `json:"secret"`

	// "outgoing-webhook"
	// Required: true
	Type *string `json:"type"`

	// url
	// Required: true
	URL *string `json:"url"`
}

OutgoingWebhookServiceUpdate OutgoingWebhookService swagger:model OutgoingWebhookServiceUpdate

func (*OutgoingWebhookServiceUpdate) Validate

func (m *OutgoingWebhookServiceUpdate) Validate(formats strfmt.Registry) error

Validate validates this outgoing webhook service update

type Project

type Project struct {

	// id
	ID int64 `json:"id,omitempty"`

	// name
	Name string `json:"name,omitempty"`
}

Project project swagger:model Project

func (*Project) Validate

func (m *Project) Validate(formats strfmt.Registry) error

Validate validates this project

type ProjectUpdate

type ProjectUpdate struct {

	// name
	// Required: true
	Name *string `json:"name"`
}

ProjectUpdate Project swagger:model ProjectUpdate

func (*ProjectUpdate) Validate

func (m *ProjectUpdate) Validate(formats strfmt.Registry) error

Validate validates this project update

type ServiceBase

type ServiceBase struct {

	// j w t
	JWT string `json:"JWT,omitempty"`

	// id
	ID int64 `json:"id,omitempty"`

	// name
	Name string `json:"name,omitempty"`

	// Project ID
	Project int64 `json:"project,omitempty"`

	// type
	Type string `json:"type,omitempty"`
}

ServiceBase service base swagger:model ServiceBase

func (*ServiceBase) Validate

func (m *ServiceBase) Validate(formats strfmt.Registry) error

Validate validates this service base

type WebSocketService

type WebSocketService struct {

	// j w t
	JWT string `json:"JWT,omitempty"`

	// id
	ID int64 `json:"id,omitempty"`

	// name
	Name string `json:"name,omitempty"`

	// Project ID
	Project int64 `json:"project,omitempty"`

	// "websocket"
	Type string `json:"type,omitempty"`

	// url
	URL string `json:"url,omitempty"`
}

WebSocketService web socket service swagger:model WebSocketService

func (*WebSocketService) Validate

func (m *WebSocketService) Validate(formats strfmt.Registry) error

Validate validates this web socket service

type WebSocketServiceUpdate

type WebSocketServiceUpdate struct {

	// name
	// Required: true
	Name *string `json:"name"`

	// Project ID
	// Required: true
	Project *int64 `json:"project"`

	// "websocket"
	// Required: true
	Type *string `json:"type"`
}

WebSocketServiceUpdate WebSocketService swagger:model WebSocketServiceUpdate

func (*WebSocketServiceUpdate) Validate

func (m *WebSocketServiceUpdate) Validate(formats strfmt.Registry) error

Validate validates this web socket service update

Jump to

Keyboard shortcuts

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