Documentation
¶
Index ¶
- func BuildTemplate(portalApi PortalAPI) string
- func FromApiFragmentTemplate(portalApi PortalAPI) string
- func FromApiServiceTemplate(portalApi PortalAPI) string
- func FromRestmamTemplate(portalApi PortalAPI, apiServiceXml string, apiFragmentXml string, ...) string
- func StreamFromApiFragmentTemplate(qw422016 *qt422016.Writer, portalApi PortalAPI)
- func StreamFromApiServiceTemplate(qw422016 *qt422016.Writer, portalApi PortalAPI)
- func StreamFromRestmamTemplate(qw422016 *qt422016.Writer, portalApi PortalAPI, apiServiceXml string, ...)
- func WriteFromApiFragmentTemplate(qq422016 qtio422016.Writer, portalApi PortalAPI)
- func WriteFromApiServiceTemplate(qq422016 qtio422016.Writer, portalApi PortalAPI)
- func WriteFromRestmamTemplate(qq422016 qtio422016.Writer, portalApi PortalAPI, apiServiceXml string, ...)
- type CustomField
- type PolicyTemplate
- type PolicyTemplateArg
- type PortalAPI
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildTemplate ¶
func FromApiFragmentTemplate ¶
func FromApiServiceTemplate ¶
func FromRestmamTemplate ¶
func WriteFromApiFragmentTemplate ¶
func WriteFromApiFragmentTemplate(qq422016 qtio422016.Writer, portalApi PortalAPI)
func WriteFromApiServiceTemplate ¶
func WriteFromApiServiceTemplate(qq422016 qtio422016.Writer, portalApi PortalAPI)
Types ¶
type CustomField ¶
type PolicyTemplate ¶
type PolicyTemplate struct {
Uuid string `json:"policyEntityUuid"`
ApiPolicyTemplateArguments []PolicyTemplateArg `json:"policyTemplateArguments"`
}
type PolicyTemplateArg ¶
type PortalAPI ¶
type PortalAPI struct {
TenantId string `json:"tenantId"`
Uuid string `json:"apiUuid"`
UuidStripped string `json:"apiId"` // templates have cases where uuid is stripped of -
ServiceId string `json:"serviceId"` // Portal calculates this as UUID.nameUUIDFromBytes(api.getUuid().toString().getBytes());
Name string `json:"name"`
//Description string `json:"description"`
//Type string `json:"type"`
//PortalStatus string `json:"portalStatus"`
ApiEnabled bool `json:"enabled"` // Added as a String to make it easier to use in qtpl
//AccessStatus string `json:"accessStatus"`
SsgUrl string `json:"ssgUrl"`
SsgUrlBase64 string `json:"ssgUrlEncoded"` // added as Fragment wants B64 version
LocationUrl string `json:"locationUrl"` // backend full URL
//Version string `json:"version"`
//ApiEulaUuid string `json:"apiEulaUuid"`
PublishedTs int `json:"publishedTs"`
CreateTs int `json:"createTs"`
ModifyTs int `json:"modifyTs"`
SsgServiceType string `json:"ssgServiceType"`
//ApplicationUsage int `json:"applicationUsage"`
//Tags []string `json:"tags"`
PolicyTemplates []PolicyTemplate `json:"policyEntities"` // required by qtpl templates
CustomFields []CustomField `json:"customFieldValues,omitempty"` // required by qtpl templates
//PublishedByPortal bool `json:"publishedByPortal"`
Checksum string `json:"checksum"`
}
Click to show internal directories.
Click to hide internal directories.