extensions

package
v0.0.0-...-17d1d9d Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Action

type Action interface {
	// contains filtered or unexported methods
}

type Callback

type Callback struct {
	Expiration string `json:"expiration"`
	URL        string `json:"url"`
}

type ChangeEvent

type ChangeEvent struct {
	Summary string `json:"summary"`
}

type ChangeEventAction

type ChangeEventAction struct {
	Action      string      `json:"action"`
	ChangeEvent ChangeEvent `json:"change_event"`
}

type CommandExtension

type CommandExtension struct {
	Description string `json:"description"`
	ID          string `json:"id"`
	Name        string `json:"name"`
}

type Data

type Data struct {
	Callback         Callback         `json:"callback"`
	CommandArguments []string         `json:"command_arguments"`
	CommandExtension CommandExtension `json:"command_extension"`
	FirehydrantUser  FirehydrantUser  `json:"firehydrant_user"`
	Payload          interface{}      `json:"payload"`
	PayloadType      string           `json:"payload_type"`
}

type Event

type Event struct {
	Operation    string `json:"operation"`
	ResourceType string `json:"resource_type"`
}

type FirehydrantUser

type FirehydrantUser struct {
	Email  string `json:"email"`
	ID     string `json:"id"`
	Name   string `json:"name"`
	Source string `json:"source"`
}

type NewNoteAction

type NewNoteAction struct {
	Action string `json:"action"`
	Body   string `json:"body"`
}

type Payload

type Payload struct {
	Data  Data  `json:"data"`
	Event Event `json:"event"`
}

type ReplyToChatAction

type ReplyToChatAction struct {
	Action  string `json:"action"`
	Message string `json:"message"`
}

type Response

type Response struct {
	ReplyType string   `json:"reply_type"`
	Actions   []Action `json:"actions"`
}

func ReplyForRestart

func ReplyForRestart(old, new *appsv1.Deployment) (*Response, error)

Jump to

Keyboard shortcuts

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