storage

package
v0.0.4 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type JiraInstallInformation

type JiraInstallInformation struct {
	UserAccount    string `json:"-"`
	Key            string `json:"key"`
	ClientKey      string `json:"clientKey"`
	OauthClientID  string `json:"oauthClientID"`
	PublicKey      string `json:"publicKey"`
	SharedSecret   string `json:"sharedSecret"`
	ServerVersion  string `json:"serverVersion"`
	PluginsVersion string `json:"pluginsVersion"`
	BaseURL        string `json:"baseURL"`
	ProductType    string `json:"productType"`
	Description    string `json:"description"`
	EventType      string `json:"eventType"`
}

JiraInstallInformation is the payload sent by JIRA to the /install endpoint

type Store

type Store interface {
	SaveJiraInstallInformation(*JiraInstallInformation) error
	JiraInstallInformation(clientKey string) (*JiraInstallInformation, error)
}

Store should be implemented to allow storage of the necessary jira information. all methods should be idempotent.

Jump to

Keyboard shortcuts

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