Documentation
¶
Overview ¶
templ: version: v0.3.1001
Index ¶
- Variables
- func APITokensContent(orgName string, orgClientCreds []cdntypes.OrgClientCredentialSafe, ...) templ.Component
- func ActivateServiceVersionContent(orgName string, serviceName string, version int64, err error) templ.Component
- func AddressesString(node cdntypes.Node) string
- func CacheNodesContent(nodes []cdntypes.CacheNodeListItem, nodeGroups []cdntypes.NodeGroup, ...) templ.Component
- func ConsoleErrorContent(errorMessage string) templ.Component
- func ConsolePage(u *url.URL, title string, ad cdntypes.AuthData, orgName string, ...) templ.Component
- func CreateAPITokenContent(orgName string, atData APITokenData) templ.Component
- func CreateCacheNodeContent(formData CacheNodeFormData) templ.Component
- func CreateDomainContent(orgName string, dData DomainData) templ.Component
- func CreateIPNetworkContent(formData IPNetworkFormData) templ.Component
- func CreateL4LBNodeContent(formData L4LBNodeFormData) templ.Component
- func CreateNodeGroupContent(formData NodeGroupFormData) templ.Component
- func CreateOrgContent(formData OrgFormData) templ.Component
- func CreateServiceContent(orgName string, err error) templ.Component
- func CreateServiceVersionContent(serviceName string, orgName string, domains []cdntypes.Domain, ...) templ.Component
- func CreateUserContent(formData UserFormData, roles []cdntypes.Role, orgs []cdntypes.Org) templ.Component
- func Dashboard(dashData cdntypes.DashboardData) templ.Component
- func DomainsContent(orgName string, domains []cdntypes.Domain, verificationTag string, ...) templ.Component
- func EditCacheNodeContent(nodeName string, formData CacheNodeFormData) templ.Component
- func EditL4LBNodeContent(nodeName string, formData L4LBNodeFormData) templ.Component
- func EditNodeGroupContent(groupName string, formData NodeGroupFormData) templ.Component
- func EditOrgContent(orgName string, formData OrgFormData) templ.Component
- func EditUserContent(formData UserFormData, roles []cdntypes.Role, orgs []cdntypes.Org, ...) templ.Component
- func IPNetworksContent(ipNetworks []cdntypes.IPNetworkListItem, flashMessages []string, ...) templ.Component
- func L4LBNodesContent(nodes []cdntypes.L4LBNodeListItem, nodeGroups []cdntypes.NodeGroup, ...) templ.Component
- func LoginPage(returnTo string, loginFailed bool) templ.Component
- func NavBar(u *url.URL, ad cdntypes.AuthData, orgName string, availableOrgNames []string) templ.Component
- func NewAPITokenContent(orgName string, newOrgCred cdntypes.NewOrgClientCredential, returnURL string) templ.Component
- func NodeGroupsContent(nodeGroups []cdntypes.NodeGroup, flashMessages []string, errorMessage string) templ.Component
- func OrgsContent(orgs []cdntypes.OrgListItem, flashMessages []string, errorMessage string) templ.Component
- func OriginFieldSet(orgName string, serviceName string, index int, numFields int, ...) templ.Component
- func ServiceContent(orgName string, serviceName string, serviceVersions []cdntypes.ServiceVersion) templ.Component
- func ServiceVersionContent(serviceName string, sv cdntypes.ServiceVersionConfig) templ.Component
- func ServicesContent(orgName string, services []ServiceEntry, flashMessages []string, ...) templ.Component
- func UsersContent(users []cdntypes.UserListItem, flashMessages []string, errorMessage string) templ.Component
- type APITokenData
- type APITokenErrors
- type APITokenFormFields
- type Breadcrumb
- type CacheNodeFormData
- type DomainData
- type DomainErrors
- type DomainFormFields
- type IPNetworkFormData
- type IPNetworkFormErrors
- type IPNetworkFormFields
- type L4LBNodeFormData
- type NodeFormErrors
- type NodeFormFields
- type NodeGroupFormData
- type NodeGroupFormErrors
- type NodeGroupFormFields
- type OrgFormData
- type OrgFormErrors
- type OrgFormFields
- type PasswordResetFormData
- type PasswordResetFormErrors
- type PasswordResetFormFields
- type ServiceEntry
- type UserFormData
- type UserFormErrors
- type UserFormFields
Constants ¶
This section is empty.
Variables ¶
View Source
var CSSFS embed.FS
View Source
var JsFS embed.FS
The "all:" prefix is needed here because by default files beginning with ‘.’ or ‘_’ are excluded and we want to include "_hyperscript.min.js"
Functions ¶
func APITokensContent ¶ added in v0.0.25
func AddressesString ¶ added in v0.0.30
AddressesString formats a node's addresses as newline-separated text for display in textarea form fields.
func CacheNodesContent ¶ added in v0.0.30
func ConsoleErrorContent ¶ added in v0.0.30
func ConsolePage ¶
func CreateAPITokenContent ¶ added in v0.0.25
func CreateAPITokenContent(orgName string, atData APITokenData) templ.Component
func CreateCacheNodeContent ¶ added in v0.0.30
func CreateCacheNodeContent(formData CacheNodeFormData) templ.Component
func CreateDomainContent ¶
func CreateDomainContent(orgName string, dData DomainData) templ.Component
func CreateIPNetworkContent ¶ added in v0.0.38
func CreateIPNetworkContent(formData IPNetworkFormData) templ.Component
func CreateL4LBNodeContent ¶ added in v0.0.30
func CreateL4LBNodeContent(formData L4LBNodeFormData) templ.Component
func CreateNodeGroupContent ¶ added in v0.0.30
func CreateNodeGroupContent(formData NodeGroupFormData) templ.Component
func CreateOrgContent ¶ added in v0.0.30
func CreateOrgContent(formData OrgFormData) templ.Component
func CreateServiceVersionContent ¶
func CreateServiceVersionContent(serviceName string, orgName string, domains []cdntypes.Domain, originGroups []cdntypes.OriginGroup, submittedData *cdntypes.CreateServiceVersionForm, vclTemplateValue string, cloneData cdntypes.ServiceVersionCloneData, err error, errDetails string) templ.Component
func CreateUserContent ¶ added in v0.0.30
func DomainsContent ¶
func EditCacheNodeContent ¶ added in v0.0.30
func EditCacheNodeContent(nodeName string, formData CacheNodeFormData) templ.Component
func EditL4LBNodeContent ¶ added in v0.0.30
func EditL4LBNodeContent(nodeName string, formData L4LBNodeFormData) templ.Component
func EditNodeGroupContent ¶ added in v0.0.30
func EditNodeGroupContent(groupName string, formData NodeGroupFormData) templ.Component
func EditOrgContent ¶ added in v0.0.30
func EditOrgContent(orgName string, formData OrgFormData) templ.Component
func EditUserContent ¶ added in v0.0.30
func EditUserContent(formData UserFormData, roles []cdntypes.Role, orgs []cdntypes.Org, authProvider string, userID string, passwordResetData PasswordResetFormData) templ.Component
func IPNetworksContent ¶ added in v0.0.38
func L4LBNodesContent ¶ added in v0.0.30
func NewAPITokenContent ¶ added in v0.0.25
func NodeGroupsContent ¶ added in v0.0.30
func OrgsContent ¶ added in v0.0.30
func OriginFieldSet ¶
func ServiceContent ¶
func ServiceVersionContent ¶
func ServiceVersionContent(serviceName string, sv cdntypes.ServiceVersionConfig) templ.Component
func ServicesContent ¶
func UsersContent ¶ added in v0.0.30
Types ¶
type APITokenData ¶ added in v0.0.25
type APITokenData struct {
APITokenFormFields
Errors APITokenErrors
}
type APITokenErrors ¶ added in v0.0.25
type APITokenErrors struct {
APITokenFormFields
ServerError string
}
type APITokenFormFields ¶ added in v0.0.25
type Breadcrumb ¶ added in v0.0.30
Breadcrumb represents one item in the breadcrumb navigation trail.
type CacheNodeFormData ¶ added in v0.0.30
type CacheNodeFormData struct {
NodeFormFields
Errors NodeFormErrors
}
type DomainData ¶
type DomainData struct {
DomainFormFields
Errors DomainErrors
}
type DomainErrors ¶
type DomainErrors struct {
DomainFormFields
ServerError string
}
type DomainFormFields ¶
type DomainFormFields struct {
FQDN string
}
type IPNetworkFormData ¶ added in v0.0.38
type IPNetworkFormData struct {
IPNetworkFormFields
Errors IPNetworkFormErrors
}
type IPNetworkFormErrors ¶ added in v0.0.38
type IPNetworkFormFields ¶ added in v0.0.38
type IPNetworkFormFields struct {
Network string
}
type L4LBNodeFormData ¶ added in v0.0.30
type L4LBNodeFormData struct {
NodeFormFields
Errors NodeFormErrors
}
type NodeFormErrors ¶ added in v0.0.30
type NodeFormFields ¶ added in v0.0.30
type NodeGroupFormData ¶ added in v0.0.30
type NodeGroupFormData struct {
NodeGroupFormFields
Errors NodeGroupFormErrors
}
type NodeGroupFormErrors ¶ added in v0.0.30
type NodeGroupFormFields ¶ added in v0.0.30
type OrgFormData ¶ added in v0.0.30
type OrgFormData struct {
OrgFormFields
Errors OrgFormErrors
}
type OrgFormErrors ¶ added in v0.0.30
type OrgFormFields ¶ added in v0.0.30
type PasswordResetFormData ¶ added in v0.0.30
type PasswordResetFormData struct {
PasswordResetFormFields
Errors PasswordResetFormErrors
}
type PasswordResetFormErrors ¶ added in v0.0.30
type PasswordResetFormFields ¶ added in v0.0.30
type PasswordResetFormFields struct {
Password string `schema:"password" validate:"required,min=15,max=64"` // #nosec G117 -- Used for form password input, never used for serialized output
ConfirmPassword string `schema:"confirm-password" validate:"required,eqfield=Password"` // #nosec G117 -- Used for form password input, never used for serialized output
}
type ServiceEntry ¶ added in v0.0.30
ServiceEntry is a console-specific view type that combines a Service with its allocated IP addresses for display on the services overview page.
type UserFormData ¶ added in v0.0.30
type UserFormData struct {
UserFormFields
Errors UserFormErrors
}
type UserFormErrors ¶ added in v0.0.30
type UserFormFields ¶ added in v0.0.30
type UserFormFields struct {
DisplayName string `schema:"display_name" validate:"required,min=1,max=63"`
Role string `schema:"role" validate:"required"`
Org string `schema:"org"`
Password string `schema:"password"` // #nosec G117 -- Used for form password input, never used for serialized output
ConfirmPassword string `schema:"confirm-password"` // #nosec G117 -- Used for form password input, never used for serialized output
}
Click to show internal directories.
Click to hide internal directories.