Documentation
¶
Index ¶
Constants ¶
View Source
const ( CamundaApiKeyConst = "camunda_api" OperateApiKeyConst = "operate_api" TasklistApiKeyConst = "tasklist_api" )
Variables ¶
View Source
var ( ErrNoBaseURL = errors.New("no base_url provided in api configuration") ErrNoTokenURL = errors.New("no token_url provided in auth configuration") ErrNoClientID = errors.New("no client_id provided in auth configuration") ErrNoClientSecret = errors.New("no client_secret provided in auth configuration") ErrNoConfigInContext = errors.New("no config in context") ErrInvalidServiceInContext = errors.New("invalid config in context") )
View Source
var ValidAPIKeys = []string{ CamundaApiKeyConst, OperateApiKeyConst, TasklistApiKeyConst, }
Functions ¶
This section is empty.
Types ¶
type APIs ¶ added in v0.0.6
type APIs struct {
Version camunda.APIVersion `mapstructure:"version"`
Camunda API `mapstructure:"camunda_api"`
Operate API `mapstructure:"operate_api"`
Tasklist API `mapstructure:"tasklist_api"`
}
type App ¶ added in v0.0.9
type App struct {
Tenant string `mapstructure:"tenant"`
Backoff common.BackoffConfig `mapstructure:"backoff"`
}
type Auth ¶ added in v0.0.35
type Auth struct {
Mode AuthMode `mapstructure:"mode"`
OAuth2 AuthOAuth2ClientCredentials `mapstructure:"oauth2"`
Cookie AuthCookieSession `mapstructure:"cookie"`
}
type AuthCookieSession ¶ added in v0.0.35
type AuthCookieSession struct {
BaseURL string `mapstructure:"base_url"`
Username string `mapstructure:"username"`
Password string `mapstructure:"password"`
}
func (*AuthCookieSession) Validate ¶ added in v0.0.35
func (c *AuthCookieSession) Validate() error
type AuthOAuth2ClientCredentials ¶ added in v0.0.35
type AuthOAuth2ClientCredentials struct {
TokenURL string `mapstructure:"token_url"`
ClientID string `mapstructure:"client_id"`
ClientSecret string `mapstructure:"client_secret"`
Scopes map[string]string `mapstructure:"scopes"`
}
func (*AuthOAuth2ClientCredentials) Scope ¶ added in v0.0.35
func (a *AuthOAuth2ClientCredentials) Scope(key string) string
func (*AuthOAuth2ClientCredentials) Validate ¶ added in v0.0.35
func (a *AuthOAuth2ClientCredentials) Validate() error
Click to show internal directories.
Click to hide internal directories.