Documentation ¶
Overview ¶
Package api provides primitives to interact with the openapi HTTP API.
Code generated by github.com/deepmap/oapi-codegen version v1.12.4 DO NOT EDIT.
Index ¶
- func GetSwagger() (swagger *openapi3.T, err error)
- func PathToRawSpec(pathToFile string) map[string]func() ([]byte, error)
- type ApiError
- type BundleDigest
- type Certificate
- type ConsentStatus
- type JWT
- type JoinToken
- type Relationship
- type SPIFFEID
- type Signature
- type TrustBundle
- type TrustDomain
- type TrustDomainName
- type UUID
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetSwagger ¶
GetSwagger returns the Swagger specification corresponding to the generated code in this file. The external references of Swagger specification are resolved. The logic of resolving external references is tightly connected to "import-mapping" feature. Externally referenced files must be embedded in the corresponding golang packages. Urls can be supported but this task was out of the scope.
Types ¶
type BundleDigest ¶
type BundleDigest = string
BundleDigest base64 encoded SHA-256 digest of the bundle
type ConsentStatus ¶
type ConsentStatus string
ConsentStatus defines model for ConsentStatus.
const ( Approved ConsentStatus = "approved" Denied ConsentStatus = "denied" Pending ConsentStatus = "pending" )
Defines values for ConsentStatus.
type Relationship ¶
type Relationship struct { CreatedAt time.Time `json:"created_at"` Id UUID `json:"id"` TrustDomainAConsent ConsentStatus `json:"trust_domain_a_consent"` TrustDomainAId UUID `json:"trust_domain_a_id"` TrustDomainAName *TrustDomainName `json:"trust_domain_a_name,omitempty"` TrustDomainBConsent ConsentStatus `json:"trust_domain_b_consent"` TrustDomainBId UUID `json:"trust_domain_b_id"` TrustDomainBName *TrustDomainName `json:"trust_domain_b_name,omitempty"` UpdatedAt time.Time `json:"updated_at"` }
Relationship defines model for Relationship.
func MapRelationships ¶
func MapRelationships(relationships ...*entity.Relationship) []*Relationship
MapRelationships transforms a slice of Relationship entities to a slice of API Relationship representations. Parameters: - relationships: A slice of Relationship entities to be transformed. Return: A slice of API Relationship representations.
func RelationshipFromEntity ¶
func RelationshipFromEntity(entity *entity.Relationship) *Relationship
func (Relationship) ToEntity ¶
func (r Relationship) ToEntity() (*entity.Relationship, error)
type TrustDomain ¶
type TrustDomain struct { CreatedAt time.Time `json:"created_at"` Description *string `json:"description,omitempty"` HarvesterSpiffeId *SPIFFEID `json:"harvester_spiffe_id,omitempty"` Id UUID `json:"id"` Name TrustDomainName `json:"name"` // OnboardingBundle SPIFFE Trust bundle in JSON format OnboardingBundle *TrustBundle `json:"onboarding_bundle,omitempty"` UpdatedAt time.Time `json:"updated_at"` }
TrustDomain defines model for TrustDomain.
func TrustDomainFromEntity ¶
func TrustDomainFromEntity(entity *entity.TrustDomain) *TrustDomain
func (TrustDomain) ToEntity ¶
func (td TrustDomain) ToEntity() (*entity.TrustDomain, error)
type TrustDomainName ¶
type TrustDomainName = string
TrustDomainName defines model for TrustDomainName.