client

package
v0.0.0-...-c0d51b7 Latest Latest
Warning

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

Go to latest
Published: May 1, 2024 License: MIT Imports: 50 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// DefaultHost is the default Host
	// found in Meta (info) section of spec file
	DefaultHost string = "api.firehydrant.io"
	// DefaultBasePath is the default BasePath
	// found in Meta (info) section of spec file
	DefaultBasePath string = "/"
)

Variables

View Source
var Default = NewHTTPClient(nil)

Default fire hydrant API HTTP client.

View Source
var DefaultSchemes = []string{"https"}

DefaultSchemes are the default schemes found in Meta (info) section of spec file

Functions

This section is empty.

Types

type FireHydrantAPI

type FireHydrantAPI struct {
	Ai ai.ClientService

	Alerts alerts.ClientService

	Bootstrap bootstrap.ClientService

	Catalogs catalogs.ClientService

	ChangeTypes change_types.ClientService

	Changes changes.ClientService

	ChecklistTemplates checklist_templates.ClientService

	Conversations conversations.ClientService

	CurrentUser current_user.ClientService

	CustomFields custom_fields.ClientService

	Entitlements entitlements.ClientService

	Environments environments.ClientService

	FormConfigurations form_configurations.ClientService

	Functionalities functionalities.ClientService

	IncidentRoles incident_roles.ClientService

	IncidentTags incident_tags.ClientService

	IncidentTypes incident_types.ClientService

	Incidents incidents.ClientService

	Infrastructures infrastructures.ClientService

	Integrations integrations.ClientService

	Metrics metrics.ClientService

	Noauth noauth.ClientService

	Nunc nunc.ClientService

	NuncConnections nunc_connections.ClientService

	Ping ping.ClientService

	PostMortems post_mortems.ClientService

	Priorities priorities.ClientService

	ProcessingLogEntries processing_log_entries.ClientService

	Reports reports.ClientService

	RunbookAudits runbook_audits.ClientService

	RunbookTemplates runbook_templates.ClientService

	Runbooks runbooks.ClientService

	SavedSearches saved_searches.ClientService

	ScheduledMaintenances scheduled_maintenances.ClientService

	Schedules schedules.ClientService

	Scim scim.ClientService

	ServiceDependencies service_dependencies.ClientService

	Services services.ClientService

	Severities severities.ClientService

	SeverityMatrix severity_matrix.ClientService

	Signals signals.ClientService

	StatusUpdateTemplates status_update_templates.ClientService

	TaskLists task_lists.ClientService

	Teams teams.ClientService

	Ticketing ticketing.ClientService

	Users users.ClientService

	Webhooks webhooks.ClientService

	Transport runtime.ClientTransport
}

FireHydrantAPI is a client for fire hydrant API

func New

func New(transport runtime.ClientTransport, formats strfmt.Registry) *FireHydrantAPI

New creates a new fire hydrant API client

func NewHTTPClient

func NewHTTPClient(formats strfmt.Registry) *FireHydrantAPI

NewHTTPClient creates a new fire hydrant API HTTP client.

func NewHTTPClientWithConfig

func NewHTTPClientWithConfig(formats strfmt.Registry, cfg *TransportConfig) *FireHydrantAPI

NewHTTPClientWithConfig creates a new fire hydrant API HTTP client, using a customizable transport config.

func (*FireHydrantAPI) SetTransport

func (c *FireHydrantAPI) SetTransport(transport runtime.ClientTransport)

SetTransport changes the transport on the client and all its subresources

type TransportConfig

type TransportConfig struct {
	Host     string
	BasePath string
	Schemes  []string
}

TransportConfig contains the transport related info, found in the meta section of the spec file.

func DefaultTransportConfig

func DefaultTransportConfig() *TransportConfig

DefaultTransportConfig creates a TransportConfig with the default settings taken from the meta section of the spec file.

func (*TransportConfig) WithBasePath

func (cfg *TransportConfig) WithBasePath(basePath string) *TransportConfig

WithBasePath overrides the default basePath, provided by the meta section of the spec file.

func (*TransportConfig) WithHost

func (cfg *TransportConfig) WithHost(host string) *TransportConfig

WithHost overrides the default host, provided by the meta section of the spec file.

func (*TransportConfig) WithSchemes

func (cfg *TransportConfig) WithSchemes(schemes []string) *TransportConfig

WithSchemes overrides the default schemes, provided by the meta section of the spec file.

Jump to

Keyboard shortcuts

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