Help us shape the future of Go! Take the 2026 Go Developer Survey

eric

package module
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2026 License: MIT Imports: 17 Imported by: 0

Documentation

Overview

Package eric is the contract-pinned, machine-only ERiC SDK.

Code generated from the pinned ERiC public catalog. Do not edit.

Index

Constants

View Source
const (
	ValidationAccepted SimulationFixture = "validation-accepted-v1"
	ValidationRejected SimulationFixture = "validation-rejected-v1"
	SimulatedAccepted  SimulationOutcome = "simulated_accepted"
	SimulatedRejected  SimulationOutcome = "simulated_rejected"
)

Variables

This section is empty.

Functions

func Wait

func Wait[T any](ctx context.Context, timeout time.Duration, fetch func(context.Context) (T, string, error), terminal func(string) bool) (T, error)

Wait polls an asynchronous read operation for a caller-selected 1s–2m bound.

Types

type APIError

type APIError struct {
	Status                 int
	Type, Title, RequestID string
}

func (*APIError) Error

func (e *APIError) Error() string

type Client

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

func NewClient

func NewClient(profile Profile, tenant string, transport *http.Client) (*Client, error)

NewClient accepts a preconfigured shared machine client; injectable for offline fixtures.

func NewMachineClient

func NewMachineClient(profile Profile, tenant string, config machine.Config) (*Client, error)

func (*Client) CreateDraft

func (*Client) GetCredentialOperation

func (c *Client) GetCredentialOperation(ctx context.Context, productId genprod.ID, intakeId genprod.ID, params *genprod.GetCredentialOperationParams) (*genprod.GetCredentialOperationResponse, error)

func (*Client) GetDelegatedReview

func (c *Client) GetDelegatedReview(ctx context.Context, productId genprod.ID, reviewId genprod.ID, params *genprod.GetDelegatedReviewParams) (*genprod.GetDelegatedReviewResponse, error)

func (*Client) GetDraft

func (c *Client) GetDraft(ctx context.Context, productId genprod.ID, draftId genprod.ID, params *genprod.GetDraftParams) (*genprod.GetDraftResponse, error)

func (*Client) GetDraftRevision

func (c *Client) GetDraftRevision(ctx context.Context, productId genprod.ID, draftId genprod.ID, revision genprod.Revision, params *genprod.GetDraftRevisionParams) (*genprod.GetDraftRevisionResponse, error)

func (*Client) GetEBilanzMapping

func (c *Client) GetEBilanzMapping(ctx context.Context, productId genprod.ID, mappingId genprod.MappingID, params *genprod.GetEBilanzMappingParams) (*genprod.GetEBilanzMappingResponse, error)

func (*Client) GetEBilanzMappingCatalog

func (c *Client) GetEBilanzMappingCatalog(ctx context.Context, productId genprod.ID, params *genprod.GetEBilanzMappingCatalogParams) (*genprod.GetEBilanzMappingCatalogResponse, error)

func (*Client) GetEBilanzMappingRevision

func (c *Client) GetEBilanzMappingRevision(ctx context.Context, productId genprod.ID, mappingId genprod.MappingID, revision genprod.Revision, params *genprod.GetEBilanzMappingRevisionParams) (*genprod.GetEBilanzMappingRevisionResponse, error)

func (*Client) GetEricTestSimulation

func (c *Client) GetEricTestSimulation(ctx context.Context, tenantId gentest.Tenant, productId gentest.Product, simulationId openapi_types.UUID, params *gentest.GetEricTestSimulationParams) (*gentest.GetEricTestSimulationResponse, error)

func (*Client) GetFilingConsent

func (c *Client) GetFilingConsent(ctx context.Context, productId genprod.ID, consentId genprod.ID, params *genprod.GetFilingConsentParams) (*genprod.GetFilingConsentResponse, error)

func (*Client) GetPreparation

func (c *Client) GetPreparation(ctx context.Context, productId genprod.ID, preparationId genprod.ID, params *genprod.GetPreparationParams) (*genprod.GetPreparationResponse, error)

func (*Client) GetProfile

func (c *Client) GetProfile(ctx context.Context, productId genprod.ID, version genprod.ProfileVersion, params *genprod.GetProfileParams) (*genprod.GetProfileResponse, error)

func (*Client) GetRetrievalArtifact

func (c *Client) GetRetrievalArtifact(ctx context.Context, productId genprod.ID, artifactId genprod.ID, params *genprod.GetRetrievalArtifactParams) (*genprod.GetRetrievalArtifactResponse, error)

func (*Client) GetRetrievalDecryption

func (c *Client) GetRetrievalDecryption(ctx context.Context, productId genprod.ID, decryptionId genprod.ID, params *genprod.GetRetrievalDecryptionParams) (*genprod.GetRetrievalDecryptionResponse, error)

func (*Client) GetSimulation

func (c *Client) GetSimulation(ctx context.Context, product, simulation uuid.UUID) (Simulation, error)

GetSimulation reads the immutable result of a synthetic test fixture.

func (*Client) GetSoftwareCredential

func (c *Client) GetSoftwareCredential(ctx context.Context, productId genprod.ID, credentialId genprod.ID, params *genprod.GetSoftwareCredentialParams) (*genprod.GetSoftwareCredentialResponse, error)

func (*Client) GetUStVADerivedRules

func (c *Client) GetUStVADerivedRules(ctx context.Context, productId genprod.ID, params *genprod.GetUStVADerivedRulesParams) (*genprod.GetUStVADerivedRulesResponse, error)

func (*Client) GetUStVAFieldCatalog

func (c *Client) GetUStVAFieldCatalog(ctx context.Context, productId genprod.ID, params *genprod.GetUStVAFieldCatalogParams) (*genprod.GetUStVAFieldCatalogResponse, error)

func (*Client) GetUStVAMapping

func (c *Client) GetUStVAMapping(ctx context.Context, productId genprod.ID, mappingId genprod.MappingID, params *genprod.GetUStVAMappingParams) (*genprod.GetUStVAMappingResponse, error)

func (*Client) GetUStVAMappingRevision

func (c *Client) GetUStVAMappingRevision(ctx context.Context, productId genprod.ID, mappingId genprod.MappingID, revision genprod.Revision, params *genprod.GetUStVAMappingRevisionParams) (*genprod.GetUStVAMappingRevisionResponse, error)

func (*Client) GetUserNotices

func (c *Client) GetUserNotices(ctx context.Context, productId genprod.ID, params *genprod.GetUserNoticesParams) (*genprod.GetUserNoticesResponse, error)

func (*Client) GetUtility

func (c *Client) GetUtility(ctx context.Context, productId genprod.ID, utilityId genprod.ID, params *genprod.GetUtilityParams) (*genprod.GetUtilityResponse, error)

func (*Client) GetValidation

func (c *Client) GetValidation(ctx context.Context, productId genprod.ID, validationId genprod.ID, params *genprod.GetValidationParams) (*genprod.GetValidationResponse, error)

func (*Client) ReviseDraft

func (*Client) RevokeSoftwareCredential

func (c *Client) RevokeSoftwareCredential(ctx context.Context, productId genprod.ID, credentialId genprod.ID, params *genprod.RevokeSoftwareCredentialParams) (*genprod.RevokeSoftwareCredentialResponse, error)

func (*Client) Simulate

func (c *Client) Simulate(ctx context.Context, product uuid.UUID, fixture SimulationFixture, idempotencyKey string) (Simulation, error)

Simulate creates one allowed test fixture; it never calls the production API.

type Profile

type Profile string
const (
	Production Profile = "production"
	Test       Profile = "test"
)

func (Profile) Base

func (p Profile) Base() (string, error)

func (Profile) Resource

func (p Profile) Resource() (string, error)

type Simulation

type Simulation struct {
	ID        uuid.UUID         `json:"id"`
	Fixture   SimulationFixture `json:"fixture"`
	Status    string            `json:"status"`
	Outcome   SimulationOutcome `json:"outcome"`
	Simulated bool              `json:"simulated"`
}

type SimulationFixture

type SimulationFixture string

Simulation is the deterministic, synthetic-only ERiC test result.

type SimulationOutcome

type SimulationOutcome string

Directories

Path Synopsis
examples
fixture command
Offline ERiC example: production notice read and both test simulations.
Offline ERiC example: production notice read and both test simulations.
Package genprod provides primitives to interact with the openapi HTTP API.
Package genprod provides primitives to interact with the openapi HTTP API.
Package gentest provides primitives to interact with the openapi HTTP API.
Package gentest provides primitives to interact with the openapi HTTP API.

Jump to

Keyboard shortcuts

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