Documentation ¶
Index ¶
- Constants
- Variables
- type Barcode
- type BarcodeFormat
- type Beacon
- type BoardingPass
- type Coupon
- type DataDetectorType
- type DateStyle
- type EventTicket
- type EventType
- type Field
- type FolderPassTemplate
- type 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 InMemoryPassTemplate
- func (m *InMemoryPassTemplate) AddAllFiles(directoryWithFilesToAdd string) error
- func (m *InMemoryPassTemplate) AddFileBytes(name string, data []byte)
- func (m *InMemoryPassTemplate) AddFileBytesLocalized(name, locale string, data []byte)
- func (m *InMemoryPassTemplate) AddFileFromURL(name string, u url.URL) error
- func (m *InMemoryPassTemplate) AddFileFromURLLocalized(name, locale string, u url.URL) error
- func (m *InMemoryPassTemplate) GetAllFiles() (map[string][]byte, error)
- func (m *InMemoryPassTemplate) ProvisionPassAtDirectory(tmpDirPath string) error
- type Location
- type NFC
- type NumberStyle
- type PWAssociatedApp
- type Pass
- 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
- type PassTemplate
- type Personalization
- type SemanticTag
- type SemanticTagCurrencyAmount
- type SemanticTagLocation
- type SemanticTagPersonNameComponents
- type SemanticTagSeat
- type SemanticTagWifiNetwork
- type Signer
- type SigningInformation
- type StoreCard
- type TextAlignment
- type TransitType
- type Validateable
Constants ¶
const ( TextAlignmentLeft TextAlignment = "PKTextAlignmentLeft" TextAlignmentCenter TextAlignment = "PKTextAlignmentCenter" TextAlignmentRight TextAlignment = "PKTextAlignmentRight" TextAlignmentNatural TextAlignment = "PKTextAlignmentNatural" BarcodeFormatQR BarcodeFormat = "PKBarcodeFormatQR" BarcodeFormatPDF417 BarcodeFormat = "PKBarcodeFormatPDF417" BarcodeFormatAztec BarcodeFormat = "PKBarcodeFormatAztec" BarcodeFormatCode128 BarcodeFormat = "PKBarcodeFormatCode128" DataDetectorTypePhoneNumber DataDetectorType = "PKDataDetectorTypePhoneNumber" DataDetectorTypeLink DataDetectorType = "PKDataDetectorTypeLink" DataDetectorTypeAddress DataDetectorType = "PKDataDetectorTypeAddress" DataDetectorTypeCalendarEvent DataDetectorType = "PKDataDetectorTypeCalendarEvent" DateStyleNone DateStyle = "PKDateStyleNone" DateStyleShort DateStyle = "PKDateStyleShort" DateStyleMedium DateStyle = "PKDateStyleMedium" DateStyleLong DateStyle = "PKDateStyleLong" DateStyleFull DateStyle = "PKDateStyleFull" NumberStyleDecimal NumberStyle = "PKNumberStyleDecimal" NumberStylePercent NumberStyle = "PKNumberStylePercent" NumberStyleScientific NumberStyle = "PKNumberStyleScientific" NumberStyleSpellOut NumberStyle = "PKNumberStyleSpellOut" PassPersonalizationFieldName PassPersonalizationField = "PKPassPersonalizationFieldName" PassPersonalizationFieldPostalCode PassPersonalizationField = "PKPassPersonalizationFieldPostalCode" PassPersonalizationFieldEmailAddress PassPersonalizationField = "PKPassPersonalizationFieldEmailAddress" PassPersonalizationFieldPhoneNumber PassPersonalizationField = "PKPassPersonalizationFieldPhoneNumber" TransitTypeAir TransitType = "PKTransitTypeAir" TransitTypeBoat TransitType = "PKTransitTypeBoat" TransitTypeBus TransitType = "PKTransitTypeBus" TransitTypeGeneric TransitType = "PKTransitTypeGeneric" TransitTypeTrain TransitType = "PKTransitTypeTrain" EventTypeGeneric EventType = "PKEventTypeGeneric" EventTypeLivePerformance EventType = "PKEventTypeLivePerformance" EventTypeMovie EventType = "PKEventTypeMovie" EventTypeSports EventType = "PKEventTypeSports" EventTypeConference EventType = "PKEventTypeConference" EventTypeConvention EventType = "PKEventTypeConvention" EventTypeWorkshop EventType = "PKEventTypeWorkshop" EventTypeSocialGathering EventType = "PKEventTypeSocialGathering" )
const ( BundleIconRetinaHD = "icon@3x.png" BundleIconRetina = "icon@2x.png" BundleIcon = "icon.png" BundleLogoRetinaHD = "logo@3x.png" BundleLogoRetina = "logo@2x.png" BundleLogo = "logo.png" BundleThumbnailRetinaHD = "thumbnail@3x.png" BundleThumbnailRetina = "thumbnail@2x.png" BundleThumbnail = "thumbnail.png" BundleStripRetinaHD = "strip@3x.png" BundleStripRetina = "strip@2x.png" BundleStrip = "strip.png" BundleBackgroundRetinaHD = "background@3x.png" BundleBackgroundRetina = "background@2x.png" BundleBackground = "background.png" BundlePersonalizationLogoRetinaHD = "personalizationLogo@3x.png" BundlePersonalizationLogoRetina = "personalizationLogo@2x.png" BundlePersonalizationLogo = "personalizationLogo.png" )
Variables ¶
var (
BarcodeTypesBeforeIos9 = [3]BarcodeFormat{BarcodeFormatQR, BarcodeFormatPDF417, BarcodeFormatAztec}
)
Functions ¶
This section is empty.
Types ¶
type Barcode ¶
type Barcode struct { Format BarcodeFormat `json:"format,omitempty"` AltText string `json:"altText,omitempty"` Message string `json:"message,omitempty"` MessageEncoding string `json:"messageEncoding,omitempty"` }
Barcode Representation of https://developer.apple.com/documentation/walletpasses/pass/barcodes
func (*Barcode) GetValidationErrors ¶
type BarcodeFormat ¶
type BarcodeFormat string
type Beacon ¶
type Beacon struct { Major int `json:"major,omitempty"` Minor int `json:"minor,omitempty"` ProximityUUID string `json:"proximityUUID,omitempty"` RelevantText string `json:"relevantText,omitempty"` }
Beacon Representation of https://developer.apple.com/documentation/walletpasses/pass/beacons
func (*Beacon) GetValidationErrors ¶
type BoardingPass ¶
type BoardingPass struct { *GenericPass TransitType TransitType `json:"transitType,omitempty"` }
BoardingPass Representation of https://developer.apple.com/documentation/walletpasses/pass/boardingpass
func NewBoardingPass ¶
func NewBoardingPass(transitType TransitType) *BoardingPass
func (*BoardingPass) GetValidationErrors ¶
func (b *BoardingPass) GetValidationErrors() []string
func (*BoardingPass) IsValid ¶
func (b *BoardingPass) IsValid() bool
type Coupon ¶
type Coupon struct {
*GenericPass
}
Coupon Representation of https://developer.apple.com/documentation/walletpasses/pass/coupon
type DataDetectorType ¶
type DataDetectorType string
type EventTicket ¶
type EventTicket struct {
*GenericPass
}
EventTicket Representation of https://developer.apple.com/documentation/walletpasses/pass/eventticket
func NewEventTicket ¶
func NewEventTicket() *EventTicket
type Field ¶
type Field struct { Key string `json:"key,omitempty"` Label string `json:"label,omitempty"` Value interface{} `json:"value,omitempty"` AttributedValue interface{} `json:"attributedValue,omitempty"` ChangeMessage string `json:"changeMessage,omitempty"` TextAlignment TextAlignment `json:"textAlignment,omitempty"` DataDetectorTypes []DataDetectorType `json:"dataDetectorTypes,omitempty"` CurrencyCode string `json:"currencyCode,omitempty"` NumberStyle NumberStyle `json:"numberStyle,omitempty"` DateStyle DateStyle `json:"dateStyle,omitempty"` TimeStyle DateStyle `json:"timeStyle,omitempty"` IsRelative bool `json:"isRelative,omitempty"` IgnoreTimeZone bool `json:"ignoresTimeZone,omitempty"` Semantics *SemanticTag `json:"semantics,omitempty"` Row int `json:"row,omitempty"` }
Field Representation of https://developer.apple.com/documentation/walletpasses/passfieldcontent
func (*Field) GetValidationErrors ¶
type FolderPassTemplate ¶
type FolderPassTemplate struct {
// contains filtered or unexported fields
}
func NewFolderPassTemplate ¶
func NewFolderPassTemplate(templateDir string) *FolderPassTemplate
func (*FolderPassTemplate) GetAllFiles ¶
func (f *FolderPassTemplate) GetAllFiles() (map[string][]byte, error)
func (*FolderPassTemplate) ProvisionPassAtDirectory ¶
func (f *FolderPassTemplate) ProvisionPassAtDirectory(tmpDirPath string) error
type GenericPass ¶
type GenericPass struct { HeaderFields []Field `json:"headerFields,omitempty"` PrimaryFields []Field `json:"primaryFields,omitempty"` SecondaryFields []Field `json:"secondaryFields,omitempty"` AuxiliaryFields []Field `json:"auxiliaryFields,omitempty"` BackFields []Field `json:"backFields,omitempty"` }
GenericPass Representation of https://developer.apple.com/documentation/walletpasses/pass/generic
func NewGenericPass ¶
func NewGenericPass() *GenericPass
func (*GenericPass) AddAuxiliaryFields ¶
func (gp *GenericPass) AddAuxiliaryFields(field Field)
func (*GenericPass) AddBackFields ¶
func (gp *GenericPass) AddBackFields(field Field)
func (*GenericPass) AddHeaderField ¶
func (gp *GenericPass) AddHeaderField(field Field)
func (*GenericPass) AddPrimaryFields ¶
func (gp *GenericPass) AddPrimaryFields(field Field)
func (*GenericPass) AddSecondaryFields ¶
func (gp *GenericPass) AddSecondaryFields(field Field)
func (*GenericPass) GetValidationErrors ¶
func (gp *GenericPass) GetValidationErrors() []string
func (*GenericPass) IsValid ¶
func (gp *GenericPass) IsValid() bool
type InMemoryPassTemplate ¶
type InMemoryPassTemplate struct {
// contains filtered or unexported fields
}
func NewInMemoryPassTemplate ¶
func NewInMemoryPassTemplate() *InMemoryPassTemplate
func (*InMemoryPassTemplate) AddAllFiles ¶
func (m *InMemoryPassTemplate) AddAllFiles(directoryWithFilesToAdd string) error
func (*InMemoryPassTemplate) AddFileBytes ¶
func (m *InMemoryPassTemplate) AddFileBytes(name string, data []byte)
func (*InMemoryPassTemplate) AddFileBytesLocalized ¶
func (m *InMemoryPassTemplate) AddFileBytesLocalized(name, locale string, data []byte)
func (*InMemoryPassTemplate) AddFileFromURL ¶
func (m *InMemoryPassTemplate) AddFileFromURL(name string, u url.URL) error
func (*InMemoryPassTemplate) AddFileFromURLLocalized ¶
func (m *InMemoryPassTemplate) AddFileFromURLLocalized(name, locale string, u url.URL) error
func (*InMemoryPassTemplate) GetAllFiles ¶
func (m *InMemoryPassTemplate) GetAllFiles() (map[string][]byte, error)
func (*InMemoryPassTemplate) ProvisionPassAtDirectory ¶
func (m *InMemoryPassTemplate) ProvisionPassAtDirectory(tmpDirPath string) error
type Location ¶
type Location struct { Latitude float64 `json:"latitude,omitempty"` Longitude float64 `json:"longitude,omitempty"` Altitude float64 `json:"altitude,omitempty"` RelevantText string `json:"relevantText,omitempty"` }
Location Representation of https://developer.apple.com/documentation/walletpasses/pass/locations
func (*Location) GetValidationErrors ¶
type NFC ¶
type NFC struct { Message string `json:"message,omitempty"` EncryptionPublicKey string `json:"encryptionPublicKey,omitempty"` RequiresAuthentication bool `json:"requiresAuthentication,omitempty"` }
NFC Representation of https://developer.apple.com/documentation/walletpasses/pass/nfc
type NumberStyle ¶
type NumberStyle string
type PWAssociatedApp ¶
func (*PWAssociatedApp) GetValidationErrors ¶
func (a *PWAssociatedApp) GetValidationErrors() []string
func (*PWAssociatedApp) IsValid ¶
func (a *PWAssociatedApp) IsValid() bool
type Pass ¶
type Pass struct { FormatVersion int `json:"formatVersion,omitempty"` SerialNumber string `json:"serialNumber,omitempty"` PassTypeIdentifier string `json:"passTypeIdentifier,omitempty"` WebServiceURL string `json:"webServiceURL,omitempty"` AuthenticationToken string `json:"authenticationToken,omitempty"` Description string `json:"description,omitempty"` TeamIdentifier string `json:"teamIdentifier,omitempty"` OrganizationName string `json:"organizationName,omitempty"` LogoText string `json:"logoText,omitempty"` ForegroundColor string `json:"foregroundColor,omitempty"` BackgroundColor string `json:"backgroundColor,omitempty"` LabelColor string `json:"labelColor,omitempty"` GroupingIdentifier string `json:"groupingIdentifier,omitempty"` Beacons []Beacon `json:"beacons,omitempty"` Locations []Location `json:"locations,omitempty"` Barcodes []Barcode `json:"barcodes,omitempty"` EventTicket *EventTicket `json:"eventTicket,omitempty"` Coupon *Coupon `json:"coupon,omitempty"` StoreCard *StoreCard `json:"storeCard,omitempty"` BoardingPass *BoardingPass `json:"boardingPass,omitempty"` Generic *GenericPass `json:"generic,omitempty"` AppLaunchURL string `json:"appLaunchURL,omitempty"` AssociatedStoreIdentifiers []int64 `json:"associatedStoreIdentifiers,omitempty"` UserInfo map[string]interface{} `json:"userInfo,omitempty"` MaxDistance int64 `json:"maxDistance,omitempty"` RelevantDate *time.Time `json:"relevantDate,omitempty"` ExpirationDate *time.Time `json:"expirationDate,omitempty"` Voided bool `json:"voided,omitempty"` Nfc *NFC `json:"nfc,omitempty"` SharingProhibited bool `json:"sharingProhibited,omitempty"` Semantics *SemanticTag `json:"semantics,omitempty"` // contains filtered or unexported fields }
Pass Representation of https://developer.apple.com/documentation/walletpasses/pass
func (*Pass) GetValidationErrors ¶
func (*Pass) SetBackgroundColorHex ¶
func (*Pass) SetBackgroundColorRGB ¶
func (*Pass) SetForegroundColorHex ¶
func (*Pass) SetForegroundColorRGB ¶
func (*Pass) SetLabelColorHex ¶
func (*Pass) SetLabelColorRGB ¶
type PassPersonalizationField ¶
type PassPersonalizationField string
type PassTemplate ¶
type Personalization ¶
type Personalization struct { RequiredPersonalizationFields []PassPersonalizationField `json:"requiredPersonalizationFields"` Description string `json:"description"` TermsAndConditions string `json:"termsAndConditions"` }
Personalization Representation of https://developer.apple.com/documentation/walletpasses/personalize
func (*Personalization) GetValidationErrors ¶
func (pz *Personalization) GetValidationErrors() []string
func (*Personalization) IsValid ¶
func (pz *Personalization) IsValid() bool
type SemanticTag ¶
type SemanticTag struct { AirlineCode string `json:"airlineCode,omitempty"` ArtistIds []string `json:"artistIDs,omitempty"` AwayTeamAbbreviation string `json:"awayTeamAbbreviation,omitempty"` AwayTeamLocation string `json:"awayTeamLocation,omitempty"` AwayTeamName string `json:"awayTeamName,omitempty"` Balance *SemanticTagCurrencyAmount `json:"currency,omitempty"` BoardingGroup string `json:"boardingGroup,omitempty"` BoardingSequenceNumber string `json:"boardingSequenceNumber,omitempty"` CarNumber string `json:"carNumber,omitempty"` ConfirmationNumber string `json:"confirmationNumber,omitempty"` CurrentArrivalDate *time.Time `json:"currentArrivalDate,omitempty"` CurrentBoardingDate *time.Time `json:"currentBoardingDate,omitempty"` CurrentDepartureDate *time.Time `json:"currentDepartureDate,omitempty"` DepartureAirportCode string `json:"departureAirportCode,omitempty"` DepartureAirportName string `json:"departureAirportName,omitempty"` DepartureGate string `json:"departureGate,omitempty"` DepartureLocation *SemanticTagLocation `json:"departureLocation,omitempty"` DepartureLocationDescription string `json:"departureLocationDescription,omitempty"` DeparturePlatform string `json:"departurePlatform,omitempty"` DepartureStationName string `json:"departureStationName,omitempty"` DepartureTerminal string `json:"departureTerminal,omitempty"` DestinationAirportCode string `json:"destinationAirportCode,omitempty"` DestinationAirportName string `json:"destinationAirportName,omitempty"` DestinationGate string `json:"destinationGate,omitempty"` DestinationLocation *SemanticTagLocation `json:"destinationLocation,omitempty"` DestinationLocationDescription string `json:"destinationLocationDescription,omitempty"` DestinationPlatform string `json:"destinationPlatform,omitempty"` DestinationStationName string `json:"destinationStationName,omitempty"` DestinationTerminal string `json:"destinationTerminal,omitempty"` Duration *uint64 `json:"duration,omitempty"` EventEndDate *time.Time `json:"eventEndDate,omitempty"` EventName string `json:"eventName,omitempty"` EventStartDate *time.Time `json:"eventStartDate,omitempty"` EventType EventType `json:"eventType,omitempty"` FlightCode string `json:"flightCode,omitempty"` FlightNumber string `json:"flightNumber,omitempty"` Genre string `json:"genre,omitempty"` HomeTeamAbbreviation string `json:"homeTeamAbbreviation,omitempty"` HomeTeamLocation string `json:"homeTeamLocation,omitempty"` HomeTeamName string `json:"homeTeamName,omitempty"` LeagueAbbreviation string `json:"leagueAbbreviation,omitempty"` LeagueName string `json:"leagueName,omitempty"` MembershipProgramName string `json:"membershipProgramName,omitempty"` MembershipProgramNumber string `json:"membershipProgramNumber,omitempty"` OriginalArrivalDate *time.Time `json:"originalArrivalDate,omitempty"` OriginalBoardingDate *time.Time `json:"originalBoardingDate,omitempty"` OriginalDepartureDate *time.Time `json:"originalDepartureDate,omitempty"` PassengerName *SemanticTagPersonNameComponents `json:"passengerName,omitempty"` PerformerNames string `json:"performerNames,omitempty"` PriorityStatus string `json:"priorityStatus,omitempty"` Seats []SemanticTagSeat `json:"seats,omitempty"` SecurityScreening string `json:"securityScreening,omitempty"` SilenceRequested bool `json:"silenceRequested,omitempty"` SportName string `json:"sportName,omitempty"` TotalPrice *SemanticTagCurrencyAmount `json:"totalPrice,omitempty"` TransitProvider string `json:"transitProvider,omitempty"` TransitStatus string `json:"transitStatus,omitempty"` TransitStatusReason string `json:"transitStatusReason,omitempty"` VehicleName string `json:"vehicleName,omitempty"` VehicleNumber string `json:"vehicleNumber,omitempty"` VehicleType string `json:"vehicleType,omitempty"` VenueEntrance string `json:"venueEntrance,omitempty"` VenueLocation *SemanticTagLocation `json:"venueLocation,omitempty"` VenueName string `json:"venueName,omitempty"` VenuePhoneNumber string `json:"venuePhoneNumber,omitempty"` VenueRoom string `json:"venueRoom,omitempty"` WifiAccess *SemanticTagWifiNetwork `json:"wifiAccess,omitempty"` }
SemanticTag Representation of https://developer.apple.com/documentation/walletpasses/semantictags
func (*SemanticTag) GetValidationErrors ¶
func (s *SemanticTag) GetValidationErrors() []string
func (*SemanticTag) IsValid ¶
func (s *SemanticTag) IsValid() bool
type SemanticTagCurrencyAmount ¶
type SemanticTagCurrencyAmount struct { Amount string `json:"amount"` CurrencyCode string `json:"currencyCode"` }
SemanticTagCurrencyAmount Representation of https://developer.apple.com/documentation/walletpasses/semantictagtype/currencyamount
func (*SemanticTagCurrencyAmount) GetValidationErrors ¶
func (s *SemanticTagCurrencyAmount) GetValidationErrors() []string
func (*SemanticTagCurrencyAmount) IsValid ¶
func (s *SemanticTagCurrencyAmount) IsValid() bool
type SemanticTagLocation ¶
type SemanticTagLocation struct { Latitude float64 `json:"latitude"` Longitude float64 `json:"longitude"` }
SemanticTagLocation Representation of https://developer.apple.com/documentation/walletpasses/semantictagtype/location
func (*SemanticTagLocation) GetValidationErrors ¶
func (l *SemanticTagLocation) GetValidationErrors() []string
func (*SemanticTagLocation) IsValid ¶
func (l *SemanticTagLocation) IsValid() bool
type SemanticTagPersonNameComponents ¶
type SemanticTagPersonNameComponents struct { FamilyName string `json:"familyName,omitempty"` GivenName string `json:"givenName,omitempty"` MiddleName string `json:"middleName,omitempty"` NamePrefix string `json:"namePrefix,omitempty"` NameSuffix string `json:"nameSuffix,omitempty"` Nickname string `json:"nickname,omitempty"` PhoneticRepresentation string `json:"phoneticRepresentation,omitempty"` }
SemanticTagPersonNameComponents Representation of https://developer.apple.com/documentation/walletpasses/semantictagtype/personnamecomponents
func (*SemanticTagPersonNameComponents) GetValidationErrors ¶
func (l *SemanticTagPersonNameComponents) GetValidationErrors() []string
func (*SemanticTagPersonNameComponents) IsValid ¶
func (l *SemanticTagPersonNameComponents) IsValid() bool
type SemanticTagSeat ¶
type SemanticTagSeat struct { SeatDescription string `json:"seatDescription,omitempty"` SeatIdentifier string `json:"seatIdentifier,omitempty"` SeatNumber string `json:"seatNumber,omitempty"` SeatRow string `json:"seatRow,omitempty"` SeatSection string `json:"seatSection,omitempty"` SeatType string `json:"seatType,omitempty"` }
SemanticTagSeat Representation of https://developer.apple.com/documentation/walletpasses/semantictagtype/seat
func (*SemanticTagSeat) GetValidationErrors ¶
func (l *SemanticTagSeat) GetValidationErrors() []string
func (*SemanticTagSeat) IsValid ¶
func (l *SemanticTagSeat) IsValid() bool
type SemanticTagWifiNetwork ¶
func (*SemanticTagWifiNetwork) GetValidationErrors ¶
func (w *SemanticTagWifiNetwork) GetValidationErrors() []string
func (*SemanticTagWifiNetwork) IsValid ¶
func (w *SemanticTagWifiNetwork) IsValid() bool
type Signer ¶
type Signer interface { CreateSignedAndZippedPassArchive(p *Pass, t PassTemplate, i *SigningInformation) ([]byte, error) CreateSignedAndZippedPersonalizedPassArchive(p *Pass, pz *Personalization, t PassTemplate, i *SigningInformation) ([]byte, error) SignManifestFile(manifestJson []byte, i *SigningInformation) ([]byte, error) }
func NewFileBasedSigner ¶
func NewFileBasedSigner() Signer
func NewMemoryBasedSigner ¶
func NewMemoryBasedSigner() Signer
type SigningInformation ¶
type SigningInformation struct {
// contains filtered or unexported fields
}
func LoadSigningInformationFromBytes ¶
func LoadSigningInformationFromBytes(pkcs12KeyStoreFile []byte, keyStorePassword string, appleWWDRCAFile []byte) (*SigningInformation, error)
func LoadSigningInformationFromFiles ¶
func LoadSigningInformationFromFiles(pkcs12KeyStoreFilePath, keyStorePassword, appleWWDRCAFilePath string) (*SigningInformation, error)
type StoreCard ¶
type StoreCard struct {
*GenericPass
}
StoreCard Representation of https://developer.apple.com/documentation/walletpasses/pass/storecard
func NewStoreCard ¶
func NewStoreCard() *StoreCard
type TextAlignment ¶
type TextAlignment string
type TransitType ¶
type TransitType string