client

package
v1.0.14 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2026 License: Apache-2.0 Imports: 11 Imported by: 5

Documentation

Index

Constants

View Source
const InternalAdminToken = `` /* 727-byte string literal not displayed */

InternalAdminToken is expired and invalid. but because this service does not validate the received tokens, it may be used by trusted internal services which are within the same network (kubernetes cluster). requests with this token may not be routed over an ingres with token validation

Variables

This section is empty.

Functions

func NewTokenProvider

func NewTokenProvider(authEndpoint string, authClientId string, authClientSecret string) func() (string, error)

func NewUserTokenProvider

func NewUserTokenProvider(authEndpoint string, authClientId string, authClientSecret string, userName string, pw string) func() (string, error)

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

func New

func New(serverUrl string) (client *Client)

func (*Client) DeleteDeployment

func (this *Client) DeleteDeployment(token string, userId string, deplId string) (err error, code int)

func (*Client) DeleteProcessInstancesByBusinessKey added in v1.0.8

func (this *Client) DeleteProcessInstancesByBusinessKey(token string, businessKey string) (err error, code int)

func (*Client) Deploy

func (this *Client) Deploy(token string, depl DeploymentMessage) (err error, code int)

func (*Client) GetHistoricProcessInstances added in v1.0.8

func (this *Client) GetHistoricProcessInstances(token string, options InstanceListOptions) (result HistoricProcessInstances, err error, code int)

func (*Client) GetHistoricProcessInstancesWithTotal added in v1.0.8

func (this *Client) GetHistoricProcessInstancesWithTotal(token string, options InstanceListOptions) (result HistoricProcessInstancesWithTotal, err error, code int)

func (*Client) GetProcessInstances added in v1.0.12

func (this *Client) GetProcessInstances(token string) (result HistoricProcessInstances, err error, code int)

func (*Client) ListDeployments added in v1.0.8

func (this *Client) ListDeployments(token string, options DeploymentListOptions) (result []ExtendedDeployment, err error, code int)

func (*Client) StartDeployment added in v1.0.8

func (this *Client) StartDeployment(token string, deplId string, options StartOptions) (result ProcessInstance, err error, code int)

type Deployment

type Deployment = model.Deployment

type DeploymentListOptions added in v1.0.8

type DeploymentListOptions struct {
	OtherArgs map[string]string
}

type DeploymentMessage

type DeploymentMessage = model.DeploymentMessage

type Diagram

type Diagram = model.Diagram

type ExtendedDeployment added in v1.0.8

type ExtendedDeployment = model.ExtendedDeployment

type HistoricProcessInstances added in v1.0.8

type HistoricProcessInstances = model.HistoricProcessInstances

type HistoricProcessInstancesWithTotal added in v1.0.8

type HistoricProcessInstancesWithTotal = model.HistoricProcessInstancesWithTotal

type IncidentHandling

type IncidentHandling = model.IncidentHandling

type InstanceListOptions added in v1.0.8

type InstanceListOptions struct {
	BusinessKey string
	OtherArgs   map[string]string
}

type OpenidToken

type OpenidToken struct {
	AccessToken      string    `json:"access_token"`
	ExpiresIn        float64   `json:"expires_in"`
	RefreshExpiresIn float64   `json:"refresh_expires_in"`
	RefreshToken     string    `json:"refresh_token"`
	TokenType        string    `json:"token_type"`
	RequestTime      time.Time `json:"-"`
}

type ProcessInstance added in v1.0.8

type ProcessInstance = model.ProcessInstance

type StartOptions added in v1.0.8

type StartOptions struct {
	BusinessKey string
	Inputs      map[string]interface{}
}

Jump to

Keyboard shortcuts

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