payrails

package
v0.11.689 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

func NewClient

func NewClient(c Config) (*Client, error)

func (*Client) GetIngestrURI

func (c *Client) GetIngestrURI() (string, error)

type Config

type Config struct {
	ClientID     string `yaml:"client_id" json:"client_id" mapstructure:"client_id"`
	ClientSecret string `yaml:"client_secret" json:"client_secret" mapstructure:"client_secret"`
	CertPath     string `yaml:"cert_path" json:"cert_path" mapstructure:"cert_path"`
	KeyPath      string `yaml:"key_path" json:"key_path" mapstructure:"key_path"`
	Cert         string `yaml:"cert" json:"cert" mapstructure:"cert"`
	Key          string `yaml:"key" json:"key" mapstructure:"key"`
	Environment  string `yaml:"environment" json:"environment" mapstructure:"environment"`
	BaseURL      string `yaml:"base_url" json:"base_url" mapstructure:"base_url"`
}

Config describes credentials for a Payrails connection. The mTLS material may be supplied as local file paths (cert_path/key_path) or as PEM content (cert/key); content is passed to ingestr base64-encoded so it works in environments without local files, such as Bruin Cloud.

func (*Config) GetIngestrURI

func (c *Config) GetIngestrURI() (string, error)

GetIngestrURI builds the Payrails ingestr URI.

Jump to

Keyboard shortcuts

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