Back to godoc.org

Package connection

v0.0.0-...-afdeb59
Latest Go to latest

The latest major version is .

Published: Jul 3, 2020 | License: Apache-2.0 | Module: github.com/odahu/odahu-flow/packages/operator

Index

Constants

const (
	TagKey = "name"
)

type Filter

type Filter struct {
	Type []string `name:"type"`
}

type ListOption

type ListOption func(*ListOptions)

func ListFilter

func ListFilter(filter *Filter) ListOption

func Page

func Page(page int) ListOption

func Size

func Size(size int) ListOption

type ListOptions

type ListOptions struct {
	Filter *Filter
	Page   *int
	Size   *int
}

type Repository

type Repository interface {
	GetConnection(id string) (*connection.Connection, error)
	GetDecryptedConnection(id string) (*connection.Connection, error)
	GetConnectionList(options ...ListOption) ([]connection.Connection, error)
	DeleteConnection(id string) error
	UpdateConnection(connection *connection.Connection) error
	CreateConnection(connection *connection.Connection) error
}

Package Files

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier