gonnect

package module
v0.5.6 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2023 License: Apache-2.0 Imports: 9 Imported by: 1

README

atlas-gonnect : An Atlassian Connect Framework written in Golang

Notice

This project is a fork of github.com/craftamap/atlas-gonnect.

There are a few motivations for this fork:

  • use chi instead of mux
  • use the latest version of gorm
  • handle logging with github.com/go-enjin/be/pkg/log
  • use structs to create new addons instead of .json files
  • any changes necessary to support the atlassian Go-Enjin feature

Note that the rest of this README has been trimmed to basics as this package is not intended to be used directly. Please see the third-party Go-Enjin atlassian feature instead.

This project is not associated with Atlassian.

Upstream Author

Fabian Siegel

License

Apache 2.0.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrConfigNoProfileSelected = errors.New("No Profile selected; Set CurrentProfile in the config file or set GONNECT_PROFILE")
View Source
var ErrConfigProfileNotFound = errors.New("Profile not found!")

Functions

This section is empty.

Types

type Addon

type Addon struct {
	Config          *Profile
	CurrentProfile  string
	Store           *store.Store
	AddonDescriptor map[string]interface{}
	Key             *string
	Name            *string
}

func NewCustomAddon

func NewCustomAddon(config *Profile, currentProfile string, addonDescriptor map[string]interface{}, s *store.Store) (a *Addon, err error)

type Config

type Config struct {
	CurrentProfile string
	Profiles       map[string]Profile
}

type Profile

type Profile struct {
	BaseUrl       string
	Store         StoreConfiguration
	SignedInstall bool
}

func NewProfile

func NewProfile(baseUrl, dbType, dbUri string, signedInstall bool) *Profile

type StoreConfiguration

type StoreConfiguration struct {
	Type        string
	DatabaseUrl string
}

func NewConfiguration

func NewConfiguration(dbType, dbUrl string) StoreConfiguration

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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