client

package
v0.0.40 Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2026 License: Apache-2.0 Imports: 12 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 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) Deploy

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

func (*Client) UpdateDeploymentsOfDeviceGroup added in v0.0.31

func (this *Client) UpdateDeploymentsOfDeviceGroup(token string, dgId string) (err error, code int)

type Deployment

type Deployment = model.Deployment

type Diagram

type Diagram = models.Diagram

type Element

type Element = models.Element

type IncidentHandling

type IncidentHandling = models.IncidentHandling

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 ProcessStartParameter

type ProcessStartParameter = models.ProcessStartParameter

Jump to

Keyboard shortcuts

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