client

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetDefaultAppAuthenticationSchema added in v0.0.6

func GetDefaultAppAuthenticationSchema() *schema.Resource

func GetDefaultAppSchema added in v0.0.6

func GetDefaultAppSchema() *schema.Resource

func GetDefaultAppUsageSchema added in v0.0.6

func GetDefaultAppUsageSchema() *schema.Resource

func GetDefaultAuthenticationParameterSchema added in v0.0.6

func GetDefaultAuthenticationParameterSchema() *schema.Resource

func GetDefaultAuthenticationParameterSchemaSchema added in v0.0.6

func GetDefaultAuthenticationParameterSchemaSchema() *schema.Resource

func GetDefaultAuthenticationSchema added in v0.0.6

func GetDefaultAuthenticationSchema() *schema.Resource

func GetDefaultContactInfoSchema added in v0.0.6

func GetDefaultContactInfoSchema() *schema.Resource

func GetDefaultFieldSchema added in v0.0.6

func GetDefaultFieldSchema() *schema.Resource

func GetDefaultFolderMountSchema added in v0.0.6

func GetDefaultFolderMountSchema() *schema.Resource

func GetDefaultReferenceInfoSchema added in v0.0.6

func GetDefaultReferenceInfoSchema() *schema.Resource

func GetDefaultVersionSchema added in v0.0.6

func GetDefaultVersionSchema() *schema.Resource

Types

type App

type App struct {
	Active            bool
	Label             string
	Id                string
	App               AppAuthentication
	Fields            []Field
	Usage             []AppUsage
	WorkflowCount     int    `json:"workflow_count"`
	NodeCount         int    `json:"node_count"`
	OrgId             string `json:"org_id"`
	Created           int
	Edited            int
	Defined           bool
	Type              string
	Encrypted         bool
	ReferenceWorkflow string `json:"reference_workflow"`
}

type AppAuthentication

type AppAuthentication struct {
	Name           string
	IsValid        bool `json:"is_valid"`
	Id             string
	Link           string
	AppVersion     string `json:"app_version"`
	SharingConfig  string `json:"sharing_config"`
	Generated      bool
	Downloaded     bool
	Sharing        bool
	Verified       bool
	Invalid        bool
	Activated      bool
	Tested         bool
	Hash           string
	PrivateId      string `json:"private_id"`
	Description    string
	Environment    string
	SmallImage     string        `json:"small_image"`
	LargeImage     string        `json:"large_image"`
	ContactInfo    ContactInfo   `json:"contact_info"`
	ReferenceInfo  ReferenceInfo `json:"reference_info"`
	FolderMount    FolderMount   `json:"folder_mount"`
	Actions        interface{}
	Authentication Authentication
	Tags           []string
	Categories     []string
	Created        int
	Edited         int
	LastRuntime    int `json:"last_runtime"`
	Versions       []Version
	LoopVersions   []string `json:"loop_versions"`
	Owner          string
	Public         bool
	ReferenceOrg   string `json:"reference_org"`
	ReferenceUrl   string `json:"reference_url"`
	ActionFilePath string `json:"action_file_path"`
	Documentation  string
}

type AppUsage added in v0.0.6

type AppUsage struct {
	WorkfflowId string `json:"workflow_id"`
	Nodes       []string
}

type Authentication

type Authentication struct {
	Type         string
	Required     bool
	Parameters   []AuthenticationParameter
	RedirectUri  string `json:"redirect_uri"`
	TokenUri     string `json:"token_uri"`
	RefreshUri   string `json:"refresh_uri"`
	ClientId     string `json:"client_id"`
	ClientSecret string `json:"client_secret"`
}

type AuthenticationParameter

type AuthenticationParameter struct {
	Description string
	Id          string
	Name        string
	Example     string
	Multiline   bool
	Required    bool
	In          string
	Schema      AuthenticationParameterSchema
	Scheme      string
}

type AuthenticationParameterSchema

type AuthenticationParameterSchema struct {
	Type string
}

type ContactInfo

type ContactInfo struct {
	Name string
	Url  string
}

type CreateOrUpdateResponse added in v0.0.5

type CreateOrUpdateResponse struct {
	Success bool
	Id      string
}

type Field

type Field struct {
	Key   string
	Value string
}

type FolderMount

type FolderMount struct {
	FolderMount       bool   `json:"folder_mount"`
	SourceFolder      string `json:"source_folder"`
	DestinationFolder string `json:"destination_folder"`
}

type GetAppResponse added in v0.0.5

type GetAppResponse struct {
	Data    []App
	Success bool
}

type ReferenceInfo

type ReferenceInfo struct {
	DocumentationUrl string `json:"documentation_url"`
	GithubUrl        string `json:"github_url"`
}

type ShuffleClient

type ShuffleClient struct {
	Url      string
	APIToken string
}

func NewShuffleClient

func NewShuffleClient(baseUrl string, apiToken string) (*ShuffleClient, error)

func (*ShuffleClient) CreateOrUpdateAppAuth

func (c *ShuffleClient) CreateOrUpdateAppAuth(app App) (string, error)

func (*ShuffleClient) DeleteAppAuth

func (c *ShuffleClient) DeleteAppAuth(id string) error

func (*ShuffleClient) GetAllAppAuth added in v0.0.6

func (c *ShuffleClient) GetAllAppAuth() ([]App, error)

func (*ShuffleClient) GetAppAuthById added in v0.0.6

func (c *ShuffleClient) GetAppAuthById(id string) (App, error)

type Version added in v0.0.6

type Version struct {
	Version string
	Id      string
}

Jump to

Keyboard shortcuts

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