Documentation ¶
Overview ¶
Package spaceship implements autocodesign.DevPortalClient, using Apple ID as the authentication method.
The actual calls are made by the spaceship Ruby package, this is achieved by wrapping a Ruby project.
Index ¶
- func NewSpaceshipDevportalClient(client *Client) autocodesign.DevPortalClient
- type AppInfo
- type AuthClient
- type CertificateSource
- type Client
- type DevPortalClient
- type DeviceClient
- type DeviceInfo
- type Profile
- func (p Profile) Attributes() appstoreconnect.ProfileAttributes
- func (p Profile) BundleID() (appstoreconnect.BundleID, error)
- func (p Profile) CertificateIDs() ([]string, error)
- func (p Profile) DeviceIDs() ([]string, error)
- func (p Profile) Entitlements() (autocodesign.Entitlements, error)
- func (p Profile) ID() string
- type ProfileClient
- func (c *ProfileClient) CheckBundleIDEntitlements(bundleID appstoreconnect.BundleID, appEntitlements autocodesign.Entitlements) error
- func (c *ProfileClient) CreateBundleID(bundleIDIdentifier, appIDName string) (*appstoreconnect.BundleID, error)
- func (c *ProfileClient) CreateProfile(name string, profileType appstoreconnect.ProfileType, ...) (autocodesign.Profile, error)
- func (c *ProfileClient) DeleteProfile(id string) error
- func (c *ProfileClient) FindBundleID(bundleIDIdentifier string) (*appstoreconnect.BundleID, error)
- func (c *ProfileClient) FindProfile(name string, profileType appstoreconnect.ProfileType) (autocodesign.Profile, error)
- func (c *ProfileClient) SyncBundleID(bundleID appstoreconnect.BundleID, appEntitlements autocodesign.Entitlements) error
- type ProfileInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewSpaceshipDevportalClient ¶
func NewSpaceshipDevportalClient(client *Client) autocodesign.DevPortalClient
NewSpaceshipDevportalClient ...
Types ¶
type AppInfo ¶
type AppInfo struct { ID string `json:"id"` BundleID string `json:"bundleID"` Name string `json:"name"` }
AppInfo ...
type AuthClient ¶
type AuthClient struct {
// contains filtered or unexported fields
}
AuthClient ...
type CertificateSource ¶
type CertificateSource struct {
// contains filtered or unexported fields
}
CertificateSource ...
func NewSpaceshipCertificateSource ¶
func NewSpaceshipCertificateSource(client *Client) *CertificateSource
NewSpaceshipCertificateSource ...
func (*CertificateSource) QueryAllIOSCertificates ¶
func (s *CertificateSource) QueryAllIOSCertificates() (map[appstoreconnect.CertificateType][]autocodesign.Certificate, error)
QueryAllIOSCertificates ...
func (*CertificateSource) QueryCertificateBySerial ¶
func (s *CertificateSource) QueryCertificateBySerial(serial big.Int) (autocodesign.Certificate, error)
QueryCertificateBySerial ...
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client ...
func NewClient ¶
func NewClient(authConfig devportalservice.AppleID, teamID string, cmdFactory ruby.CommandFactory) (*Client, error)
NewClient ...
type DevPortalClient ¶
type DevPortalClient struct { *AuthClient *CertificateSource *ProfileClient *DeviceClient }
DevPortalClient ...
type DeviceClient ¶
type DeviceClient struct {
// contains filtered or unexported fields
}
DeviceClient ...
func (*DeviceClient) ListDevices ¶
func (d *DeviceClient) ListDevices(udid string, platform appstoreconnect.DevicePlatform) ([]appstoreconnect.Device, error)
ListDevices ...
func (*DeviceClient) RegisterDevice ¶
func (d *DeviceClient) RegisterDevice(testDevice devportalservice.TestDevice) (*appstoreconnect.Device, error)
RegisterDevice ...
type DeviceInfo ¶
type DeviceInfo struct { ID string `json:"id"` UDID string `json:"udid"` Name string `json:"name"` Model string `json:"model"` Status appstoreconnect.Status `json:"status"` Platform appstoreconnect.BundleIDPlatform `json:"platform"` Class appstoreconnect.DeviceClass `json:"class"` }
DeviceInfo ...
type Profile ¶
type Profile struct {
// contains filtered or unexported fields
}
Profile ...
func (Profile) Attributes ¶
func (p Profile) Attributes() appstoreconnect.ProfileAttributes
Attributes ...
func (Profile) BundleID ¶
func (p Profile) BundleID() (appstoreconnect.BundleID, error)
BundleID ...
func (Profile) CertificateIDs ¶
CertificateIDs ...
func (Profile) Entitlements ¶
func (p Profile) Entitlements() (autocodesign.Entitlements, error)
Entitlements ...
type ProfileClient ¶
type ProfileClient struct {
// contains filtered or unexported fields
}
ProfileClient ...
func NewSpaceshipProfileClient ¶
func NewSpaceshipProfileClient(client *Client) *ProfileClient
NewSpaceshipProfileClient ...
func (*ProfileClient) CheckBundleIDEntitlements ¶
func (c *ProfileClient) CheckBundleIDEntitlements(bundleID appstoreconnect.BundleID, appEntitlements autocodesign.Entitlements) error
CheckBundleIDEntitlements ...
func (*ProfileClient) CreateBundleID ¶
func (c *ProfileClient) CreateBundleID(bundleIDIdentifier, appIDName string) (*appstoreconnect.BundleID, error)
CreateBundleID ...
func (*ProfileClient) CreateProfile ¶
func (c *ProfileClient) CreateProfile(name string, profileType appstoreconnect.ProfileType, bundleID appstoreconnect.BundleID, certificateIDs []string, deviceIDs []string) (autocodesign.Profile, error)
CreateProfile ...
func (*ProfileClient) DeleteProfile ¶
func (c *ProfileClient) DeleteProfile(id string) error
DeleteProfile ...
func (*ProfileClient) FindBundleID ¶
func (c *ProfileClient) FindBundleID(bundleIDIdentifier string) (*appstoreconnect.BundleID, error)
FindBundleID ...
func (*ProfileClient) FindProfile ¶
func (c *ProfileClient) FindProfile(name string, profileType appstoreconnect.ProfileType) (autocodesign.Profile, error)
FindProfile ...
func (*ProfileClient) SyncBundleID ¶
func (c *ProfileClient) SyncBundleID(bundleID appstoreconnect.BundleID, appEntitlements autocodesign.Entitlements) error
SyncBundleID ...
type ProfileInfo ¶
type ProfileInfo struct { ID string `json:"id"` UUID string `json:"uuid"` Name string `json:"name"` Status appstoreconnect.ProfileState `json:"status"` Expiry time.Time `json:"expiry"` Platform appstoreconnect.BundleIDPlatform `json:"platform"` Content string `json:"content"` AppID string `json:"app_id"` BundleID string `json:"bundle_id"` Certificates []string `json:"certificates"` Devices []string `json:"devices"` }
ProfileInfo ...