client

package
v0.0.10 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2025 License: Apache-2.0 Imports: 13 Imported by: 4

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 interface {
	interfaces.Controller
}

type ClientImpl

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

func New

func New(serverUrl string) (client *ClientImpl)

func (*ClientImpl) CreateIncident

func (this *ClientImpl) CreateIncident(token string, incident messages.Incident) (err error, code int)

func (*ClientImpl) DeleteIncidentByProcessDefinitionId

func (this *ClientImpl) DeleteIncidentByProcessDefinitionId(token string, id string) (err error, code int)

func (*ClientImpl) DeleteIncidentByProcessInstanceId

func (this *ClientImpl) DeleteIncidentByProcessInstanceId(token string, id string) (err error, code int)

func (*ClientImpl) FindIncidents

func (this *ClientImpl) FindIncidents(token string, externalTaskId string, processDefinitionId string, processInstanceId string, limit int, offset int, sortBy string, asc bool) (incidents []messages.IncidentMessage, err error, code int)

func (*ClientImpl) GetIncident

func (this *ClientImpl) GetIncident(token string, id string) (incident messages.IncidentMessage, err error, errCode int)

func (*ClientImpl) SetOnIncidentHandler

func (this *ClientImpl) SetOnIncidentHandler(token string, incident messages.OnIncident) (err error, code int)

type IncidentMessage

type IncidentMessage = messages.IncidentMessage

type OnIncident

type OnIncident = messages.OnIncident

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:"-"`
}

Jump to

Keyboard shortcuts

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