spaceship

package
v2.0.0-alpha.44 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 18, 2024 License: MIT Imports: 22 Imported by: 1

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

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 ...

func NewAuthClient

func NewAuthClient(client *Client) *AuthClient

NewAuthClient ...

func (*AuthClient) Login

func (c *AuthClient) Login() error

Login ...

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 appleauth.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 NewDeviceClient

func NewDeviceClient(client *Client) *DeviceClient

NewDeviceClient ...

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

func (p Profile) CertificateIDs() ([]string, error)

CertificateIDs ...

func (Profile) DeviceIDs

func (p Profile) DeviceIDs() ([]string, error)

DeviceIDs ...

func (Profile) Entitlements

func (p Profile) Entitlements() (autocodesign.Entitlements, error)

Entitlements ...

func (Profile) ID

func (p Profile) ID() string

ID ...

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 ...

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL