Documentation ¶
Index ¶
- type App
- type CreateReleaseResponse
- type JamfAppInformationResponse
- type JamfMobileDeviceApplication
- type JamfMobileDeviceApplicationGeneral
- type Release
- type System
- type SystemInstance
- func (sys *SystemInstance) CreateRelease(ascAppId int, version string, description string, releaseDate string, ...) (CreateReleaseResponse, error)
- func (sys *SystemInstance) GetAppById(appId string) (App, error)
- func (sys *SystemInstance) GetJamfAppInfo(bundleId string, jamfTargetSystem string) (JamfAppInformationResponse, error)
- func (sys *SystemInstance) UploadIpa(path string, jamfAppId int, jamfTargetSystem string, bundleId string, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CreateReleaseResponse ¶
type JamfAppInformationResponse ¶
type JamfAppInformationResponse struct {
MobileDeviceApplication JamfMobileDeviceApplication `json:"mobile_device_application"`
}
type JamfMobileDeviceApplication ¶
type JamfMobileDeviceApplication struct {
General JamfMobileDeviceApplicationGeneral `json:"general"`
}
type JamfMobileDeviceApplicationGeneral ¶
type JamfMobileDeviceApplicationGeneral struct {
Id int `json:"id"`
}
type Release ¶
type Release struct { ReleaseID int `json:"release_id"` AppID int `json:"app_id"` Version string `json:"version"` Description string `json:"description"` ReleaseDate time.Time `json:"release_date"` SortOrder any `json:"sort_order"` Visible bool `json:"visible"` Created time.Time `json:"created"` FileMetadata any `json:"file_metadata"` }
type System ¶
type System interface { GetAppById(appId string) (App, error) CreateRelease(ascAppId int, version string, description string, releaseDate string, visible bool) (CreateReleaseResponse, error) GetJamfAppInfo(bundleId string, jamfTargetSystem string) (JamfAppInformationResponse, error) UploadIpa(path string, jamfAppId int, jamfTargetSystem string, bundleId string, ascRelease Release) error }
type SystemInstance ¶
type SystemInstance struct {
// contains filtered or unexported fields
}
SystemInstance is the client communicating with the ASC backend
func NewSystemInstance ¶
func NewSystemInstance(client *piperHttp.Client, serverURL, token string) (*SystemInstance, error)
NewSystemInstance returns a new ASC client for communicating with the backend
func (*SystemInstance) CreateRelease ¶
func (sys *SystemInstance) CreateRelease(ascAppId int, version string, description string, releaseDate string, visible bool) (CreateReleaseResponse, error)
CreateRelease creates a release in ASC
func (*SystemInstance) GetAppById ¶
func (sys *SystemInstance) GetAppById(appId string) (App, error)
GetAppById returns the app addressed by appId from the ASC backend
func (*SystemInstance) GetJamfAppInfo ¶
func (sys *SystemInstance) GetJamfAppInfo(bundleId string, jamfTargetSystem string) (JamfAppInformationResponse, error)
GetJamfAppInfo fetches information about the app from Jamf
Click to show internal directories.
Click to hide internal directories.