Versions in this module Expand all Collapse all v0 v0.0.1 Sep 23, 2022 Changes in this version + const BarcodeFormatAztec + const BarcodeFormatCode128 + const BarcodeFormatPDF417 + const BarcodeFormatQR + const BundleBackground + const BundleBackgroundRetina + const BundleBackgroundRetinaHD + const BundleFooter + const BundleFooterRetina + const BundleFooterRetinaHD + const BundleIcon + const BundleIconRetina + const BundleIconRetinaHD + const BundleLogo + const BundleLogoRetina + const BundleLogoRetinaHD + const BundlePersonalizationLogo + const BundlePersonalizationLogoRetina + const BundlePersonalizationLogoRetinaHD + const BundleStrip + const BundleStripRetina + const BundleStripRetinaHD + const BundleThumbnail + const BundleThumbnailRetina + const BundleThumbnailRetinaHD + const DataDetectorTypeAddress + const DataDetectorTypeCalendarEvent + const DataDetectorTypeLink + const DataDetectorTypePhoneNumber + const DateStyleFull + const DateStyleLong + const DateStyleMedium + const DateStyleNone + const DateStyleShort + const NumberStyleDecimal + const NumberStylePercent + const NumberStyleScientific + const NumberStyleSpellOut + const PassPersonalizationFieldEmailAddress + const PassPersonalizationFieldName + const PassPersonalizationFieldPhoneNumber + const PassPersonalizationFieldPostalCode + const TextAlignmentCenter + const TextAlignmentLeft + const TextAlignmentNatural + const TextAlignmentRight + const TransitTypeAir + const TransitTypeBoat + const TransitTypeBus + const TransitTypeGeneric + const TransitTypeTrain + var BarcodeTypesBeforeIos9 = [3]BarcodeFormat + func NewFolderPassTemplate(templateDir string) *folderPassTemplate + func NewInMemoryPassTemplate() *inMemoryPassTemplate + type Barcode struct + AltText string + Format BarcodeFormat + Message string + MessageEncoding string + func (b *Barcode) GetValidationErrors() []string + func (b *Barcode) IsValid() bool + type BarcodeFormat string + type Beacon struct + Major int + Minor int + ProximityUUID string + RelevantText string + func (b *Beacon) GetValidationErrors() []string + func (b *Beacon) IsValid() bool + type BoardingPass struct + TransitType TransitType + func NewBoardingPass(transitType TransitType) *BoardingPass + func (b *BoardingPass) GetValidationErrors() []string + func (b *BoardingPass) IsValid() bool + type Coupon struct + func NewCoupon() *Coupon + type DataDetectorType string + type DateStyle string + type EventTicket struct + func NewEventTicket() *EventTicket + type Field struct + AttributedValue interface{} + ChangeMessage string + CurrencyCode string + DataDetectorTypes []DataDetectorType + DateStyle DateStyle + IgnoreTimeZone bool + IsRelative bool + Key string + Label string + NumberStyle NumberStyle + TextAlignment TextAlignment + TimeStyle DateStyle + Value interface{} + func (f *Field) GetValidationErrors() []string + func (f *Field) IsValid() bool + type GenericPass struct + AuxiliaryFields []Field + BackFields []Field + HeaderFields []Field + PrimaryFields []Field + SecondaryFields []Field + func NewGenericPass() *GenericPass + func (gp *GenericPass) AddAuxiliaryFields(field Field) + func (gp *GenericPass) AddBackFields(field Field) + func (gp *GenericPass) AddHeaderField(field Field) + func (gp *GenericPass) AddPrimaryFields(field Field) + func (gp *GenericPass) AddSecondaryFields(field Field) + func (gp *GenericPass) GetValidationErrors() []string + func (gp *GenericPass) IsValid() bool + type Location struct + Altitude float64 + Latitude float64 + Longitude float64 + RelevantText string + func (l *Location) GetValidationErrors() []string + func (l *Location) IsValid() bool + type NFC struct + EncryptionPublicKey string + Message string + type NumberStyle string + type PWAssociatedApp struct + IdAmazon string + IdGooglePlay string + Title string + func (a *PWAssociatedApp) GetValidationErrors() []string + func (a *PWAssociatedApp) IsValid() bool + type Pass struct + AppLaunchURL string + AssociatedStoreIdentifiers []int64 + AuthenticationToken string + BackgroundColor string + Barcodes []Barcode + Beacons []Beacon + BoardingPass *BoardingPass + Coupon *Coupon + Description string + EventTicket *EventTicket + ExpirationDate *time.Time + ForegroundColor string + FormatVersion int + Generic *GenericPass + GroupingIdentifier string + LabelColor string + Locations []Location + LogoText string + MaxDistance int64 + Nfc *NFC + OrganizationName string + PassTypeIdentifier string + RelevantDate *time.Time + SerialNumber string + SharingProhibited bool + StoreCard *StoreCard + TeamIdentifier string + UserInfo map[string]interface{} + Voided bool + WebServiceURL string + func (p *Pass) GetValidationErrors() []string + func (p *Pass) IsValid() bool + func (p *Pass) SetBackgroundColorHex(hex string) error + func (p *Pass) SetBackgroundColorRGB(r, g, b uint8) error + func (p *Pass) SetForegroundColorHex(hex string) error + func (p *Pass) SetForegroundColorRGB(r, g, b uint8) error + func (p *Pass) SetLabelColorHex(hex string) error + func (p *Pass) SetLabelColorRGB(r, g, b uint8) error + type PassPersonalizationField string + type PassTemplate interface + GetAllFiles func() (map[string][]byte, error) + ProvisionPassAtDirectory func(tmpDirPath string) error + type Personalization struct + Description string + RequiredPersonalizationFields []PassPersonalizationField + TermsAndConditions string + func (pz *Personalization) GetValidationErrors() []string + func (pz *Personalization) IsValid() bool + type Signer interface + CreateSignedAndZippedPassArchive func(p *Pass, t PassTemplate, i *SigningInformation) ([]byte, error) + CreateSignedAndZippedPersonalizedPassArchive func(p *Pass, pz *Personalization, t PassTemplate, i *SigningInformation) ([]byte, error) + SignManifestFile func(manifestJson []byte, i *SigningInformation) ([]byte, error) + func NewFileBasedSigner() Signer + func NewMemoryBasedSigner() Signer + type SigningInformation struct + func LoadSigningInformationFromBytes(pkcs12KeyStoreFile []byte, keyStorePassword string, appleWWDRCAFile []byte) (*SigningInformation, error) + func LoadSigningInformationFromFiles(pkcs12KeyStoreFilePath, keyStorePassword, appleWWDRCAFilePath string) (*SigningInformation, error) + type StoreCard struct + func NewStoreCard() *StoreCard + type TextAlignment string + type TransitType string + type Validateable interface + GetValidationErrors func() []string + IsValid func() bool