Documentation ¶
Index ¶
- Constants
- func CheckResponse(r *http.Response) error
- func DoRequestWithClient(ctx context.Context, client *http.Client, req *http.Request) (*http.Response, error)
- func Int(v int) *int
- func String(v string) *string
- func Stringify(message interface{}) string
- type ArgError
- type Client
- type ClientOpt
- type EnrollmentSecret
- type EnrollmentSecretRequest
- type ErrorResponse
- type JMESPathCheck
- type JMESPathCheckCreateRequest
- type JMESPathCheckUpdateRequest
- type JMESPathChecksService
- type JMESPathChecksServiceOp
- func (s *JMESPathChecksServiceOp) Create(ctx context.Context, createRequest *JMESPathCheckCreateRequest) (*JMESPathCheck, *Response, error)
- func (s *JMESPathChecksServiceOp) Delete(ctx context.Context, jmespathCheckID int) (*Response, error)
- func (s *JMESPathChecksServiceOp) GetByID(ctx context.Context, jmespathCheckID int) (*JMESPathCheck, *Response, error)
- func (s *JMESPathChecksServiceOp) GetByName(ctx context.Context, name string) (*JMESPathCheck, *Response, error)
- func (s *JMESPathChecksServiceOp) List(ctx context.Context, opt *ListOptions) ([]JMESPathCheck, *Response, error)
- func (s *JMESPathChecksServiceOp) Update(ctx context.Context, jmespathCheckID int, ...) (*JMESPathCheck, *Response, error)
- type ListOptions
- type MDMArtifact
- type MDMArtifactRequest
- type MDMArtifactVersion
- type MDMArtifactVersionRequest
- type MDMArtifactsService
- type MDMArtifactsServiceOp
- func (s *MDMArtifactsServiceOp) Create(ctx context.Context, createRequest *MDMArtifactRequest) (*MDMArtifact, *Response, error)
- func (s *MDMArtifactsServiceOp) Delete(ctx context.Context, maID string) (*Response, error)
- func (s *MDMArtifactsServiceOp) GetByID(ctx context.Context, maID string) (*MDMArtifact, *Response, error)
- func (s *MDMArtifactsServiceOp) GetByName(ctx context.Context, name string) (*MDMArtifact, *Response, error)
- func (s *MDMArtifactsServiceOp) List(ctx context.Context, opt *ListOptions) ([]MDMArtifact, *Response, error)
- func (s *MDMArtifactsServiceOp) Update(ctx context.Context, maID string, updateRequest *MDMArtifactRequest) (*MDMArtifact, *Response, error)
- type MDMBlueprint
- type MDMBlueprintArtifact
- type MDMBlueprintArtifactRequest
- type MDMBlueprintArtifactsService
- type MDMBlueprintArtifactsServiceOp
- func (s *MDMBlueprintArtifactsServiceOp) Create(ctx context.Context, createRequest *MDMBlueprintArtifactRequest) (*MDMBlueprintArtifact, *Response, error)
- func (s *MDMBlueprintArtifactsServiceOp) Delete(ctx context.Context, mbaID int) (*Response, error)
- func (s *MDMBlueprintArtifactsServiceOp) GetByID(ctx context.Context, mbaID int) (*MDMBlueprintArtifact, *Response, error)
- func (s *MDMBlueprintArtifactsServiceOp) List(ctx context.Context, opt *ListOptions) ([]MDMBlueprintArtifact, *Response, error)
- func (s *MDMBlueprintArtifactsServiceOp) Update(ctx context.Context, mbaID int, updateRequest *MDMBlueprintArtifactRequest) (*MDMBlueprintArtifact, *Response, error)
- type MDMBlueprintRequest
- type MDMBlueprintsService
- type MDMBlueprintsServiceOp
- func (s *MDMBlueprintsServiceOp) Create(ctx context.Context, createRequest *MDMBlueprintRequest) (*MDMBlueprint, *Response, error)
- func (s *MDMBlueprintsServiceOp) Delete(ctx context.Context, mbID int) (*Response, error)
- func (s *MDMBlueprintsServiceOp) GetByID(ctx context.Context, mbID int) (*MDMBlueprint, *Response, error)
- func (s *MDMBlueprintsServiceOp) GetByName(ctx context.Context, name string) (*MDMBlueprint, *Response, error)
- func (s *MDMBlueprintsServiceOp) List(ctx context.Context, opt *ListOptions) ([]MDMBlueprint, *Response, error)
- func (s *MDMBlueprintsServiceOp) Update(ctx context.Context, mbID int, updateRequest *MDMBlueprintRequest) (*MDMBlueprint, *Response, error)
- type MDMEnterpriseApp
- type MDMEnterpriseAppRequest
- type MDMEnterpriseAppsService
- type MDMEnterpriseAppsServiceOp
- func (s *MDMEnterpriseAppsServiceOp) Create(ctx context.Context, createRequest *MDMEnterpriseAppRequest) (*MDMEnterpriseApp, *Response, error)
- func (s *MDMEnterpriseAppsServiceOp) Delete(ctx context.Context, meaID string) (*Response, error)
- func (s *MDMEnterpriseAppsServiceOp) GetByID(ctx context.Context, meaID string) (*MDMEnterpriseApp, *Response, error)
- func (s *MDMEnterpriseAppsServiceOp) List(ctx context.Context, opt *ListOptions) ([]MDMEnterpriseApp, *Response, error)
- func (s *MDMEnterpriseAppsServiceOp) Update(ctx context.Context, meaID string, updateRequest *MDMEnterpriseAppRequest) (*MDMEnterpriseApp, *Response, error)
- type MDMFileVaultConfig
- type MDMFileVaultConfigRequest
- type MDMFileVaultConfigsService
- type MDMFileVaultConfigsServiceOp
- func (s *MDMFileVaultConfigsServiceOp) Create(ctx context.Context, createRequest *MDMFileVaultConfigRequest) (*MDMFileVaultConfig, *Response, error)
- func (s *MDMFileVaultConfigsServiceOp) Delete(ctx context.Context, mfcID int) (*Response, error)
- func (s *MDMFileVaultConfigsServiceOp) GetByID(ctx context.Context, mfcID int) (*MDMFileVaultConfig, *Response, error)
- func (s *MDMFileVaultConfigsServiceOp) GetByName(ctx context.Context, name string) (*MDMFileVaultConfig, *Response, error)
- func (s *MDMFileVaultConfigsServiceOp) List(ctx context.Context, opt *ListOptions) ([]MDMFileVaultConfig, *Response, error)
- func (s *MDMFileVaultConfigsServiceOp) Update(ctx context.Context, mfcID int, updateRequest *MDMFileVaultConfigRequest) (*MDMFileVaultConfig, *Response, error)
- type MDMProfile
- type MDMProfileRequest
- type MDMProfilesService
- type MDMProfilesServiceOp
- func (s *MDMProfilesServiceOp) Create(ctx context.Context, createRequest *MDMProfileRequest) (*MDMProfile, *Response, error)
- func (s *MDMProfilesServiceOp) Delete(ctx context.Context, mpID string) (*Response, error)
- func (s *MDMProfilesServiceOp) GetByID(ctx context.Context, mpID string) (*MDMProfile, *Response, error)
- func (s *MDMProfilesServiceOp) List(ctx context.Context, opt *ListOptions) ([]MDMProfile, *Response, error)
- func (s *MDMProfilesServiceOp) Update(ctx context.Context, mpID string, updateRequest *MDMProfileRequest) (*MDMProfile, *Response, error)
- type MDMRecoveryPasswordConfig
- type MDMRecoveryPasswordConfigRequest
- type MDMRecoveryPasswordConfigsService
- type MDMRecoveryPasswordConfigsServiceOp
- func (s *MDMRecoveryPasswordConfigsServiceOp) Create(ctx context.Context, createRequest *MDMRecoveryPasswordConfigRequest) (*MDMRecoveryPasswordConfig, *Response, error)
- func (s *MDMRecoveryPasswordConfigsServiceOp) Delete(ctx context.Context, mrpcID int) (*Response, error)
- func (s *MDMRecoveryPasswordConfigsServiceOp) GetByID(ctx context.Context, mrpcID int) (*MDMRecoveryPasswordConfig, *Response, error)
- func (s *MDMRecoveryPasswordConfigsServiceOp) GetByName(ctx context.Context, name string) (*MDMRecoveryPasswordConfig, *Response, error)
- func (s *MDMRecoveryPasswordConfigsServiceOp) List(ctx context.Context, opt *ListOptions) ([]MDMRecoveryPasswordConfig, *Response, error)
- func (s *MDMRecoveryPasswordConfigsServiceOp) Update(ctx context.Context, mrpcID int, ...) (*MDMRecoveryPasswordConfig, *Response, error)
- type MDMSoftwareUpdateEnforcement
- type MDMSoftwareUpdateEnforcementRequest
- type MDMSoftwareUpdateEnforcementsService
- type MDMSoftwareUpdateEnforcementsServiceOp
- func (s *MDMSoftwareUpdateEnforcementsServiceOp) Create(ctx context.Context, createRequest *MDMSoftwareUpdateEnforcementRequest) (*MDMSoftwareUpdateEnforcement, *Response, error)
- func (s *MDMSoftwareUpdateEnforcementsServiceOp) Delete(ctx context.Context, msueID int) (*Response, error)
- func (s *MDMSoftwareUpdateEnforcementsServiceOp) GetByID(ctx context.Context, msueID int) (*MDMSoftwareUpdateEnforcement, *Response, error)
- func (s *MDMSoftwareUpdateEnforcementsServiceOp) GetByName(ctx context.Context, name string) (*MDMSoftwareUpdateEnforcement, *Response, error)
- func (s *MDMSoftwareUpdateEnforcementsServiceOp) List(ctx context.Context, opt *ListOptions) ([]MDMSoftwareUpdateEnforcement, *Response, error)
- func (s *MDMSoftwareUpdateEnforcementsServiceOp) Update(ctx context.Context, msueID int, ...) (*MDMSoftwareUpdateEnforcement, *Response, error)
- type MetaBusinessUnit
- type MetaBusinessUnitCreateRequest
- type MetaBusinessUnitUpdateRequest
- type MetaBusinessUnitsService
- type MetaBusinessUnitsServiceOp
- func (s *MetaBusinessUnitsServiceOp) Create(ctx context.Context, createRequest *MetaBusinessUnitCreateRequest) (*MetaBusinessUnit, *Response, error)
- func (s *MetaBusinessUnitsServiceOp) Delete(ctx context.Context, mbuID int) (*Response, error)
- func (s *MetaBusinessUnitsServiceOp) GetByID(ctx context.Context, mbuID int) (*MetaBusinessUnit, *Response, error)
- func (s *MetaBusinessUnitsServiceOp) GetByName(ctx context.Context, name string) (*MetaBusinessUnit, *Response, error)
- func (s *MetaBusinessUnitsServiceOp) List(ctx context.Context, opt *ListOptions) ([]MetaBusinessUnit, *Response, error)
- func (s *MetaBusinessUnitsServiceOp) Update(ctx context.Context, mbuID int, updateRequest *MetaBusinessUnitUpdateRequest) (*MetaBusinessUnit, *Response, error)
- type MonolithCatalog
- type MonolithCatalogRequest
- type MonolithCatalogsService
- type MonolithCatalogsServiceOp
- func (s *MonolithCatalogsServiceOp) Create(ctx context.Context, createRequest *MonolithCatalogRequest) (*MonolithCatalog, *Response, error)
- func (s *MonolithCatalogsServiceOp) Delete(ctx context.Context, mcID int) (*Response, error)
- func (s *MonolithCatalogsServiceOp) GetByID(ctx context.Context, mcID int) (*MonolithCatalog, *Response, error)
- func (s *MonolithCatalogsServiceOp) GetByName(ctx context.Context, name string) (*MonolithCatalog, *Response, error)
- func (s *MonolithCatalogsServiceOp) List(ctx context.Context, opt *ListOptions) ([]MonolithCatalog, *Response, error)
- func (s *MonolithCatalogsServiceOp) Update(ctx context.Context, mcID int, updateRequest *MonolithCatalogRequest) (*MonolithCatalog, *Response, error)
- type MonolithCondition
- type MonolithConditionRequest
- type MonolithConditionsService
- type MonolithConditionsServiceOp
- func (s *MonolithConditionsServiceOp) Create(ctx context.Context, createRequest *MonolithConditionRequest) (*MonolithCondition, *Response, error)
- func (s *MonolithConditionsServiceOp) Delete(ctx context.Context, mcID int) (*Response, error)
- func (s *MonolithConditionsServiceOp) GetByID(ctx context.Context, mcID int) (*MonolithCondition, *Response, error)
- func (s *MonolithConditionsServiceOp) GetByName(ctx context.Context, name string) (*MonolithCondition, *Response, error)
- func (s *MonolithConditionsServiceOp) List(ctx context.Context, opt *ListOptions) ([]MonolithCondition, *Response, error)
- func (s *MonolithConditionsServiceOp) Update(ctx context.Context, mcID int, updateRequest *MonolithConditionRequest) (*MonolithCondition, *Response, error)
- type MonolithEnrollment
- type MonolithEnrollmentRequest
- type MonolithEnrollmentsService
- type MonolithEnrollmentsServiceOp
- func (s *MonolithEnrollmentsServiceOp) Create(ctx context.Context, createRequest *MonolithEnrollmentRequest) (*MonolithEnrollment, *Response, error)
- func (s *MonolithEnrollmentsServiceOp) Delete(ctx context.Context, meID int) (*Response, error)
- func (s *MonolithEnrollmentsServiceOp) GetByID(ctx context.Context, meID int) (*MonolithEnrollment, *Response, error)
- func (s *MonolithEnrollmentsServiceOp) GetByManifestID(ctx context.Context, mID int) ([]MonolithEnrollment, *Response, error)
- func (s *MonolithEnrollmentsServiceOp) List(ctx context.Context, opt *ListOptions) ([]MonolithEnrollment, *Response, error)
- func (s *MonolithEnrollmentsServiceOp) Update(ctx context.Context, meID int, updateRequest *MonolithEnrollmentRequest) (*MonolithEnrollment, *Response, error)
- type MonolithManifest
- type MonolithManifestCatalog
- type MonolithManifestCatalogRequest
- type MonolithManifestCatalogsService
- type MonolithManifestCatalogsServiceOp
- func (s *MonolithManifestCatalogsServiceOp) Create(ctx context.Context, createRequest *MonolithManifestCatalogRequest) (*MonolithManifestCatalog, *Response, error)
- func (s *MonolithManifestCatalogsServiceOp) Delete(ctx context.Context, mmcID int) (*Response, error)
- func (s *MonolithManifestCatalogsServiceOp) GetByCatalogID(ctx context.Context, mcID int) ([]MonolithManifestCatalog, *Response, error)
- func (s *MonolithManifestCatalogsServiceOp) GetByID(ctx context.Context, mmcID int) (*MonolithManifestCatalog, *Response, error)
- func (s *MonolithManifestCatalogsServiceOp) GetByManifestID(ctx context.Context, mmID int) ([]MonolithManifestCatalog, *Response, error)
- func (s *MonolithManifestCatalogsServiceOp) List(ctx context.Context, opt *ListOptions) ([]MonolithManifestCatalog, *Response, error)
- func (s *MonolithManifestCatalogsServiceOp) Update(ctx context.Context, mmcID int, updateRequest *MonolithManifestCatalogRequest) (*MonolithManifestCatalog, *Response, error)
- type MonolithManifestRequest
- type MonolithManifestSubManifest
- type MonolithManifestSubManifestRequest
- type MonolithManifestSubManifestsService
- type MonolithManifestSubManifestsServiceOp
- func (s *MonolithManifestSubManifestsServiceOp) Create(ctx context.Context, createRequest *MonolithManifestSubManifestRequest) (*MonolithManifestSubManifest, *Response, error)
- func (s *MonolithManifestSubManifestsServiceOp) Delete(ctx context.Context, msmID int) (*Response, error)
- func (s *MonolithManifestSubManifestsServiceOp) GetByID(ctx context.Context, msmID int) (*MonolithManifestSubManifest, *Response, error)
- func (s *MonolithManifestSubManifestsServiceOp) GetByManifestID(ctx context.Context, mID int) ([]MonolithManifestSubManifest, *Response, error)
- func (s *MonolithManifestSubManifestsServiceOp) GetBySubManifestID(ctx context.Context, msmID int) ([]MonolithManifestSubManifest, *Response, error)
- func (s *MonolithManifestSubManifestsServiceOp) List(ctx context.Context, opt *ListOptions) ([]MonolithManifestSubManifest, *Response, error)
- func (s *MonolithManifestSubManifestsServiceOp) Update(ctx context.Context, msmID int, ...) (*MonolithManifestSubManifest, *Response, error)
- type MonolithManifestsService
- type MonolithManifestsServiceOp
- func (s *MonolithManifestsServiceOp) Create(ctx context.Context, createRequest *MonolithManifestRequest) (*MonolithManifest, *Response, error)
- func (s *MonolithManifestsServiceOp) Delete(ctx context.Context, mmID int) (*Response, error)
- func (s *MonolithManifestsServiceOp) GetByID(ctx context.Context, mmID int) (*MonolithManifest, *Response, error)
- func (s *MonolithManifestsServiceOp) GetByName(ctx context.Context, name string) (*MonolithManifest, *Response, error)
- func (s *MonolithManifestsServiceOp) List(ctx context.Context, opt *ListOptions) ([]MonolithManifest, *Response, error)
- func (s *MonolithManifestsServiceOp) Update(ctx context.Context, mmID int, updateRequest *MonolithManifestRequest) (*MonolithManifest, *Response, error)
- type MonolithRepositoriesService
- type MonolithRepositoriesServiceOp
- func (s *MonolithRepositoriesServiceOp) Create(ctx context.Context, createRequest *MonolithRepositoryRequest) (*MonolithRepository, *Response, error)
- func (s *MonolithRepositoriesServiceOp) Delete(ctx context.Context, mrID int) (*Response, error)
- func (s *MonolithRepositoriesServiceOp) GetByID(ctx context.Context, mrID int) (*MonolithRepository, *Response, error)
- func (s *MonolithRepositoriesServiceOp) GetByName(ctx context.Context, name string) (*MonolithRepository, *Response, error)
- func (s *MonolithRepositoriesServiceOp) List(ctx context.Context, opt *ListOptions) ([]MonolithRepository, *Response, error)
- func (s *MonolithRepositoriesServiceOp) Update(ctx context.Context, mrID int, updateRequest *MonolithRepositoryRequest) (*MonolithRepository, *Response, error)
- type MonolithRepository
- type MonolithRepositoryRequest
- type MonolithS3Backend
- type MonolithSubManifest
- type MonolithSubManifestPkgInfo
- type MonolithSubManifestPkgInfoRequest
- type MonolithSubManifestPkgInfosService
- type MonolithSubManifestPkgInfosServiceOp
- func (s *MonolithSubManifestPkgInfosServiceOp) Create(ctx context.Context, createRequest *MonolithSubManifestPkgInfoRequest) (*MonolithSubManifestPkgInfo, *Response, error)
- func (s *MonolithSubManifestPkgInfosServiceOp) Delete(ctx context.Context, smpiID int) (*Response, error)
- func (s *MonolithSubManifestPkgInfosServiceOp) GetByID(ctx context.Context, smpiID int) (*MonolithSubManifestPkgInfo, *Response, error)
- func (s *MonolithSubManifestPkgInfosServiceOp) GetBySubManifestID(ctx context.Context, smID int) ([]MonolithSubManifestPkgInfo, *Response, error)
- func (s *MonolithSubManifestPkgInfosServiceOp) List(ctx context.Context, opt *ListOptions) ([]MonolithSubManifestPkgInfo, *Response, error)
- func (s *MonolithSubManifestPkgInfosServiceOp) Update(ctx context.Context, smpiID int, ...) (*MonolithSubManifestPkgInfo, *Response, error)
- type MonolithSubManifestRequest
- type MonolithSubManifestsService
- type MonolithSubManifestsServiceOp
- func (s *MonolithSubManifestsServiceOp) Create(ctx context.Context, createRequest *MonolithSubManifestRequest) (*MonolithSubManifest, *Response, error)
- func (s *MonolithSubManifestsServiceOp) Delete(ctx context.Context, msmID int) (*Response, error)
- func (s *MonolithSubManifestsServiceOp) GetByID(ctx context.Context, msmID int) (*MonolithSubManifest, *Response, error)
- func (s *MonolithSubManifestsServiceOp) GetByName(ctx context.Context, name string) (*MonolithSubManifest, *Response, error)
- func (s *MonolithSubManifestsServiceOp) List(ctx context.Context, opt *ListOptions) ([]MonolithSubManifest, *Response, error)
- func (s *MonolithSubManifestsServiceOp) Update(ctx context.Context, msmID int, updateRequest *MonolithSubManifestRequest) (*MonolithSubManifest, *Response, error)
- type MunkiConfiguration
- type MunkiConfigurationRequest
- type MunkiConfigurationsService
- type MunkiConfigurationsServiceOp
- func (s *MunkiConfigurationsServiceOp) Create(ctx context.Context, createRequest *MunkiConfigurationRequest) (*MunkiConfiguration, *Response, error)
- func (s *MunkiConfigurationsServiceOp) Delete(ctx context.Context, mcID int) (*Response, error)
- func (s *MunkiConfigurationsServiceOp) GetByID(ctx context.Context, mcID int) (*MunkiConfiguration, *Response, error)
- func (s *MunkiConfigurationsServiceOp) GetByName(ctx context.Context, name string) (*MunkiConfiguration, *Response, error)
- func (s *MunkiConfigurationsServiceOp) List(ctx context.Context, opt *ListOptions) ([]MunkiConfiguration, *Response, error)
- func (s *MunkiConfigurationsServiceOp) Update(ctx context.Context, mcID int, updateRequest *MunkiConfigurationRequest) (*MunkiConfiguration, *Response, error)
- type MunkiEnrollment
- type MunkiEnrollmentRequest
- type MunkiEnrollmentsService
- type MunkiEnrollmentsServiceOp
- func (s *MunkiEnrollmentsServiceOp) Create(ctx context.Context, createRequest *MunkiEnrollmentRequest) (*MunkiEnrollment, *Response, error)
- func (s *MunkiEnrollmentsServiceOp) Delete(ctx context.Context, meID int) (*Response, error)
- func (s *MunkiEnrollmentsServiceOp) GetByConfigurationID(ctx context.Context, configuration_id int) ([]MunkiEnrollment, *Response, error)
- func (s *MunkiEnrollmentsServiceOp) GetByID(ctx context.Context, meID int) (*MunkiEnrollment, *Response, error)
- func (s *MunkiEnrollmentsServiceOp) List(ctx context.Context, opt *ListOptions) ([]MunkiEnrollment, *Response, error)
- func (s *MunkiEnrollmentsServiceOp) Update(ctx context.Context, meID int, updateRequest *MunkiEnrollmentRequest) (*MunkiEnrollment, *Response, error)
- type MunkiScriptCheck
- type MunkiScriptCheckRequest
- type MunkiScriptChecksService
- type MunkiScriptChecksServiceOp
- func (s *MunkiScriptChecksServiceOp) Create(ctx context.Context, createRequest *MunkiScriptCheckRequest) (*MunkiScriptCheck, *Response, error)
- func (s *MunkiScriptChecksServiceOp) Delete(ctx context.Context, mscID int) (*Response, error)
- func (s *MunkiScriptChecksServiceOp) GetByID(ctx context.Context, mscID int) (*MunkiScriptCheck, *Response, error)
- func (s *MunkiScriptChecksServiceOp) GetByName(ctx context.Context, name string) (*MunkiScriptCheck, *Response, error)
- func (s *MunkiScriptChecksServiceOp) List(ctx context.Context, opt *ListOptions) ([]MunkiScriptCheck, *Response, error)
- func (s *MunkiScriptChecksServiceOp) Update(ctx context.Context, mscID int, updateRequest *MunkiScriptCheckRequest) (*MunkiScriptCheck, *Response, error)
- type OsqueryATC
- type OsqueryATCRequest
- type OsqueryATCService
- type OsqueryATCServiceOp
- func (s *OsqueryATCServiceOp) Create(ctx context.Context, createRequest *OsqueryATCRequest) (*OsqueryATC, *Response, error)
- func (s *OsqueryATCServiceOp) Delete(ctx context.Context, oaID int) (*Response, error)
- func (s *OsqueryATCServiceOp) GetByID(ctx context.Context, oaID int) (*OsqueryATC, *Response, error)
- func (s *OsqueryATCServiceOp) GetByName(ctx context.Context, name string) (*OsqueryATC, *Response, error)
- func (s *OsqueryATCServiceOp) List(ctx context.Context, opt *ListOptions) ([]OsqueryATC, *Response, error)
- func (s *OsqueryATCServiceOp) Update(ctx context.Context, oaID int, updateRequest *OsqueryATCRequest) (*OsqueryATC, *Response, error)
- type OsqueryConfiguration
- type OsqueryConfigurationPack
- type OsqueryConfigurationPackRequest
- type OsqueryConfigurationPacksService
- type OsqueryConfigurationPacksServiceOp
- func (s *OsqueryConfigurationPacksServiceOp) Create(ctx context.Context, createRequest *OsqueryConfigurationPackRequest) (*OsqueryConfigurationPack, *Response, error)
- func (s *OsqueryConfigurationPacksServiceOp) Delete(ctx context.Context, ocpID int) (*Response, error)
- func (s *OsqueryConfigurationPacksServiceOp) GetByConfigurationID(ctx context.Context, cfgID int) ([]OsqueryConfigurationPack, *Response, error)
- func (s *OsqueryConfigurationPacksServiceOp) GetByID(ctx context.Context, ocpID int) (*OsqueryConfigurationPack, *Response, error)
- func (s *OsqueryConfigurationPacksServiceOp) GetByPackID(ctx context.Context, packID int) ([]OsqueryConfigurationPack, *Response, error)
- func (s *OsqueryConfigurationPacksServiceOp) List(ctx context.Context, opt *ListOptions) ([]OsqueryConfigurationPack, *Response, error)
- func (s *OsqueryConfigurationPacksServiceOp) Update(ctx context.Context, ocpID int, updateRequest *OsqueryConfigurationPackRequest) (*OsqueryConfigurationPack, *Response, error)
- type OsqueryConfigurationRequest
- type OsqueryConfigurationsService
- type OsqueryConfigurationsServiceOp
- func (s *OsqueryConfigurationsServiceOp) Create(ctx context.Context, createRequest *OsqueryConfigurationRequest) (*OsqueryConfiguration, *Response, error)
- func (s *OsqueryConfigurationsServiceOp) Delete(ctx context.Context, ocID int) (*Response, error)
- func (s *OsqueryConfigurationsServiceOp) GetByID(ctx context.Context, ocID int) (*OsqueryConfiguration, *Response, error)
- func (s *OsqueryConfigurationsServiceOp) GetByName(ctx context.Context, name string) (*OsqueryConfiguration, *Response, error)
- func (s *OsqueryConfigurationsServiceOp) List(ctx context.Context, opt *ListOptions) ([]OsqueryConfiguration, *Response, error)
- func (s *OsqueryConfigurationsServiceOp) Update(ctx context.Context, ocID int, updateRequest *OsqueryConfigurationRequest) (*OsqueryConfiguration, *Response, error)
- type OsqueryEnrollment
- type OsqueryEnrollmentRequest
- type OsqueryEnrollmentsService
- type OsqueryEnrollmentsServiceOp
- func (s *OsqueryEnrollmentsServiceOp) Create(ctx context.Context, createRequest *OsqueryEnrollmentRequest) (*OsqueryEnrollment, *Response, error)
- func (s *OsqueryEnrollmentsServiceOp) Delete(ctx context.Context, oeID int) (*Response, error)
- func (s *OsqueryEnrollmentsServiceOp) GetByConfigurationID(ctx context.Context, configuration_id int) ([]OsqueryEnrollment, *Response, error)
- func (s *OsqueryEnrollmentsServiceOp) GetByID(ctx context.Context, oeID int) (*OsqueryEnrollment, *Response, error)
- func (s *OsqueryEnrollmentsServiceOp) List(ctx context.Context, opt *ListOptions) ([]OsqueryEnrollment, *Response, error)
- func (s *OsqueryEnrollmentsServiceOp) Update(ctx context.Context, oeID int, updateRequest *OsqueryEnrollmentRequest) (*OsqueryEnrollment, *Response, error)
- type OsqueryFileCategoriesService
- type OsqueryFileCategoriesServiceOp
- func (s *OsqueryFileCategoriesServiceOp) Create(ctx context.Context, createRequest *OsqueryFileCategoryRequest) (*OsqueryFileCategory, *Response, error)
- func (s *OsqueryFileCategoriesServiceOp) Delete(ctx context.Context, ofcID int) (*Response, error)
- func (s *OsqueryFileCategoriesServiceOp) GetByID(ctx context.Context, ofcID int) (*OsqueryFileCategory, *Response, error)
- func (s *OsqueryFileCategoriesServiceOp) GetByName(ctx context.Context, name string) (*OsqueryFileCategory, *Response, error)
- func (s *OsqueryFileCategoriesServiceOp) List(ctx context.Context, opt *ListOptions) ([]OsqueryFileCategory, *Response, error)
- func (s *OsqueryFileCategoriesServiceOp) Update(ctx context.Context, ofcID int, updateRequest *OsqueryFileCategoryRequest) (*OsqueryFileCategory, *Response, error)
- type OsqueryFileCategory
- type OsqueryFileCategoryRequest
- type OsqueryPack
- type OsqueryPackRequest
- type OsqueryPacksService
- type OsqueryPacksServiceOp
- func (s *OsqueryPacksServiceOp) Create(ctx context.Context, createRequest *OsqueryPackRequest) (*OsqueryPack, *Response, error)
- func (s *OsqueryPacksServiceOp) Delete(ctx context.Context, opID int) (*Response, error)
- func (s *OsqueryPacksServiceOp) GetByID(ctx context.Context, opID int) (*OsqueryPack, *Response, error)
- func (s *OsqueryPacksServiceOp) GetByName(ctx context.Context, name string) (*OsqueryPack, *Response, error)
- func (s *OsqueryPacksServiceOp) List(ctx context.Context, opt *ListOptions) ([]OsqueryPack, *Response, error)
- func (s *OsqueryPacksServiceOp) Update(ctx context.Context, opID int, updateRequest *OsqueryPackRequest) (*OsqueryPack, *Response, error)
- type OsqueryQueriesService
- type OsqueryQueriesServiceOp
- func (s *OsqueryQueriesServiceOp) Create(ctx context.Context, createRequest *OsqueryQueryRequest) (*OsqueryQuery, *Response, error)
- func (s *OsqueryQueriesServiceOp) Delete(ctx context.Context, oqID int) (*Response, error)
- func (s *OsqueryQueriesServiceOp) GetByID(ctx context.Context, oqID int) (*OsqueryQuery, *Response, error)
- func (s *OsqueryQueriesServiceOp) GetByName(ctx context.Context, name string) (*OsqueryQuery, *Response, error)
- func (s *OsqueryQueriesServiceOp) GetByPackID(ctx context.Context, packID int) ([]OsqueryQuery, *Response, error)
- func (s *OsqueryQueriesServiceOp) List(ctx context.Context, opt *ListOptions) ([]OsqueryQuery, *Response, error)
- func (s *OsqueryQueriesServiceOp) Update(ctx context.Context, oqID int, updateRequest *OsqueryQueryRequest) (*OsqueryQuery, *Response, error)
- type OsqueryQuery
- type OsqueryQueryRequest
- type OsqueryQueryScheduling
- type OsqueryQuerySchedulingRequest
- type Response
- type SantaConfiguration
- type SantaConfigurationRequest
- type SantaConfigurationsService
- type SantaConfigurationsServiceOp
- func (s *SantaConfigurationsServiceOp) Create(ctx context.Context, createRequest *SantaConfigurationRequest) (*SantaConfiguration, *Response, error)
- func (s *SantaConfigurationsServiceOp) Delete(ctx context.Context, scID int) (*Response, error)
- func (s *SantaConfigurationsServiceOp) GetByID(ctx context.Context, scID int) (*SantaConfiguration, *Response, error)
- func (s *SantaConfigurationsServiceOp) GetByName(ctx context.Context, name string) (*SantaConfiguration, *Response, error)
- func (s *SantaConfigurationsServiceOp) List(ctx context.Context, opt *ListOptions) ([]SantaConfiguration, *Response, error)
- func (s *SantaConfigurationsServiceOp) Update(ctx context.Context, scID int, updateRequest *SantaConfigurationRequest) (*SantaConfiguration, *Response, error)
- type SantaEnrollment
- type SantaEnrollmentRequest
- type SantaEnrollmentsService
- type SantaEnrollmentsServiceOp
- func (s *SantaEnrollmentsServiceOp) Create(ctx context.Context, createRequest *SantaEnrollmentRequest) (*SantaEnrollment, *Response, error)
- func (s *SantaEnrollmentsServiceOp) Delete(ctx context.Context, seID int) (*Response, error)
- func (s *SantaEnrollmentsServiceOp) GetByConfigurationID(ctx context.Context, configuration_id int) ([]SantaEnrollment, *Response, error)
- func (s *SantaEnrollmentsServiceOp) GetByID(ctx context.Context, seID int) (*SantaEnrollment, *Response, error)
- func (s *SantaEnrollmentsServiceOp) List(ctx context.Context, opt *ListOptions) ([]SantaEnrollment, *Response, error)
- func (s *SantaEnrollmentsServiceOp) Update(ctx context.Context, seID int, updateRequest *SantaEnrollmentRequest) (*SantaEnrollment, *Response, error)
- type SantaRule
- type SantaRuleRequest
- type SantaRulesService
- type SantaRulesServiceOp
- func (s *SantaRulesServiceOp) Create(ctx context.Context, createRequest *SantaRuleRequest) (*SantaRule, *Response, error)
- func (s *SantaRulesServiceOp) Delete(ctx context.Context, srID int) (*Response, error)
- func (s *SantaRulesServiceOp) GetByConfigurationID(ctx context.Context, configuration_id int) ([]SantaRule, *Response, error)
- func (s *SantaRulesServiceOp) GetByID(ctx context.Context, srID int) (*SantaRule, *Response, error)
- func (s *SantaRulesServiceOp) GetByTargetIdentifier(ctx context.Context, target_identifier string) ([]SantaRule, *Response, error)
- func (s *SantaRulesServiceOp) GetByTargetType(ctx context.Context, target_type string) ([]SantaRule, *Response, error)
- func (s *SantaRulesServiceOp) List(ctx context.Context, opt *ListOptions) ([]SantaRule, *Response, error)
- func (s *SantaRulesServiceOp) Update(ctx context.Context, srID int, updateRequest *SantaRuleRequest) (*SantaRule, *Response, error)
- type Tag
- type TagCreateRequest
- type TagShard
- type TagUpdateRequest
- type TagsService
- type TagsServiceOp
- func (s *TagsServiceOp) Create(ctx context.Context, createRequest *TagCreateRequest) (*Tag, *Response, error)
- func (s *TagsServiceOp) Delete(ctx context.Context, tagID int) (*Response, error)
- func (s *TagsServiceOp) GetByID(ctx context.Context, tagID int) (*Tag, *Response, error)
- func (s *TagsServiceOp) GetByName(ctx context.Context, name string) (*Tag, *Response, error)
- func (s *TagsServiceOp) List(ctx context.Context, opt *ListOptions) ([]Tag, *Response, error)
- func (s *TagsServiceOp) Update(ctx context.Context, tagID int, updateRequest *TagUpdateRequest) (*Tag, *Response, error)
- type TaxonomiesService
- type TaxonomiesServiceOp
- func (s *TaxonomiesServiceOp) Create(ctx context.Context, createRequest *TaxonomyCreateRequest) (*Taxonomy, *Response, error)
- func (s *TaxonomiesServiceOp) Delete(ctx context.Context, TaxonomyID int) (*Response, error)
- func (s *TaxonomiesServiceOp) GetByID(ctx context.Context, TaxonomyID int) (*Taxonomy, *Response, error)
- func (s *TaxonomiesServiceOp) GetByName(ctx context.Context, name string) (*Taxonomy, *Response, error)
- func (s *TaxonomiesServiceOp) List(ctx context.Context, opt *ListOptions) ([]Taxonomy, *Response, error)
- func (s *TaxonomiesServiceOp) Update(ctx context.Context, TaxonomyID int, updateRequest *TaxonomyUpdateRequest) (*Taxonomy, *Response, error)
- type Taxonomy
- type TaxonomyCreateRequest
- type TaxonomyUpdateRequest
- type Timestamp
Constants ¶
const TaxonomyBasePath = "inventory/taxonomies/"
Variables ¶
This section is empty.
Functions ¶
func CheckResponse ¶
CheckResponse checks the API response for errors, and returns them if present. A response is considered an error if it has a status code outside the 200 range. API error responses are expected to have either no response body, or a JSON response body that maps to ErrorResponse. Any other response body will be silently ignored. If the API error response does not include the request ID in its body, the one from its header will be used.
func DoRequestWithClient ¶
func DoRequestWithClient( ctx context.Context, client *http.Client, req *http.Request) (*http.Response, error)
DoRequestWithClient submits an HTTP request using the specified client.
func Int ¶
Int is a helper routine that allocates a new int value to store v and returns a pointer to it.
Types ¶
type ArgError ¶
type ArgError struct {
// contains filtered or unexported fields
}
ArgError is an error that represents an error with an input to goztl. It identifies the argument and the cause (if possible).
func NewArgError ¶
NewArgError creates an InputError.
type Client ¶
type Client struct { // Base URL for API requests. BaseURL *url.URL // User agent for client UserAgent string // Services used for communicating with the API // Inventory JMESPathChecks JMESPathChecksService MetaBusinessUnits MetaBusinessUnitsService Tags TagsService Taxonomies TaxonomiesService // MDM MDMArtifacts MDMArtifactsService MDMBlueprints MDMBlueprintsService MDMBlueprintArtifacts MDMBlueprintArtifactsService MDMEnterpriseApps MDMEnterpriseAppsService MDMFileVaultConfigs MDMFileVaultConfigsService MDMProfiles MDMProfilesService MDMRecoveryPasswordConfigs MDMRecoveryPasswordConfigsService MDMSoftwareUpdateEnforcements MDMSoftwareUpdateEnforcementsService // Monolith MonolithCatalogs MonolithCatalogsService MonolithConditions MonolithConditionsService MonolithEnrollments MonolithEnrollmentsService MonolithManifests MonolithManifestsService MonolithManifestCatalogs MonolithManifestCatalogsService MonolithManifestSubManifests MonolithManifestSubManifestsService MonolithRepositories MonolithRepositoriesService MonolithSubManifests MonolithSubManifestsService MonolithSubManifestPkgInfos MonolithSubManifestPkgInfosService // Munki MunkiConfigurations MunkiConfigurationsService MunkiEnrollments MunkiEnrollmentsService MunkiScriptChecks MunkiScriptChecksService // Osquery OsqueryATC OsqueryATCService OsqueryConfigurations OsqueryConfigurationsService OsqueryConfigurationPacks OsqueryConfigurationPacksService OsqueryEnrollments OsqueryEnrollmentsService OsqueryFileCategories OsqueryFileCategoriesService OsqueryPacks OsqueryPacksService OsqueryQueries OsqueryQueriesService // Santa SantaConfigurations SantaConfigurationsService SantaEnrollments SantaEnrollmentsService SantaRules SantaRulesService // contains filtered or unexported fields }
Client manages communication with Zentral API.
func NewClient ¶
func NewClient(httpClient *http.Client, bu string, token string, opts ...ClientOpt) (*Client, error)
NewClient returns a new Zentral API client with the given base URL and API token.
func (*Client) Do ¶
Do sends an API request and returns the API response. The API response is JSON decoded and stored in the value pointed to by v, or returned as an error if an API error has occurred. If v implements the io.Writer interface, the raw response will be written to v, without attempting to decode it.
func (*Client) NewRequest ¶
func (c *Client) NewRequest(ctx context.Context, method, urlStr string, body interface{}) (*http.Request, error)
NewRequest creates an API request. A relative URL can be provided in urlStr, which will be resolved to the BaseURL of the Client. Relative URLS should always be specified without a preceding slash. If specified, the value pointed to by body is JSON encoded and included in as the request body.
type ClientOpt ¶
ClientOpt are options for New.
func SetRequestHeaders ¶
SetRequestHeaders sets optional HTTP headers on the client that are sent on each HTTP request.
func SetUserAgent ¶
SetUserAgent is a client option for setting the user agent.
type EnrollmentSecret ¶ added in v0.1.7
type EnrollmentSecret struct { ID int `json:"id"` Secret string `json:"secret"` MetaBusinessUnitID int `json:"meta_business_unit"` TagIDs []int `json:"tags"` SerialNumbers []string `json:"serial_numbers"` UDIDs []string `json:"udids"` Quota *int `json:"quota"` RequestCount int `json:"request_count"` }
type EnrollmentSecretRequest ¶ added in v0.1.7
type ErrorResponse ¶
type ErrorResponse struct { // HTTP response that caused this error Response *http.Response // Error message Message string `json:"message"` }
An ErrorResponse reports the error caused by an API request
func (*ErrorResponse) Error ¶
func (r *ErrorResponse) Error() string
type JMESPathCheck ¶ added in v0.1.3
type JMESPathCheck struct { ID int `json:"id"` Name string `json:"name"` Description string `json:"description"` SourceName string `json:"source_name"` Platforms []string `json:"platforms"` TagIDs []int `json:"tags"` JMESPathExpression string `json:"jmespath_expression"` Version int `json:"version"` Created Timestamp `json:"created_at"` Updated Timestamp `json:"updated_at"` }
JMESPathCheck represents a Zentral JMESPath check.
func (JMESPathCheck) String ¶ added in v0.1.3
func (jmespath_check JMESPathCheck) String() string
type JMESPathCheckCreateRequest ¶ added in v0.1.3
type JMESPathCheckCreateRequest struct { Name string `json:"name"` Description string `json:"description"` SourceName string `json:"source_name"` Platforms []string `json:"platforms"` TagIDs []int `json:"tags"` JMESPathExpression string `json:"jmespath_expression"` }
JMESPathCheckCreateRequest represents a request to create a JMESPath check.
type JMESPathCheckUpdateRequest ¶ added in v0.1.3
type JMESPathCheckUpdateRequest struct { Name string `json:"name"` Description string `json:"description"` SourceName string `json:"source_name"` Platforms []string `json:"platforms"` TagIDs []int `json:"tags"` JMESPathExpression string `json:"jmespath_expression"` }
JMESPathCheckUpdateRequest represents a request to update a JMESPath check.
type JMESPathChecksService ¶ added in v0.1.3
type JMESPathChecksService interface { List(context.Context, *ListOptions) ([]JMESPathCheck, *Response, error) GetByID(context.Context, int) (*JMESPathCheck, *Response, error) GetByName(context.Context, string) (*JMESPathCheck, *Response, error) Create(context.Context, *JMESPathCheckCreateRequest) (*JMESPathCheck, *Response, error) Update(context.Context, int, *JMESPathCheckUpdateRequest) (*JMESPathCheck, *Response, error) Delete(context.Context, int) (*Response, error) }
JMESPathChecksService is an interface for interfacing with the JMESPath checks endpoints of the Zentral API.
type JMESPathChecksServiceOp ¶ added in v0.1.3
type JMESPathChecksServiceOp struct {
// contains filtered or unexported fields
}
JMESPathChecksServiceOp handles communication with the jmespath_checks related methods of the Zentral API.
func (*JMESPathChecksServiceOp) Create ¶ added in v0.1.3
func (s *JMESPathChecksServiceOp) Create(ctx context.Context, createRequest *JMESPathCheckCreateRequest) (*JMESPathCheck, *Response, error)
Create a new jmespath_check.
func (*JMESPathChecksServiceOp) Delete ¶ added in v0.1.3
func (s *JMESPathChecksServiceOp) Delete(ctx context.Context, jmespathCheckID int) (*Response, error)
Delete a jmespath_check.
func (*JMESPathChecksServiceOp) GetByID ¶ added in v0.1.3
func (s *JMESPathChecksServiceOp) GetByID(ctx context.Context, jmespathCheckID int) (*JMESPathCheck, *Response, error)
GetByID retrieves a jmespath_check by id.
func (*JMESPathChecksServiceOp) GetByName ¶ added in v0.1.3
func (s *JMESPathChecksServiceOp) GetByName(ctx context.Context, name string) (*JMESPathCheck, *Response, error)
GetByName retrieves a jmespath_check by name.
func (*JMESPathChecksServiceOp) List ¶ added in v0.1.3
func (s *JMESPathChecksServiceOp) List(ctx context.Context, opt *ListOptions) ([]JMESPathCheck, *Response, error)
List lists all the jmespath_checks.
func (*JMESPathChecksServiceOp) Update ¶ added in v0.1.3
func (s *JMESPathChecksServiceOp) Update(ctx context.Context, jmespathCheckID int, updateRequest *JMESPathCheckUpdateRequest) (*JMESPathCheck, *Response, error)
Update a jmespath_check.
type ListOptions ¶
type ListOptions struct { // For paginated result sets, maximum number of items to return Limit int `url:"limit,omitempty"` // For paginated result sets, starting position of the query in relation // to the complete set of unpaginated items Offset int `url:"offset,omitempty"` }
ListOptions specifies the optional parameters to various List methods that support pagination.
type MDMArtifact ¶ added in v0.1.33
type MDMArtifact struct { ID string `json:"id"` Name string `json:"name"` Type string `json:"type"` Channel string `json:"channel"` Platforms []string `json:"platforms"` InstallDuringSetupAssistant bool `json:"install_during_setup_assistant"` AutoUpdate bool `json:"auto_update"` ReinstallInterval int `json:"reinstall_interval"` ReinstallOnOSUpdate string `json:"reinstall_on_os_update"` Requires []string `json:"requires"` Created Timestamp `json:"created_at,omitempty"` Updated Timestamp `json:"updated_at,omitempty"` }
MDMArtifact represents a Zentral MDM artifact
func (MDMArtifact) String ¶ added in v0.1.33
func (ma MDMArtifact) String() string
type MDMArtifactRequest ¶ added in v0.1.33
type MDMArtifactRequest struct { Name string `json:"name"` Type string `json:"type"` Channel string `json:"channel"` Platforms []string `json:"platforms"` InstallDuringSetupAssistant bool `json:"install_during_setup_assistant"` AutoUpdate bool `json:"auto_update"` ReinstallInterval int `json:"reinstall_interval"` ReinstallOnOSUpdate string `json:"reinstall_on_os_update"` Requires []string `json:"requires"` }
MDMArtifactRequest represents a request to create or update a MDM artifact
type MDMArtifactVersion ¶ added in v0.1.38
type MDMArtifactVersion struct { ArtifactID string `json:"artifact"` IOS bool `json:"ios"` IOSMaxVersion string `json:"ios_max_version"` IOSMinVersion string `json:"ios_min_version"` IPadOS bool `json:"ipados"` IPadOSMaxVersion string `json:"ipados_max_version"` IPadOSMinVersion string `json:"ipados_min_version"` MacOS bool `json:"macos"` MacOSMaxVersion string `json:"macos_max_version"` MacOSMinVersion string `json:"macos_min_version"` TVOS bool `json:"tvos"` TVOSMaxVersion string `json:"tvos_max_version"` TVOSMinVersion string `json:"tvos_min_version"` DefaultShard int `json:"default_shard"` ShardModulo int `json:"shard_modulo"` ExcludedTagIDs []int `json:"excluded_tags"` TagShards []TagShard `json:"tag_shards"` Version int `json:"version"` Created Timestamp `json:"created_at"` Updated Timestamp `json:"updated_at"` }
MDMArtifactVersion represents a Zentral MDM artifact version
type MDMArtifactVersionRequest ¶ added in v0.1.38
type MDMArtifactVersionRequest struct { ArtifactID string `json:"artifact"` IOS bool `json:"ios"` IOSMaxVersion string `json:"ios_max_version"` IOSMinVersion string `json:"ios_min_version"` IPadOS bool `json:"ipados"` IPadOSMaxVersion string `json:"ipados_max_version"` IPadOSMinVersion string `json:"ipados_min_version"` MacOS bool `json:"macos"` MacOSMaxVersion string `json:"macos_max_version"` MacOSMinVersion string `json:"macos_min_version"` TVOS bool `json:"tvos"` TVOSMaxVersion string `json:"tvos_max_version"` TVOSMinVersion string `json:"tvos_min_version"` DefaultShard int `json:"default_shard"` ShardModulo int `json:"shard_modulo"` ExcludedTagIDs []int `json:"excluded_tags"` TagShards []TagShard `json:"tag_shards"` Version int `json:"version"` }
MDMArtifactVersionRequest represents a request to create or update a MDM artifact version
type MDMArtifactsService ¶ added in v0.1.33
type MDMArtifactsService interface { List(context.Context, *ListOptions) ([]MDMArtifact, *Response, error) GetByID(context.Context, string) (*MDMArtifact, *Response, error) GetByName(context.Context, string) (*MDMArtifact, *Response, error) Create(context.Context, *MDMArtifactRequest) (*MDMArtifact, *Response, error) Update(context.Context, string, *MDMArtifactRequest) (*MDMArtifact, *Response, error) Delete(context.Context, string) (*Response, error) }
MDMArtifactsService is an interface for interfacing with the MDM artifact endpoints of the Zentral API
type MDMArtifactsServiceOp ¶ added in v0.1.33
type MDMArtifactsServiceOp struct {
// contains filtered or unexported fields
}
MDMArtifactsServiceOp handles communication with the MDM artifacts related methods of the Zentral API.
func (*MDMArtifactsServiceOp) Create ¶ added in v0.1.33
func (s *MDMArtifactsServiceOp) Create(ctx context.Context, createRequest *MDMArtifactRequest) (*MDMArtifact, *Response, error)
Create a new MDM artifact.
func (*MDMArtifactsServiceOp) GetByID ¶ added in v0.1.33
func (s *MDMArtifactsServiceOp) GetByID(ctx context.Context, maID string) (*MDMArtifact, *Response, error)
GetByID retrieves a MDM artifact by id.
func (*MDMArtifactsServiceOp) GetByName ¶ added in v0.1.33
func (s *MDMArtifactsServiceOp) GetByName(ctx context.Context, name string) (*MDMArtifact, *Response, error)
GetByName retrieves a MDM artifact by name.
func (*MDMArtifactsServiceOp) List ¶ added in v0.1.33
func (s *MDMArtifactsServiceOp) List(ctx context.Context, opt *ListOptions) ([]MDMArtifact, *Response, error)
List lists all the MDM artifacts.
func (*MDMArtifactsServiceOp) Update ¶ added in v0.1.33
func (s *MDMArtifactsServiceOp) Update(ctx context.Context, maID string, updateRequest *MDMArtifactRequest) (*MDMArtifact, *Response, error)
Update a MDM artifact.
type MDMBlueprint ¶ added in v0.1.31
type MDMBlueprint struct { ID int `json:"id,omitempty"` Name string `json:"name"` InventoryInterval int `json:"inventory_interval"` CollectApps int `json:"collect_apps"` CollectCertificates int `json:"collect_certificates"` CollectProfiles int `json:"collect_profiles"` FileVaultConfigID *int `json:"filevault_config"` RecoveryPasswordConfigID *int `json:"recovery_password_config"` SoftwareUpdateEnforcementIDs []int `json:"software_update_enforcements"` Created Timestamp `json:"created_at,omitempty"` Updated Timestamp `json:"updated_at,omitempty"` }
MDMBlueprint represents a Zentral MDM blueprint
func (MDMBlueprint) String ¶ added in v0.1.31
func (mb MDMBlueprint) String() string
type MDMBlueprintArtifact ¶ added in v0.1.35
type MDMBlueprintArtifact struct { ID int `json:"id"` BlueprintID int `json:"blueprint"` ArtifactID string `json:"artifact"` IOS bool `json:"ios"` IOSMaxVersion string `json:"ios_max_version"` IOSMinVersion string `json:"ios_min_version"` IPadOS bool `json:"ipados"` IPadOSMaxVersion string `json:"ipados_max_version"` IPadOSMinVersion string `json:"ipados_min_version"` MacOS bool `json:"macos"` MacOSMaxVersion string `json:"macos_max_version"` MacOSMinVersion string `json:"macos_min_version"` TVOS bool `json:"tvos"` TVOSMaxVersion string `json:"tvos_max_version"` TVOSMinVersion string `json:"tvos_min_version"` DefaultShard int `json:"default_shard"` ShardModulo int `json:"shard_modulo"` ExcludedTagIDs []int `json:"excluded_tags"` TagShards []TagShard `json:"tag_shards"` Created Timestamp `json:"created_at"` Updated Timestamp `json:"updated_at"` }
MDMBlueprintArtifact represents a Zentral MDM blueprint artifact
func (MDMBlueprintArtifact) String ¶ added in v0.1.35
func (mba MDMBlueprintArtifact) String() string
type MDMBlueprintArtifactRequest ¶ added in v0.1.35
type MDMBlueprintArtifactRequest struct { BlueprintID int `json:"blueprint"` ArtifactID string `json:"artifact"` IOS bool `json:"ios"` IOSMaxVersion string `json:"ios_max_version"` IOSMinVersion string `json:"ios_min_version"` IPadOS bool `json:"ipados"` IPadOSMaxVersion string `json:"ipados_max_version"` IPadOSMinVersion string `json:"ipados_min_version"` MacOS bool `json:"macos"` MacOSMaxVersion string `json:"macos_max_version"` MacOSMinVersion string `json:"macos_min_version"` TVOS bool `json:"tvos"` TVOSMaxVersion string `json:"tvos_max_version"` TVOSMinVersion string `json:"tvos_min_version"` DefaultShard int `json:"default_shard"` ShardModulo int `json:"shard_modulo"` ExcludedTagIDs []int `json:"excluded_tags"` TagShards []TagShard `json:"tag_shards"` }
MDMBlueprintArtifactRequest represents a request to create or update a MDM blueprint artifact
type MDMBlueprintArtifactsService ¶ added in v0.1.35
type MDMBlueprintArtifactsService interface { List(context.Context, *ListOptions) ([]MDMBlueprintArtifact, *Response, error) GetByID(context.Context, int) (*MDMBlueprintArtifact, *Response, error) Create(context.Context, *MDMBlueprintArtifactRequest) (*MDMBlueprintArtifact, *Response, error) Update(context.Context, int, *MDMBlueprintArtifactRequest) (*MDMBlueprintArtifact, *Response, error) Delete(context.Context, int) (*Response, error) }
MDMBlueprintArtifactsService is an interface for interfacing with the MDM blueprint artifact endpoints of the Zentral API
type MDMBlueprintArtifactsServiceOp ¶ added in v0.1.35
type MDMBlueprintArtifactsServiceOp struct {
// contains filtered or unexported fields
}
MDMBlueprintArtifactsServiceOp handles communication with the MDM blueprint artifacts related methods of the Zentral API.
func (*MDMBlueprintArtifactsServiceOp) Create ¶ added in v0.1.35
func (s *MDMBlueprintArtifactsServiceOp) Create(ctx context.Context, createRequest *MDMBlueprintArtifactRequest) (*MDMBlueprintArtifact, *Response, error)
Create a new MDM blueprint artifact.
func (*MDMBlueprintArtifactsServiceOp) GetByID ¶ added in v0.1.35
func (s *MDMBlueprintArtifactsServiceOp) GetByID(ctx context.Context, mbaID int) (*MDMBlueprintArtifact, *Response, error)
GetByID retrieves a MDM blueprint artifact by id.
func (*MDMBlueprintArtifactsServiceOp) List ¶ added in v0.1.35
func (s *MDMBlueprintArtifactsServiceOp) List(ctx context.Context, opt *ListOptions) ([]MDMBlueprintArtifact, *Response, error)
List lists all the MDM blueprint artifacts.
func (*MDMBlueprintArtifactsServiceOp) Update ¶ added in v0.1.35
func (s *MDMBlueprintArtifactsServiceOp) Update(ctx context.Context, mbaID int, updateRequest *MDMBlueprintArtifactRequest) (*MDMBlueprintArtifact, *Response, error)
Update a MDM blueprint artifact.
type MDMBlueprintRequest ¶ added in v0.1.31
type MDMBlueprintRequest struct { Name string `json:"name"` InventoryInterval int `json:"inventory_interval"` CollectApps int `json:"collect_apps"` CollectCertificates int `json:"collect_certificates"` CollectProfiles int `json:"collect_profiles"` FileVaultConfigID *int `json:"filevault_config"` RecoveryPasswordConfigID *int `json:"recovery_password_config"` SoftwareUpdateEnforcementIDs []int `json:"software_update_enforcements"` }
MDMBlueprintRequest represents a request to create or update a MDM blueprint
type MDMBlueprintsService ¶ added in v0.1.31
type MDMBlueprintsService interface { List(context.Context, *ListOptions) ([]MDMBlueprint, *Response, error) GetByID(context.Context, int) (*MDMBlueprint, *Response, error) GetByName(context.Context, string) (*MDMBlueprint, *Response, error) Create(context.Context, *MDMBlueprintRequest) (*MDMBlueprint, *Response, error) Update(context.Context, int, *MDMBlueprintRequest) (*MDMBlueprint, *Response, error) Delete(context.Context, int) (*Response, error) }
MDMBlueprintsService is an interface for interfacing with the MDM blueprint endpoints of the Zentral API
type MDMBlueprintsServiceOp ¶ added in v0.1.31
type MDMBlueprintsServiceOp struct {
// contains filtered or unexported fields
}
MDMBlueprintsServiceOp handles communication with the MDM blueprints related methods of the Zentral API.
func (*MDMBlueprintsServiceOp) Create ¶ added in v0.1.31
func (s *MDMBlueprintsServiceOp) Create(ctx context.Context, createRequest *MDMBlueprintRequest) (*MDMBlueprint, *Response, error)
Create a new MDM blueprint.
func (*MDMBlueprintsServiceOp) GetByID ¶ added in v0.1.31
func (s *MDMBlueprintsServiceOp) GetByID(ctx context.Context, mbID int) (*MDMBlueprint, *Response, error)
GetByID retrieves a MDM blueprint by id.
func (*MDMBlueprintsServiceOp) GetByName ¶ added in v0.1.31
func (s *MDMBlueprintsServiceOp) GetByName(ctx context.Context, name string) (*MDMBlueprint, *Response, error)
GetByName retrieves a MDM blueprint by name.
func (*MDMBlueprintsServiceOp) List ¶ added in v0.1.31
func (s *MDMBlueprintsServiceOp) List(ctx context.Context, opt *ListOptions) ([]MDMBlueprint, *Response, error)
List lists all the MDM blueprints.
func (*MDMBlueprintsServiceOp) Update ¶ added in v0.1.31
func (s *MDMBlueprintsServiceOp) Update(ctx context.Context, mbID int, updateRequest *MDMBlueprintRequest) (*MDMBlueprint, *Response, error)
Update a MDM blueprint.
type MDMEnterpriseApp ¶ added in v0.1.38
type MDMEnterpriseApp struct { ID string `json:"id"` PackageURI string `json:"package_uri"` PackageSHA256 string `json:"package_sha256"` PackageSize int64 `json:"package_size"` Filename string `json:"filename"` ProductID string `json:"product_id"` ProductVersion string `json:"product_version"` IOSApp bool `json:"ios_app"` Configuration *string `json:"configuration"` InstallAsManaged bool `json:"install_as_managed"` RemoveOnUnenroll bool `json:"remove_on_unenroll"` MDMArtifactVersion }
MDMEnterpriseApp represents a Zentral MDM enterprise app
func (MDMEnterpriseApp) String ¶ added in v0.1.38
func (mea MDMEnterpriseApp) String() string
type MDMEnterpriseAppRequest ¶ added in v0.1.38
type MDMEnterpriseAppRequest struct { PackageURI string `json:"package_uri"` PackageSHA256 string `json:"package_sha256"` IOSApp bool `json:"ios_app"` Configuration *string `json:"configuration"` InstallAsManaged bool `json:"installed_as_managed"` RemoveOnUnenroll bool `json:"remove_on_unenroll"` MDMArtifactVersionRequest }
MDMEnterpriseAppRequest represents a request to create or update a MDM enterprise app
type MDMEnterpriseAppsService ¶ added in v0.1.38
type MDMEnterpriseAppsService interface { List(context.Context, *ListOptions) ([]MDMEnterpriseApp, *Response, error) GetByID(context.Context, string) (*MDMEnterpriseApp, *Response, error) Create(context.Context, *MDMEnterpriseAppRequest) (*MDMEnterpriseApp, *Response, error) Update(context.Context, string, *MDMEnterpriseAppRequest) (*MDMEnterpriseApp, *Response, error) Delete(context.Context, string) (*Response, error) }
MDMEnterpriseAppsService is an interface for interfacing with the MDM enterprise app endpoints of the Zentral API
type MDMEnterpriseAppsServiceOp ¶ added in v0.1.38
type MDMEnterpriseAppsServiceOp struct {
// contains filtered or unexported fields
}
MDMEnterpriseAppsServiceOp handles communication with the MDM enterprise apps related methods of the Zentral API.
func (*MDMEnterpriseAppsServiceOp) Create ¶ added in v0.1.38
func (s *MDMEnterpriseAppsServiceOp) Create(ctx context.Context, createRequest *MDMEnterpriseAppRequest) (*MDMEnterpriseApp, *Response, error)
Create a new MDM enterprise app.
func (*MDMEnterpriseAppsServiceOp) GetByID ¶ added in v0.1.38
func (s *MDMEnterpriseAppsServiceOp) GetByID(ctx context.Context, meaID string) (*MDMEnterpriseApp, *Response, error)
GetByID retrieves a MDM enterprise app by id.
func (*MDMEnterpriseAppsServiceOp) List ¶ added in v0.1.38
func (s *MDMEnterpriseAppsServiceOp) List(ctx context.Context, opt *ListOptions) ([]MDMEnterpriseApp, *Response, error)
List lists all the MDM enterprise apps.
func (*MDMEnterpriseAppsServiceOp) Update ¶ added in v0.1.38
func (s *MDMEnterpriseAppsServiceOp) Update(ctx context.Context, meaID string, updateRequest *MDMEnterpriseAppRequest) (*MDMEnterpriseApp, *Response, error)
Update a MDM enterprise app.
type MDMFileVaultConfig ¶ added in v0.1.36
type MDMFileVaultConfig struct { ID int `json:"id,omitempty"` Name string `json:"name"` EscrowLocationDisplayName string `json:"escrow_location_display_name"` AtLoginOnly bool `json:"at_login_only"` BypassAttempts int `json:"bypass_attempts"` ShowRecoveryKey bool `json:"show_recovery_key"` DestroyKeyOnStandby bool `json:"destroy_key_on_standby"` PRKRotationIntervalDays int `json:"prk_rotation_interval_days"` Created Timestamp `json:"created_at,omitempty"` Updated Timestamp `json:"updated_at,omitempty"` }
MDMFileVaultConfig represents a Zentral MDM FileVault configuration
func (MDMFileVaultConfig) String ¶ added in v0.1.36
func (mfc MDMFileVaultConfig) String() string
type MDMFileVaultConfigRequest ¶ added in v0.1.36
type MDMFileVaultConfigRequest struct { Name string `json:"name"` EscrowLocationDisplayName string `json:"escrow_location_display_name"` AtLoginOnly bool `json:"at_login_only"` BypassAttempts int `json:"bypass_attempts"` ShowRecoveryKey bool `json:"show_recovery_key"` DestroyKeyOnStandby bool `json:"destroy_key_on_standby"` PRKRotationIntervalDays int `json:"prk_rotation_interval_days"` }
MDMFileVaultConfigRequest represents a request to create or update a MDM FileVault configuration
type MDMFileVaultConfigsService ¶ added in v0.1.36
type MDMFileVaultConfigsService interface { List(context.Context, *ListOptions) ([]MDMFileVaultConfig, *Response, error) GetByID(context.Context, int) (*MDMFileVaultConfig, *Response, error) GetByName(context.Context, string) (*MDMFileVaultConfig, *Response, error) Create(context.Context, *MDMFileVaultConfigRequest) (*MDMFileVaultConfig, *Response, error) Update(context.Context, int, *MDMFileVaultConfigRequest) (*MDMFileVaultConfig, *Response, error) Delete(context.Context, int) (*Response, error) }
MDMFileVaultConfigsService is an interface for interfacing with the MDM FileVault configuration endpoints of the Zentral API
type MDMFileVaultConfigsServiceOp ¶ added in v0.1.36
type MDMFileVaultConfigsServiceOp struct {
// contains filtered or unexported fields
}
MDMFileVaultConfigsServiceOp handles communication with the MDM FileVault configurations related methods of the Zentral API.
func (*MDMFileVaultConfigsServiceOp) Create ¶ added in v0.1.36
func (s *MDMFileVaultConfigsServiceOp) Create(ctx context.Context, createRequest *MDMFileVaultConfigRequest) (*MDMFileVaultConfig, *Response, error)
Create a new MDM FileVault configuration.
func (*MDMFileVaultConfigsServiceOp) Delete ¶ added in v0.1.36
Delete a MDM FileVault configuration.
func (*MDMFileVaultConfigsServiceOp) GetByID ¶ added in v0.1.36
func (s *MDMFileVaultConfigsServiceOp) GetByID(ctx context.Context, mfcID int) (*MDMFileVaultConfig, *Response, error)
GetByID retrieves a MDM FileVault configuration by id.
func (*MDMFileVaultConfigsServiceOp) GetByName ¶ added in v0.1.36
func (s *MDMFileVaultConfigsServiceOp) GetByName(ctx context.Context, name string) (*MDMFileVaultConfig, *Response, error)
GetByName retrieves a MDM FileVault configuration by name.
func (*MDMFileVaultConfigsServiceOp) List ¶ added in v0.1.36
func (s *MDMFileVaultConfigsServiceOp) List(ctx context.Context, opt *ListOptions) ([]MDMFileVaultConfig, *Response, error)
List lists all the MDM FileVault configurations.
func (*MDMFileVaultConfigsServiceOp) Update ¶ added in v0.1.36
func (s *MDMFileVaultConfigsServiceOp) Update(ctx context.Context, mfcID int, updateRequest *MDMFileVaultConfigRequest) (*MDMFileVaultConfig, *Response, error)
Update a MDM FileVault configuration.
type MDMProfile ¶ added in v0.1.34
type MDMProfile struct { ID string `json:"id"` Source string `json:"source"` MDMArtifactVersion }
MDMProfile represents a Zentral MDM profile
func (MDMProfile) String ¶ added in v0.1.34
func (mp MDMProfile) String() string
type MDMProfileRequest ¶ added in v0.1.34
type MDMProfileRequest struct { Source string `json:"source"` MDMArtifactVersionRequest }
MDMProfileRequest represents a request to create or update a MDM profile
type MDMProfilesService ¶ added in v0.1.34
type MDMProfilesService interface { List(context.Context, *ListOptions) ([]MDMProfile, *Response, error) GetByID(context.Context, string) (*MDMProfile, *Response, error) Create(context.Context, *MDMProfileRequest) (*MDMProfile, *Response, error) Update(context.Context, string, *MDMProfileRequest) (*MDMProfile, *Response, error) Delete(context.Context, string) (*Response, error) }
MDMProfilesService is an interface for interfacing with the MDM profile endpoints of the Zentral API
type MDMProfilesServiceOp ¶ added in v0.1.34
type MDMProfilesServiceOp struct {
// contains filtered or unexported fields
}
MDMProfilesServiceOp handles communication with the MDM profiles related methods of the Zentral API.
func (*MDMProfilesServiceOp) Create ¶ added in v0.1.34
func (s *MDMProfilesServiceOp) Create(ctx context.Context, createRequest *MDMProfileRequest) (*MDMProfile, *Response, error)
Create a new MDM profile.
func (*MDMProfilesServiceOp) GetByID ¶ added in v0.1.34
func (s *MDMProfilesServiceOp) GetByID(ctx context.Context, mpID string) (*MDMProfile, *Response, error)
GetByID retrieves a MDM profile by id.
func (*MDMProfilesServiceOp) List ¶ added in v0.1.34
func (s *MDMProfilesServiceOp) List(ctx context.Context, opt *ListOptions) ([]MDMProfile, *Response, error)
List lists all the MDM profiles.
func (*MDMProfilesServiceOp) Update ¶ added in v0.1.34
func (s *MDMProfilesServiceOp) Update(ctx context.Context, mpID string, updateRequest *MDMProfileRequest) (*MDMProfile, *Response, error)
Update a MDM profile.
type MDMRecoveryPasswordConfig ¶ added in v0.1.37
type MDMRecoveryPasswordConfig struct { ID int `json:"id"` Name string `json:"name"` DynamicPassword bool `json:"dynamic_password"` StaticPassword *string `json:"static_password"` RotationIntervalDays int `json:"rotation_interval_days"` RotateFirmwarePassword bool `json:"rotate_firmware_password"` Created Timestamp `json:"created_at,omitempty"` Updated Timestamp `json:"updated_at,omitempty"` }
MDMRecoveryPasswordConfig represents a Zentral MDM recovery password configuration
func (MDMRecoveryPasswordConfig) String ¶ added in v0.1.37
func (mrpc MDMRecoveryPasswordConfig) String() string
type MDMRecoveryPasswordConfigRequest ¶ added in v0.1.37
type MDMRecoveryPasswordConfigRequest struct { Name string `json:"name"` DynamicPassword bool `json:"dynamic_password"` StaticPassword *string `json:"static_password"` RotationIntervalDays int `json:"rotation_interval_days"` RotateFirmwarePassword bool `json:"rotate_firmware_password"` }
MDMRecoveryPasswordConfigRequest represents a request to create or update a MDM recovery password configuration
type MDMRecoveryPasswordConfigsService ¶ added in v0.1.37
type MDMRecoveryPasswordConfigsService interface { List(context.Context, *ListOptions) ([]MDMRecoveryPasswordConfig, *Response, error) GetByID(context.Context, int) (*MDMRecoveryPasswordConfig, *Response, error) GetByName(context.Context, string) (*MDMRecoveryPasswordConfig, *Response, error) Create(context.Context, *MDMRecoveryPasswordConfigRequest) (*MDMRecoveryPasswordConfig, *Response, error) Update(context.Context, int, *MDMRecoveryPasswordConfigRequest) (*MDMRecoveryPasswordConfig, *Response, error) Delete(context.Context, int) (*Response, error) }
MDMRecoveryPasswordConfigsService is an interface for interfacing with the MDM recovery password configuration endpoints of the Zentral API
type MDMRecoveryPasswordConfigsServiceOp ¶ added in v0.1.37
type MDMRecoveryPasswordConfigsServiceOp struct {
// contains filtered or unexported fields
}
MDMRecoveryPasswordConfigsServiceOp handles communication with the MDM recovery password configurations related methods of the Zentral API.
func (*MDMRecoveryPasswordConfigsServiceOp) Create ¶ added in v0.1.37
func (s *MDMRecoveryPasswordConfigsServiceOp) Create(ctx context.Context, createRequest *MDMRecoveryPasswordConfigRequest) (*MDMRecoveryPasswordConfig, *Response, error)
Create a new MDM recovery password configuration.
func (*MDMRecoveryPasswordConfigsServiceOp) Delete ¶ added in v0.1.37
func (s *MDMRecoveryPasswordConfigsServiceOp) Delete(ctx context.Context, mrpcID int) (*Response, error)
Delete a MDM recovery password configuration.
func (*MDMRecoveryPasswordConfigsServiceOp) GetByID ¶ added in v0.1.37
func (s *MDMRecoveryPasswordConfigsServiceOp) GetByID(ctx context.Context, mrpcID int) (*MDMRecoveryPasswordConfig, *Response, error)
GetByID retrieves a MDM recovery password configuration by id.
func (*MDMRecoveryPasswordConfigsServiceOp) GetByName ¶ added in v0.1.37
func (s *MDMRecoveryPasswordConfigsServiceOp) GetByName(ctx context.Context, name string) (*MDMRecoveryPasswordConfig, *Response, error)
GetByName retrieves a MDM recovery password configuration by name.
func (*MDMRecoveryPasswordConfigsServiceOp) List ¶ added in v0.1.37
func (s *MDMRecoveryPasswordConfigsServiceOp) List(ctx context.Context, opt *ListOptions) ([]MDMRecoveryPasswordConfig, *Response, error)
List lists all the MDM recovery password configurations.
func (*MDMRecoveryPasswordConfigsServiceOp) Update ¶ added in v0.1.37
func (s *MDMRecoveryPasswordConfigsServiceOp) Update(ctx context.Context, mrpcID int, updateRequest *MDMRecoveryPasswordConfigRequest) (*MDMRecoveryPasswordConfig, *Response, error)
Update a MDM recovery password configuration.
type MDMSoftwareUpdateEnforcement ¶ added in v0.1.43
type MDMSoftwareUpdateEnforcement struct { ID int `json:"id"` Name string `json:"name"` DetailsURL string `json:"details_url"` Platforms []string `json:"platforms"` TagIDs []int `json:"tags"` OSVersion string `json:"os_version"` BuildVersion string `json:"build_version"` LocalDateTime *string `json:"local_datetime"` MaxOSVersion string `json:"max_os_version"` DelayDays *int `json:"delay_days"` LocalTime *string `json:"local_time"` Created Timestamp `json:"created_at,omitempty"` Updated Timestamp `json:"updated_at,omitempty"` }
MDMSoftwareUpdateEnforcement represents a Zentral MDM software update enforcement
func (MDMSoftwareUpdateEnforcement) String ¶ added in v0.1.43
func (msue MDMSoftwareUpdateEnforcement) String() string
type MDMSoftwareUpdateEnforcementRequest ¶ added in v0.1.43
type MDMSoftwareUpdateEnforcementRequest struct { Name string `json:"name"` DetailsURL string `json:"details_url"` Platforms []string `json:"platforms"` TagIDs []int `json:"tags"` OSVersion string `json:"os_version"` BuildVersion string `json:"build_version"` LocalDateTime *string `json:"local_datetime"` MaxOSVersion string `json:"max_os_version"` DelayDays *int `json:"delay_days"` LocalTime *string `json:"local_time"` }
MDMSoftwareUpdateEnforcementRequest represents a request to create or update a MDM software update enforcement
type MDMSoftwareUpdateEnforcementsService ¶ added in v0.1.43
type MDMSoftwareUpdateEnforcementsService interface { List(context.Context, *ListOptions) ([]MDMSoftwareUpdateEnforcement, *Response, error) GetByID(context.Context, int) (*MDMSoftwareUpdateEnforcement, *Response, error) GetByName(context.Context, string) (*MDMSoftwareUpdateEnforcement, *Response, error) Create(context.Context, *MDMSoftwareUpdateEnforcementRequest) (*MDMSoftwareUpdateEnforcement, *Response, error) Update(context.Context, int, *MDMSoftwareUpdateEnforcementRequest) (*MDMSoftwareUpdateEnforcement, *Response, error) Delete(context.Context, int) (*Response, error) }
MDMSoftwareUpdateEnforcementsService is an interface for interfacing with the MDM software update enforcement endpoints of the Zentral API
type MDMSoftwareUpdateEnforcementsServiceOp ¶ added in v0.1.43
type MDMSoftwareUpdateEnforcementsServiceOp struct {
// contains filtered or unexported fields
}
MDMSoftwareUpdateEnforcementsServiceOp handles communication with the MDM software update enforcements related methods of the Zentral API.
func (*MDMSoftwareUpdateEnforcementsServiceOp) Create ¶ added in v0.1.43
func (s *MDMSoftwareUpdateEnforcementsServiceOp) Create(ctx context.Context, createRequest *MDMSoftwareUpdateEnforcementRequest) (*MDMSoftwareUpdateEnforcement, *Response, error)
Create a new MDM software update enforcement.
func (*MDMSoftwareUpdateEnforcementsServiceOp) Delete ¶ added in v0.1.43
func (s *MDMSoftwareUpdateEnforcementsServiceOp) Delete(ctx context.Context, msueID int) (*Response, error)
Delete a MDM software update enforcement.
func (*MDMSoftwareUpdateEnforcementsServiceOp) GetByID ¶ added in v0.1.43
func (s *MDMSoftwareUpdateEnforcementsServiceOp) GetByID(ctx context.Context, msueID int) (*MDMSoftwareUpdateEnforcement, *Response, error)
GetByID retrieves a MDM software update enforcement by id.
func (*MDMSoftwareUpdateEnforcementsServiceOp) GetByName ¶ added in v0.1.43
func (s *MDMSoftwareUpdateEnforcementsServiceOp) GetByName(ctx context.Context, name string) (*MDMSoftwareUpdateEnforcement, *Response, error)
GetByName retrieves a MDM software update enforcement by name.
func (*MDMSoftwareUpdateEnforcementsServiceOp) List ¶ added in v0.1.43
func (s *MDMSoftwareUpdateEnforcementsServiceOp) List(ctx context.Context, opt *ListOptions) ([]MDMSoftwareUpdateEnforcement, *Response, error)
List lists all the MDM software update enforcements.
func (*MDMSoftwareUpdateEnforcementsServiceOp) Update ¶ added in v0.1.43
func (s *MDMSoftwareUpdateEnforcementsServiceOp) Update(ctx context.Context, msueID int, updateRequest *MDMSoftwareUpdateEnforcementRequest) (*MDMSoftwareUpdateEnforcement, *Response, error)
Update a MDM software update enforcement.
type MetaBusinessUnit ¶
type MetaBusinessUnit struct { ID int `json:"id,omitempty"` Name string `json:"name,omitempty"` APIEnrollmentEnabled bool `json:"api_enrollment_enabled"` Created Timestamp `json:"created_at,omitempty"` Updated Timestamp `json:"updated_at,omitempty"` }
MetaBusinessUnit represents a Zentral MetaBusinessUnit
func (MetaBusinessUnit) String ¶
func (mbu MetaBusinessUnit) String() string
type MetaBusinessUnitCreateRequest ¶
type MetaBusinessUnitCreateRequest struct { Name string `json:"name"` // Boolean to enable API enrollments. APIEnrollmentEnabled bool `json:"api_enrollment_enabled"` }
MetaBusinessUnitCreateRequest represents a request to create a meta business unit.
type MetaBusinessUnitUpdateRequest ¶
type MetaBusinessUnitUpdateRequest struct { Name string `json:"name"` // Boolean to enable API enrollments. // If set, it cannot be unset. APIEnrollmentEnabled bool `json:"api_enrollment_enabled"` }
MetaBusinessUnitUpdateRequest represents a request to update a meta business unit.
type MetaBusinessUnitsService ¶
type MetaBusinessUnitsService interface { List(context.Context, *ListOptions) ([]MetaBusinessUnit, *Response, error) GetByID(context.Context, int) (*MetaBusinessUnit, *Response, error) GetByName(context.Context, string) (*MetaBusinessUnit, *Response, error) Create(context.Context, *MetaBusinessUnitCreateRequest) (*MetaBusinessUnit, *Response, error) Update(context.Context, int, *MetaBusinessUnitUpdateRequest) (*MetaBusinessUnit, *Response, error) Delete(context.Context, int) (*Response, error) }
MetaBusinessUnitsService is an interface for interfacing with the meta business units endpoints of the Zentral API
type MetaBusinessUnitsServiceOp ¶
type MetaBusinessUnitsServiceOp struct {
// contains filtered or unexported fields
}
MetaBusinessUnitsServiceOp handles communication with the meta business units related methods of the Zentral API.
func (*MetaBusinessUnitsServiceOp) Create ¶
func (s *MetaBusinessUnitsServiceOp) Create(ctx context.Context, createRequest *MetaBusinessUnitCreateRequest) (*MetaBusinessUnit, *Response, error)
Create a new meta business unit.
func (*MetaBusinessUnitsServiceOp) GetByID ¶
func (s *MetaBusinessUnitsServiceOp) GetByID(ctx context.Context, mbuID int) (*MetaBusinessUnit, *Response, error)
GetByID retrieves a meta business unit by id.
func (*MetaBusinessUnitsServiceOp) GetByName ¶
func (s *MetaBusinessUnitsServiceOp) GetByName(ctx context.Context, name string) (*MetaBusinessUnit, *Response, error)
GetByName retrieves a meta business unit by name.
func (*MetaBusinessUnitsServiceOp) List ¶
func (s *MetaBusinessUnitsServiceOp) List(ctx context.Context, opt *ListOptions) ([]MetaBusinessUnit, *Response, error)
List lists all the meta business units.
func (*MetaBusinessUnitsServiceOp) Update ¶
func (s *MetaBusinessUnitsServiceOp) Update(ctx context.Context, mbuID int, updateRequest *MetaBusinessUnitUpdateRequest) (*MetaBusinessUnit, *Response, error)
Update a meta business unit.
type MonolithCatalog ¶ added in v0.1.21
type MonolithCatalog struct { ID int `json:"id"` RepositoryID int `json:"repository"` Name string `json:"name"` Created Timestamp `json:"created_at"` Updated Timestamp `json:"updated_at"` ArchivedAt *Timestamp `json:"archived_at"` }
MonolithCatalog represents a Zentral MonolithCatalog
func (MonolithCatalog) String ¶ added in v0.1.21
func (se MonolithCatalog) String() string
type MonolithCatalogRequest ¶ added in v0.1.21
type MonolithCatalogRequest struct { Name string `json:"name"` RepositoryID int `json:"repository"` }
MonolithCatalogRequest represents a request to create or update a Monolith catalog
type MonolithCatalogsService ¶ added in v0.1.21
type MonolithCatalogsService interface { List(context.Context, *ListOptions) ([]MonolithCatalog, *Response, error) GetByID(context.Context, int) (*MonolithCatalog, *Response, error) GetByName(context.Context, string) (*MonolithCatalog, *Response, error) Create(context.Context, *MonolithCatalogRequest) (*MonolithCatalog, *Response, error) Update(context.Context, int, *MonolithCatalogRequest) (*MonolithCatalog, *Response, error) Delete(context.Context, int) (*Response, error) }
MonolithCatalogsService is an interface for interfacing with the Monolith catalogs endpoints of the Zentral API
type MonolithCatalogsServiceOp ¶ added in v0.1.21
type MonolithCatalogsServiceOp struct {
// contains filtered or unexported fields
}
MonolithCatalogsServiceOp handles comcunication with the Monolith catalogs related methods of the Zentral API.
func (*MonolithCatalogsServiceOp) Create ¶ added in v0.1.21
func (s *MonolithCatalogsServiceOp) Create(ctx context.Context, createRequest *MonolithCatalogRequest) (*MonolithCatalog, *Response, error)
Create a new Monolith catalog.
func (*MonolithCatalogsServiceOp) GetByID ¶ added in v0.1.21
func (s *MonolithCatalogsServiceOp) GetByID(ctx context.Context, mcID int) (*MonolithCatalog, *Response, error)
GetByID retrieves a Monolith catalog by id.
func (*MonolithCatalogsServiceOp) GetByName ¶ added in v0.1.21
func (s *MonolithCatalogsServiceOp) GetByName(ctx context.Context, name string) (*MonolithCatalog, *Response, error)
GetByName retrieves a Monolith catalog by name.
func (*MonolithCatalogsServiceOp) List ¶ added in v0.1.21
func (s *MonolithCatalogsServiceOp) List(ctx context.Context, opt *ListOptions) ([]MonolithCatalog, *Response, error)
List lists all the Monolith catalogs.
func (*MonolithCatalogsServiceOp) Update ¶ added in v0.1.21
func (s *MonolithCatalogsServiceOp) Update(ctx context.Context, mcID int, updateRequest *MonolithCatalogRequest) (*MonolithCatalog, *Response, error)
Update a Monolith catalog.
type MonolithCondition ¶ added in v0.1.26
type MonolithCondition struct { ID int `json:"id"` Name string `json:"name"` Predicate string `json:"predicate"` Created Timestamp `json:"created_at"` Updated Timestamp `json:"updated_at"` }
MonolithCondition represents a Zentral MonolithCondition
func (MonolithCondition) String ¶ added in v0.1.26
func (se MonolithCondition) String() string
type MonolithConditionRequest ¶ added in v0.1.26
type MonolithConditionRequest struct { Name string `json:"name"` Predicate string `json:"predicate"` }
MonolithConditionRequest represents a request to create or update a Monolith condition
type MonolithConditionsService ¶ added in v0.1.26
type MonolithConditionsService interface { List(context.Context, *ListOptions) ([]MonolithCondition, *Response, error) GetByID(context.Context, int) (*MonolithCondition, *Response, error) GetByName(context.Context, string) (*MonolithCondition, *Response, error) Create(context.Context, *MonolithConditionRequest) (*MonolithCondition, *Response, error) Update(context.Context, int, *MonolithConditionRequest) (*MonolithCondition, *Response, error) Delete(context.Context, int) (*Response, error) }
MonolithConditionsService is an interface for interfacing with the Monolith conditions endpoints of the Zentral API
type MonolithConditionsServiceOp ¶ added in v0.1.26
type MonolithConditionsServiceOp struct {
// contains filtered or unexported fields
}
MonolithConditionsServiceOp handles comcunication with the Monolith conditions related methods of the Zentral API.
func (*MonolithConditionsServiceOp) Create ¶ added in v0.1.26
func (s *MonolithConditionsServiceOp) Create(ctx context.Context, createRequest *MonolithConditionRequest) (*MonolithCondition, *Response, error)
Create a new Monolith condition.
func (*MonolithConditionsServiceOp) GetByID ¶ added in v0.1.26
func (s *MonolithConditionsServiceOp) GetByID(ctx context.Context, mcID int) (*MonolithCondition, *Response, error)
GetByID retrieves a Monolith condition by id.
func (*MonolithConditionsServiceOp) GetByName ¶ added in v0.1.26
func (s *MonolithConditionsServiceOp) GetByName(ctx context.Context, name string) (*MonolithCondition, *Response, error)
GetByName retrieves a Monolith condition by name.
func (*MonolithConditionsServiceOp) List ¶ added in v0.1.26
func (s *MonolithConditionsServiceOp) List(ctx context.Context, opt *ListOptions) ([]MonolithCondition, *Response, error)
List lists all the Monolith conditions.
func (*MonolithConditionsServiceOp) Update ¶ added in v0.1.26
func (s *MonolithConditionsServiceOp) Update(ctx context.Context, mcID int, updateRequest *MonolithConditionRequest) (*MonolithCondition, *Response, error)
Update a Monolith condition.
type MonolithEnrollment ¶ added in v0.1.27
type MonolithEnrollment struct { ID int `json:"id"` ManifestID int `json:"manifest"` EnrolledMachinesCount int `json:"enrolled_machines_count"` Secret EnrollmentSecret `json:"secret"` Version int `json:"version"` ConfigProfileURL string `json:"configuration_profile_download_url"` PlistURL string `json:"plist_download_url"` Created Timestamp `json:"created_at,omitempty"` Updated Timestamp `json:"updated_at,omitempty"` }
MonolithEnrollment represents a Zentral MonolithEnrollment
func (MonolithEnrollment) String ¶ added in v0.1.27
func (se MonolithEnrollment) String() string
type MonolithEnrollmentRequest ¶ added in v0.1.27
type MonolithEnrollmentRequest struct { ManifestID int `json:"manifest"` Secret EnrollmentSecretRequest `json:"secret"` }
MonolithEnrollmentRequest represents a request to create or update a Monolith enrollment
type MonolithEnrollmentsService ¶ added in v0.1.27
type MonolithEnrollmentsService interface { List(context.Context, *ListOptions) ([]MonolithEnrollment, *Response, error) GetByID(context.Context, int) (*MonolithEnrollment, *Response, error) GetByManifestID(context.Context, int) ([]MonolithEnrollment, *Response, error) Create(context.Context, *MonolithEnrollmentRequest) (*MonolithEnrollment, *Response, error) Update(context.Context, int, *MonolithEnrollmentRequest) (*MonolithEnrollment, *Response, error) Delete(context.Context, int) (*Response, error) }
MonolithEnrollmentsService is an interface for interfacing with the Monolith enrollments endpoints of the Zentral API
type MonolithEnrollmentsServiceOp ¶ added in v0.1.27
type MonolithEnrollmentsServiceOp struct {
// contains filtered or unexported fields
}
MonolithEnrollmentsServiceOp handles communication with the Monolith enrollments related methods of the Zentral API.
func (*MonolithEnrollmentsServiceOp) Create ¶ added in v0.1.27
func (s *MonolithEnrollmentsServiceOp) Create(ctx context.Context, createRequest *MonolithEnrollmentRequest) (*MonolithEnrollment, *Response, error)
Create a new Monolith enrollment.
func (*MonolithEnrollmentsServiceOp) GetByID ¶ added in v0.1.27
func (s *MonolithEnrollmentsServiceOp) GetByID(ctx context.Context, meID int) (*MonolithEnrollment, *Response, error)
GetByID retrieves a Monolith enrollment by id.
func (*MonolithEnrollmentsServiceOp) GetByManifestID ¶ added in v0.1.27
func (s *MonolithEnrollmentsServiceOp) GetByManifestID(ctx context.Context, mID int) ([]MonolithEnrollment, *Response, error)
GetByManifestID retrieves the Monolith enrollments for a given manifest.
func (*MonolithEnrollmentsServiceOp) List ¶ added in v0.1.27
func (s *MonolithEnrollmentsServiceOp) List(ctx context.Context, opt *ListOptions) ([]MonolithEnrollment, *Response, error)
List lists all the Monolith enrollments.
func (*MonolithEnrollmentsServiceOp) Update ¶ added in v0.1.27
func (s *MonolithEnrollmentsServiceOp) Update(ctx context.Context, meID int, updateRequest *MonolithEnrollmentRequest) (*MonolithEnrollment, *Response, error)
Update a Monolith enrollment.
type MonolithManifest ¶ added in v0.1.20
type MonolithManifest struct { ID int `json:"id"` Name string `json:"name"` MetaBusinessUnitID int `json:"meta_business_unit"` Version int `json:"version"` Created Timestamp `json:"created_at,omitempty"` Updated Timestamp `json:"updated_at,omitempty"` }
MonolithManifest represents a Zentral MonolithManifest
func (MonolithManifest) String ¶ added in v0.1.20
func (se MonolithManifest) String() string
type MonolithManifestCatalog ¶ added in v0.1.22
type MonolithManifestCatalog struct { ID int `json:"id"` ManifestID int `json:"manifest"` CatalogID int `json:"catalog"` TagIDs []int `json:"tags"` }
MonolithManifestCatalog represents a Zentral manifest catalog.
func (MonolithManifestCatalog) String ¶ added in v0.1.22
func (se MonolithManifestCatalog) String() string
type MonolithManifestCatalogRequest ¶ added in v0.1.22
type MonolithManifestCatalogRequest struct { ManifestID int `json:"manifest"` CatalogID int `json:"catalog"` TagIDs []int `json:"tags"` }
MonolithManifestCatalogRequest represents a request to create or update a Monolith manifest catalog.
type MonolithManifestCatalogsService ¶ added in v0.1.22
type MonolithManifestCatalogsService interface { List(context.Context, *ListOptions) ([]MonolithManifestCatalog, *Response, error) GetByID(context.Context, int) (*MonolithManifestCatalog, *Response, error) GetByCatalogID(context.Context, int) ([]MonolithManifestCatalog, *Response, error) GetByManifestID(context.Context, int) ([]MonolithManifestCatalog, *Response, error) Create(context.Context, *MonolithManifestCatalogRequest) (*MonolithManifestCatalog, *Response, error) Update(context.Context, int, *MonolithManifestCatalogRequest) (*MonolithManifestCatalog, *Response, error) Delete(context.Context, int) (*Response, error) }
MonolithManifestCatalogsService is an interface for interfacing with the Monolith manifest catalogs endpoints of the Zentral API
type MonolithManifestCatalogsServiceOp ¶ added in v0.1.22
type MonolithManifestCatalogsServiceOp struct {
// contains filtered or unexported fields
}
MonolithManifestCatalogsServiceOp handles commcunication with the Monolith manifest catalogs related methods of the Zentral API.
func (*MonolithManifestCatalogsServiceOp) Create ¶ added in v0.1.22
func (s *MonolithManifestCatalogsServiceOp) Create(ctx context.Context, createRequest *MonolithManifestCatalogRequest) (*MonolithManifestCatalog, *Response, error)
Create a new Monolith manifest catalog.
func (*MonolithManifestCatalogsServiceOp) Delete ¶ added in v0.1.22
func (s *MonolithManifestCatalogsServiceOp) Delete(ctx context.Context, mmcID int) (*Response, error)
Delete a Monolith manifest catalog.
func (*MonolithManifestCatalogsServiceOp) GetByCatalogID ¶ added in v0.1.22
func (s *MonolithManifestCatalogsServiceOp) GetByCatalogID(ctx context.Context, mcID int) ([]MonolithManifestCatalog, *Response, error)
GetByCatalogID retrieves Monolith manifest catalogs by catalog ID.
func (*MonolithManifestCatalogsServiceOp) GetByID ¶ added in v0.1.22
func (s *MonolithManifestCatalogsServiceOp) GetByID(ctx context.Context, mmcID int) (*MonolithManifestCatalog, *Response, error)
GetByID retrieves a Monolith manifest catalog by id.
func (*MonolithManifestCatalogsServiceOp) GetByManifestID ¶ added in v0.1.22
func (s *MonolithManifestCatalogsServiceOp) GetByManifestID(ctx context.Context, mmID int) ([]MonolithManifestCatalog, *Response, error)
GetByManifestID retrieves Monolith manifest catalogs by manifest ID.
func (*MonolithManifestCatalogsServiceOp) List ¶ added in v0.1.22
func (s *MonolithManifestCatalogsServiceOp) List(ctx context.Context, opt *ListOptions) ([]MonolithManifestCatalog, *Response, error)
List lists all the Monolith manifest catalogs.
func (*MonolithManifestCatalogsServiceOp) Update ¶ added in v0.1.22
func (s *MonolithManifestCatalogsServiceOp) Update(ctx context.Context, mmcID int, updateRequest *MonolithManifestCatalogRequest) (*MonolithManifestCatalog, *Response, error)
Update a Monolith manifest catalog.
type MonolithManifestRequest ¶ added in v0.1.20
type MonolithManifestRequest struct { Name string `json:"name"` MetaBusinessUnitID int `json:"meta_business_unit"` }
MonolithManifestRequest represents a request to create or update a Monolith manifest
type MonolithManifestSubManifest ¶ added in v0.1.24
type MonolithManifestSubManifest struct { ID int `json:"id"` ManifestID int `json:"manifest"` SubManifestID int `json:"sub_manifest"` TagIDs []int `json:"tags"` }
MonolithManifestSubManifest represents a Zentral manifest sub manifest.
func (MonolithManifestSubManifest) String ¶ added in v0.1.24
func (se MonolithManifestSubManifest) String() string
type MonolithManifestSubManifestRequest ¶ added in v0.1.24
type MonolithManifestSubManifestRequest struct { ManifestID int `json:"manifest"` SubManifestID int `json:"sub_manifest"` TagIDs []int `json:"tags"` }
MonolithManifestSubManifestRequest represents a request to create or update a Monolith manifest sub manifest.
type MonolithManifestSubManifestsService ¶ added in v0.1.24
type MonolithManifestSubManifestsService interface { List(context.Context, *ListOptions) ([]MonolithManifestSubManifest, *Response, error) GetByID(context.Context, int) (*MonolithManifestSubManifest, *Response, error) GetByManifestID(context.Context, int) ([]MonolithManifestSubManifest, *Response, error) GetBySubManifestID(context.Context, int) ([]MonolithManifestSubManifest, *Response, error) Create(context.Context, *MonolithManifestSubManifestRequest) (*MonolithManifestSubManifest, *Response, error) Update(context.Context, int, *MonolithManifestSubManifestRequest) (*MonolithManifestSubManifest, *Response, error) Delete(context.Context, int) (*Response, error) }
MonolithManifestSubManifestsService is an interface for interfacing with the Monolith manifest sub manifests endpoints of the Zentral API
type MonolithManifestSubManifestsServiceOp ¶ added in v0.1.24
type MonolithManifestSubManifestsServiceOp struct {
// contains filtered or unexported fields
}
MonolithManifestSubManifestsServiceOp handles comsmunication with the Monolith manifest sub manifests related methods of the Zentral API.
func (*MonolithManifestSubManifestsServiceOp) Create ¶ added in v0.1.24
func (s *MonolithManifestSubManifestsServiceOp) Create(ctx context.Context, createRequest *MonolithManifestSubManifestRequest) (*MonolithManifestSubManifest, *Response, error)
Create a new Monolith manifest sub manifest.
func (*MonolithManifestSubManifestsServiceOp) Delete ¶ added in v0.1.24
func (s *MonolithManifestSubManifestsServiceOp) Delete(ctx context.Context, msmID int) (*Response, error)
Delete a Monolith manifest sub manifest.
func (*MonolithManifestSubManifestsServiceOp) GetByID ¶ added in v0.1.24
func (s *MonolithManifestSubManifestsServiceOp) GetByID(ctx context.Context, msmID int) (*MonolithManifestSubManifest, *Response, error)
GetByID retrieves a Monolith manifest sub manifest by id.
func (*MonolithManifestSubManifestsServiceOp) GetByManifestID ¶ added in v0.1.24
func (s *MonolithManifestSubManifestsServiceOp) GetByManifestID(ctx context.Context, mID int) ([]MonolithManifestSubManifest, *Response, error)
GetByManifestID retrieves Monolith manifest sub manifests by manifest ID.
func (*MonolithManifestSubManifestsServiceOp) GetBySubManifestID ¶ added in v0.1.24
func (s *MonolithManifestSubManifestsServiceOp) GetBySubManifestID(ctx context.Context, msmID int) ([]MonolithManifestSubManifest, *Response, error)
GetBySubManifestID retrieves Monolith manifest sub manifests by sub manifest ID.
func (*MonolithManifestSubManifestsServiceOp) List ¶ added in v0.1.24
func (s *MonolithManifestSubManifestsServiceOp) List(ctx context.Context, opt *ListOptions) ([]MonolithManifestSubManifest, *Response, error)
List lists all the Monolith manifest sub manifests.
func (*MonolithManifestSubManifestsServiceOp) Update ¶ added in v0.1.24
func (s *MonolithManifestSubManifestsServiceOp) Update(ctx context.Context, msmID int, updateRequest *MonolithManifestSubManifestRequest) (*MonolithManifestSubManifest, *Response, error)
Update a Monolith manifest sub manifest.
type MonolithManifestsService ¶ added in v0.1.20
type MonolithManifestsService interface { List(context.Context, *ListOptions) ([]MonolithManifest, *Response, error) GetByID(context.Context, int) (*MonolithManifest, *Response, error) GetByName(context.Context, string) (*MonolithManifest, *Response, error) Create(context.Context, *MonolithManifestRequest) (*MonolithManifest, *Response, error) Update(context.Context, int, *MonolithManifestRequest) (*MonolithManifest, *Response, error) Delete(context.Context, int) (*Response, error) }
MonolithManifestsService is an interface for interfacing with the Monolith manifests endpoints of the Zentral API
type MonolithManifestsServiceOp ¶ added in v0.1.20
type MonolithManifestsServiceOp struct {
// contains filtered or unexported fields
}
MonolithManifestsServiceOp handles communication with the Monolith manifests related methods of the Zentral API.
func (*MonolithManifestsServiceOp) Create ¶ added in v0.1.20
func (s *MonolithManifestsServiceOp) Create(ctx context.Context, createRequest *MonolithManifestRequest) (*MonolithManifest, *Response, error)
Create a new Monolith manifest.
func (*MonolithManifestsServiceOp) GetByID ¶ added in v0.1.20
func (s *MonolithManifestsServiceOp) GetByID(ctx context.Context, mmID int) (*MonolithManifest, *Response, error)
GetByID retrieves a Monolith manifest by id.
func (*MonolithManifestsServiceOp) GetByName ¶ added in v0.1.20
func (s *MonolithManifestsServiceOp) GetByName(ctx context.Context, name string) (*MonolithManifest, *Response, error)
GetByName retrieves a Monolith manifest by name.
func (*MonolithManifestsServiceOp) List ¶ added in v0.1.20
func (s *MonolithManifestsServiceOp) List(ctx context.Context, opt *ListOptions) ([]MonolithManifest, *Response, error)
List lists all the Monolith manifests.
func (*MonolithManifestsServiceOp) Update ¶ added in v0.1.20
func (s *MonolithManifestsServiceOp) Update(ctx context.Context, mmID int, updateRequest *MonolithManifestRequest) (*MonolithManifest, *Response, error)
Update a Monolith manifest.
type MonolithRepositoriesService ¶ added in v0.1.46
type MonolithRepositoriesService interface { List(context.Context, *ListOptions) ([]MonolithRepository, *Response, error) GetByID(context.Context, int) (*MonolithRepository, *Response, error) GetByName(context.Context, string) (*MonolithRepository, *Response, error) Create(context.Context, *MonolithRepositoryRequest) (*MonolithRepository, *Response, error) Update(context.Context, int, *MonolithRepositoryRequest) (*MonolithRepository, *Response, error) Delete(context.Context, int) (*Response, error) }
MonolithRepositoriesService is an interface for interfacing with the Monolith manifests endpoints of the Zentral API
type MonolithRepositoriesServiceOp ¶ added in v0.1.46
type MonolithRepositoriesServiceOp struct {
// contains filtered or unexported fields
}
MonolithRepositoriesServiceOp handles comrunication with the Monolith manifests related methods of the Zentral API.
func (*MonolithRepositoriesServiceOp) Create ¶ added in v0.1.46
func (s *MonolithRepositoriesServiceOp) Create(ctx context.Context, createRequest *MonolithRepositoryRequest) (*MonolithRepository, *Response, error)
Create a new Monolith manifest.
func (*MonolithRepositoriesServiceOp) GetByID ¶ added in v0.1.46
func (s *MonolithRepositoriesServiceOp) GetByID(ctx context.Context, mrID int) (*MonolithRepository, *Response, error)
GetByID retrieves a Monolith manifest by id.
func (*MonolithRepositoriesServiceOp) GetByName ¶ added in v0.1.46
func (s *MonolithRepositoriesServiceOp) GetByName(ctx context.Context, name string) (*MonolithRepository, *Response, error)
GetByName retrieves a Monolith manifest by name.
func (*MonolithRepositoriesServiceOp) List ¶ added in v0.1.46
func (s *MonolithRepositoriesServiceOp) List(ctx context.Context, opt *ListOptions) ([]MonolithRepository, *Response, error)
List lists all the Monolith manifests.
func (*MonolithRepositoriesServiceOp) Update ¶ added in v0.1.46
func (s *MonolithRepositoriesServiceOp) Update(ctx context.Context, mrID int, updateRequest *MonolithRepositoryRequest) (*MonolithRepository, *Response, error)
Update a Monolith manifest.
type MonolithRepository ¶ added in v0.1.46
type MonolithRepository struct { ID int `json:"id"` Name string `json:"name"` MetaBusinessUnitID *int `json:"meta_business_unit"` Backend string `json:"backend"` S3 *MonolithS3Backend `json:"s3_kwargs"` Created Timestamp `json:"created_at"` Updated Timestamp `json:"updated_at"` }
func (MonolithRepository) String ¶ added in v0.1.46
func (mr MonolithRepository) String() string
type MonolithRepositoryRequest ¶ added in v0.1.46
type MonolithRepositoryRequest struct { Name string `json:"name"` MetaBusinessUnitID *int `json:"meta_business_unit"` Backend string `json:"backend"` S3 *MonolithS3Backend `json:"s3_kwargs,omitempty"` }
MonolithRepositoryRequest represents a request to create or update a Monolith manifest
type MonolithS3Backend ¶ added in v0.1.46
type MonolithS3Backend struct { Bucket string `json:"bucket"` RegionName string `json:"region_name"` Prefix string `json:"prefix"` AccessKeyID string `json:"access_key_id"` SecretAccessKey string `json:"secret_access_key"` AssumeRoleARN string `json:"assume_role_arn"` SignatureVersion string `json:"signature_version"` EndpointURL string `json:"endpoint_url"` CloudfrontDomain string `json:"cloudfront_domain"` CloudfrontKeyID string `json:"cloudfront_key_id"` CloudfrontPrivkeyPEM string `json:"cloudfront_privkey_pem"` }
type MonolithSubManifest ¶ added in v0.1.23
type MonolithSubManifest struct { ID int `json:"id"` Name string `json:"name"` Description string `json:"description"` MetaBusinessUnitID *int `json:"meta_business_unit"` Created Timestamp `json:"created_at,omitempty"` Updated Timestamp `json:"updated_at,omitempty"` }
MonolithSubManifest represents a Zentral MonolithSubManifest
func (MonolithSubManifest) String ¶ added in v0.1.23
func (se MonolithSubManifest) String() string
type MonolithSubManifestPkgInfo ¶ added in v0.1.25
type MonolithSubManifestPkgInfo struct { ID int `json:"id"` SubManifestID int `json:"sub_manifest"` Key string `json:"key"` PkgInfoName string `json:"pkg_info_name"` FeaturedItem bool `json:"featured_item"` ConditionID *int `json:"condition"` ShardModulo int `json:"shard_modulo"` DefaultShard int `json:"default_shard"` ExcludedTagIDs []int `json:"excluded_tags"` TagShards []TagShard `json:"tag_shards"` Created Timestamp `json:"created_at,omitempty"` Updated Timestamp `json:"updated_at,omitempty"` }
MonolithSubManifestPkgInfo represents a Zentral MonolithSubManifestPkgInfo
func (MonolithSubManifestPkgInfo) String ¶ added in v0.1.25
func (se MonolithSubManifestPkgInfo) String() string
type MonolithSubManifestPkgInfoRequest ¶ added in v0.1.25
type MonolithSubManifestPkgInfoRequest struct { SubManifestID int `json:"sub_manifest"` Key string `json:"key"` PkgInfoName string `json:"pkg_info_name"` FeaturedItem bool `json:"featured_item"` ConditionID *int `json:"condition"` ShardModulo int `json:"shard_modulo"` DefaultShard int `json:"default_shard"` ExcludedTagIDs []int `json:"excluded_tags"` TagShards []TagShard `json:"tag_shards"` }
MonolithSubManifestPkgInfoRequest represents a request to create or update a Monolith sub manifest pkg info
type MonolithSubManifestPkgInfosService ¶ added in v0.1.25
type MonolithSubManifestPkgInfosService interface { List(context.Context, *ListOptions) ([]MonolithSubManifestPkgInfo, *Response, error) GetByID(context.Context, int) (*MonolithSubManifestPkgInfo, *Response, error) GetBySubManifestID(context.Context, int) ([]MonolithSubManifestPkgInfo, *Response, error) Create(context.Context, *MonolithSubManifestPkgInfoRequest) (*MonolithSubManifestPkgInfo, *Response, error) Update(context.Context, int, *MonolithSubManifestPkgInfoRequest) (*MonolithSubManifestPkgInfo, *Response, error) Delete(context.Context, int) (*Response, error) }
MonolithSubManifestPkgInfosService is an interface for interfacing with the Monolith sub manifest pkg infos endpoints of the Zentral API
type MonolithSubManifestPkgInfosServiceOp ¶ added in v0.1.25
type MonolithSubManifestPkgInfosServiceOp struct {
// contains filtered or unexported fields
}
MonolithSubManifestPkgInfosServiceOp handles cosmpiunication with the Monolith sub manifest pkg infos related methods of the Zentral API.
func (*MonolithSubManifestPkgInfosServiceOp) Create ¶ added in v0.1.25
func (s *MonolithSubManifestPkgInfosServiceOp) Create(ctx context.Context, createRequest *MonolithSubManifestPkgInfoRequest) (*MonolithSubManifestPkgInfo, *Response, error)
Create a new Monolith sub manifest pkg info.
func (*MonolithSubManifestPkgInfosServiceOp) Delete ¶ added in v0.1.25
func (s *MonolithSubManifestPkgInfosServiceOp) Delete(ctx context.Context, smpiID int) (*Response, error)
Delete a Monolith sub manifest pkg info.
func (*MonolithSubManifestPkgInfosServiceOp) GetByID ¶ added in v0.1.25
func (s *MonolithSubManifestPkgInfosServiceOp) GetByID(ctx context.Context, smpiID int) (*MonolithSubManifestPkgInfo, *Response, error)
GetByID retrieves a Monolith sub manifest pkg info by id.
func (*MonolithSubManifestPkgInfosServiceOp) GetBySubManifestID ¶ added in v0.1.25
func (s *MonolithSubManifestPkgInfosServiceOp) GetBySubManifestID(ctx context.Context, smID int) ([]MonolithSubManifestPkgInfo, *Response, error)
GetBySubManifestID retrieves Monolith sub manifest pkg infos by sub manifest ID.
func (*MonolithSubManifestPkgInfosServiceOp) List ¶ added in v0.1.25
func (s *MonolithSubManifestPkgInfosServiceOp) List(ctx context.Context, opt *ListOptions) ([]MonolithSubManifestPkgInfo, *Response, error)
List lists all the Monolith sub manifest pkg infos.
func (*MonolithSubManifestPkgInfosServiceOp) Update ¶ added in v0.1.25
func (s *MonolithSubManifestPkgInfosServiceOp) Update(ctx context.Context, smpiID int, updateRequest *MonolithSubManifestPkgInfoRequest) (*MonolithSubManifestPkgInfo, *Response, error)
Update a Monolith sub manifest pkg info.
type MonolithSubManifestRequest ¶ added in v0.1.23
type MonolithSubManifestRequest struct { Name string `json:"name"` Description string `json:"description"` MetaBusinessUnitID *int `json:"meta_business_unit"` }
MonolithSubManifestRequest represents a request to create or update a Monolith sub manifest
type MonolithSubManifestsService ¶ added in v0.1.23
type MonolithSubManifestsService interface { List(context.Context, *ListOptions) ([]MonolithSubManifest, *Response, error) GetByID(context.Context, int) (*MonolithSubManifest, *Response, error) GetByName(context.Context, string) (*MonolithSubManifest, *Response, error) Create(context.Context, *MonolithSubManifestRequest) (*MonolithSubManifest, *Response, error) Update(context.Context, int, *MonolithSubManifestRequest) (*MonolithSubManifest, *Response, error) Delete(context.Context, int) (*Response, error) }
MonolithSubManifestsService is an interface for interfacing with the Monolith sub manifests endpoints of the Zentral API
type MonolithSubManifestsServiceOp ¶ added in v0.1.23
type MonolithSubManifestsServiceOp struct {
// contains filtered or unexported fields
}
MonolithSubManifestsServiceOp handles comsmunication with the Monolith sub manifests related methods of the Zentral API.
func (*MonolithSubManifestsServiceOp) Create ¶ added in v0.1.23
func (s *MonolithSubManifestsServiceOp) Create(ctx context.Context, createRequest *MonolithSubManifestRequest) (*MonolithSubManifest, *Response, error)
Create a new Monolith sub manifest.
func (*MonolithSubManifestsServiceOp) GetByID ¶ added in v0.1.23
func (s *MonolithSubManifestsServiceOp) GetByID(ctx context.Context, msmID int) (*MonolithSubManifest, *Response, error)
GetByID retrieves a Monolith sub manifest by id.
func (*MonolithSubManifestsServiceOp) GetByName ¶ added in v0.1.23
func (s *MonolithSubManifestsServiceOp) GetByName(ctx context.Context, name string) (*MonolithSubManifest, *Response, error)
GetByName retrieves a Monolith sub manifest by name.
func (*MonolithSubManifestsServiceOp) List ¶ added in v0.1.23
func (s *MonolithSubManifestsServiceOp) List(ctx context.Context, opt *ListOptions) ([]MonolithSubManifest, *Response, error)
List lists all the Monolith sub manifests.
func (*MonolithSubManifestsServiceOp) Update ¶ added in v0.1.23
func (s *MonolithSubManifestsServiceOp) Update(ctx context.Context, msmID int, updateRequest *MonolithSubManifestRequest) (*MonolithSubManifest, *Response, error)
Update a Monolith sub manifest.
type MunkiConfiguration ¶ added in v0.1.28
type MunkiConfiguration struct { ID int `json:"id,omitempty"` Name string `json:"name"` Description string `json:"description"` InventoryAppsFullInfoShard int `json:"inventory_apps_full_info_shard"` PrincipalUserDetectionSources []string `json:"principal_user_detection_sources"` PrincipalUserDetectionDomains []string `json:"principal_user_detection_domains"` CollectedConditionKeys []string `json:"collected_condition_keys"` ManagedInstallsSyncIntervalDays int `json:"managed_installs_sync_interval_days"` ScriptChecksRunIntervalSeconds int `json:"script_checks_run_interval_seconds"` AutoReinstallIncidents bool `json:"auto_reinstall_incidents"` AutoFailedInstallIncidents bool `json:"auto_failed_install_incidents"` Version int `json:"version"` Created Timestamp `json:"created_at,omitempty"` Updated Timestamp `json:"updated_at,omitempty"` }
MunkiConfiguration represents a Zentral MunkiConfiguration
func (MunkiConfiguration) String ¶ added in v0.1.28
func (mc MunkiConfiguration) String() string
type MunkiConfigurationRequest ¶ added in v0.1.28
type MunkiConfigurationRequest struct { Name string `json:"name"` Description string `json:"description"` InventoryAppsFullInfoShard int `json:"inventory_apps_full_info_shard"` PrincipalUserDetectionSources []string `json:"principal_user_detection_sources"` PrincipalUserDetectionDomains []string `json:"principal_user_detection_domains"` CollectedConditionKeys []string `json:"collected_condition_keys"` ManagedInstallsSyncIntervalDays int `json:"managed_installs_sync_interval_days"` ScriptChecksRunIntervalSeconds int `json:"script_checks_run_interval_seconds"` AutoReinstallIncidents bool `json:"auto_reinstall_incidents"` AutoFailedInstallIncidents bool `json:"auto_failed_install_incidents"` }
MunkiConfigurationRequest represents a request to create or update a Munki configuration
type MunkiConfigurationsService ¶ added in v0.1.28
type MunkiConfigurationsService interface { List(context.Context, *ListOptions) ([]MunkiConfiguration, *Response, error) GetByID(context.Context, int) (*MunkiConfiguration, *Response, error) GetByName(context.Context, string) (*MunkiConfiguration, *Response, error) Create(context.Context, *MunkiConfigurationRequest) (*MunkiConfiguration, *Response, error) Update(context.Context, int, *MunkiConfigurationRequest) (*MunkiConfiguration, *Response, error) Delete(context.Context, int) (*Response, error) }
MunkiConfigurationsService is an interface for interfacing with the Munki configurations endpoints of the Zentral API
type MunkiConfigurationsServiceOp ¶ added in v0.1.28
type MunkiConfigurationsServiceOp struct {
// contains filtered or unexported fields
}
MunkiConfigurationsServiceOp handles communication with the Munki configurations related methods of the Zentral API.
func (*MunkiConfigurationsServiceOp) Create ¶ added in v0.1.28
func (s *MunkiConfigurationsServiceOp) Create(ctx context.Context, createRequest *MunkiConfigurationRequest) (*MunkiConfiguration, *Response, error)
Create a new Munki configuration.
func (*MunkiConfigurationsServiceOp) GetByID ¶ added in v0.1.28
func (s *MunkiConfigurationsServiceOp) GetByID(ctx context.Context, mcID int) (*MunkiConfiguration, *Response, error)
GetByID retrieves a Munki configuration by id.
func (*MunkiConfigurationsServiceOp) GetByName ¶ added in v0.1.28
func (s *MunkiConfigurationsServiceOp) GetByName(ctx context.Context, name string) (*MunkiConfiguration, *Response, error)
GetByName retrieves a Munki configuration by name.
func (*MunkiConfigurationsServiceOp) List ¶ added in v0.1.28
func (s *MunkiConfigurationsServiceOp) List(ctx context.Context, opt *ListOptions) ([]MunkiConfiguration, *Response, error)
List lists all the Munki configurations.
func (*MunkiConfigurationsServiceOp) Update ¶ added in v0.1.28
func (s *MunkiConfigurationsServiceOp) Update(ctx context.Context, mcID int, updateRequest *MunkiConfigurationRequest) (*MunkiConfiguration, *Response, error)
Update a Munki configuration.
type MunkiEnrollment ¶ added in v0.1.29
type MunkiEnrollment struct { ID int `json:"id"` ConfigurationID int `json:"configuration"` EnrolledMachinesCount int `json:"enrolled_machines_count"` Secret EnrollmentSecret `json:"secret"` PackageURL string `json:"package_download_url"` Version int `json:"version"` Created Timestamp `json:"created_at,omitempty"` Updated Timestamp `json:"updated_at,omitempty"` }
MunkiEnrollment represents a Zentral MunkiEnrollment
func (MunkiEnrollment) String ¶ added in v0.1.29
func (se MunkiEnrollment) String() string
type MunkiEnrollmentRequest ¶ added in v0.1.29
type MunkiEnrollmentRequest struct { ConfigurationID int `json:"configuration"` Secret EnrollmentSecretRequest `json:"secret"` }
MunkiEnrollmentRequest represents a request to create or update a Munki enrollment
type MunkiEnrollmentsService ¶ added in v0.1.29
type MunkiEnrollmentsService interface { List(context.Context, *ListOptions) ([]MunkiEnrollment, *Response, error) GetByID(context.Context, int) (*MunkiEnrollment, *Response, error) GetByConfigurationID(context.Context, int) ([]MunkiEnrollment, *Response, error) Create(context.Context, *MunkiEnrollmentRequest) (*MunkiEnrollment, *Response, error) Update(context.Context, int, *MunkiEnrollmentRequest) (*MunkiEnrollment, *Response, error) Delete(context.Context, int) (*Response, error) }
MunkiEnrollmentsService is an interface for interfacing with the Munki enrollments endpoints of the Zentral API
type MunkiEnrollmentsServiceOp ¶ added in v0.1.29
type MunkiEnrollmentsServiceOp struct {
// contains filtered or unexported fields
}
MunkiEnrollmentsServiceOp handles communication with the Munki enrollments related methods of the Zentral API.
func (*MunkiEnrollmentsServiceOp) Create ¶ added in v0.1.29
func (s *MunkiEnrollmentsServiceOp) Create(ctx context.Context, createRequest *MunkiEnrollmentRequest) (*MunkiEnrollment, *Response, error)
Create a new Munki enrollment.
func (*MunkiEnrollmentsServiceOp) GetByConfigurationID ¶ added in v0.1.29
func (s *MunkiEnrollmentsServiceOp) GetByConfigurationID(ctx context.Context, configuration_id int) ([]MunkiEnrollment, *Response, error)
GetByConfigurationID retrieves the Munki enrollments for a given configuration.
func (*MunkiEnrollmentsServiceOp) GetByID ¶ added in v0.1.29
func (s *MunkiEnrollmentsServiceOp) GetByID(ctx context.Context, meID int) (*MunkiEnrollment, *Response, error)
GetByID retrieves a Munki enrollment by id.
func (*MunkiEnrollmentsServiceOp) List ¶ added in v0.1.29
func (s *MunkiEnrollmentsServiceOp) List(ctx context.Context, opt *ListOptions) ([]MunkiEnrollment, *Response, error)
List lists all the Munki enrollments.
func (*MunkiEnrollmentsServiceOp) Update ¶ added in v0.1.29
func (s *MunkiEnrollmentsServiceOp) Update(ctx context.Context, meID int, updateRequest *MunkiEnrollmentRequest) (*MunkiEnrollment, *Response, error)
Update a Munki enrollment.
type MunkiScriptCheck ¶ added in v0.1.42
type MunkiScriptCheck struct { ID int `json:"id"` Name string `json:"name"` Description string `json:"description"` Type string `json:"type"` Source string `json:"source"` ExpectedResult string `json:"expected_result"` ArchAMD64 bool `json:"arch_amd64"` ArchARM64 bool `json:"arch_arm64"` MinOSVersion string `json:"min_os_version"` MaxOSVersion string `json:"max_os_version"` TagIDs []int `json:"tags"` ExcludedTagIDs []int `json:"excluded_tags"` Version int `json:"version"` Created Timestamp `json:"created_at"` Updated Timestamp `json:"updated_at"` }
MunkiScriptCheck represents a Zentral Munki script check.
func (MunkiScriptCheck) String ¶ added in v0.1.42
func (msc MunkiScriptCheck) String() string
type MunkiScriptCheckRequest ¶ added in v0.1.42
type MunkiScriptCheckRequest struct { Name string `json:"name"` Description string `json:"description"` Type string `json:"type"` Source string `json:"source"` ExpectedResult string `json:"expected_result"` ArchAMD64 bool `json:"arch_amd64"` ArchARM64 bool `json:"arch_arm64"` MinOSVersion string `json:"min_os_version"` MaxOSVersion string `json:"max_os_version"` TagIDs []int `json:"tags"` ExcludedTagIDs []int `json:"excluded_tags"` }
MunkiScriptCheckRequest represents a request to create or update a Munki script check.
type MunkiScriptChecksService ¶ added in v0.1.42
type MunkiScriptChecksService interface { List(context.Context, *ListOptions) ([]MunkiScriptCheck, *Response, error) GetByID(context.Context, int) (*MunkiScriptCheck, *Response, error) GetByName(context.Context, string) (*MunkiScriptCheck, *Response, error) Create(context.Context, *MunkiScriptCheckRequest) (*MunkiScriptCheck, *Response, error) Update(context.Context, int, *MunkiScriptCheckRequest) (*MunkiScriptCheck, *Response, error) Delete(context.Context, int) (*Response, error) }
MunkiScriptChecksService is an interface for interfacing with the Munki script checks endpoints of the Zentral API.
type MunkiScriptChecksServiceOp ¶ added in v0.1.42
type MunkiScriptChecksServiceOp struct {
// contains filtered or unexported fields
}
MunkiScriptChecksServiceOp handles communication with the Munki script checks related methods of the Zentral API.
func (*MunkiScriptChecksServiceOp) Create ¶ added in v0.1.42
func (s *MunkiScriptChecksServiceOp) Create(ctx context.Context, createRequest *MunkiScriptCheckRequest) (*MunkiScriptCheck, *Response, error)
Create a new Munki script check.
func (*MunkiScriptChecksServiceOp) GetByID ¶ added in v0.1.42
func (s *MunkiScriptChecksServiceOp) GetByID(ctx context.Context, mscID int) (*MunkiScriptCheck, *Response, error)
GetByID retrieves a Munki script check by id.
func (*MunkiScriptChecksServiceOp) GetByName ¶ added in v0.1.42
func (s *MunkiScriptChecksServiceOp) GetByName(ctx context.Context, name string) (*MunkiScriptCheck, *Response, error)
GetByName retrieves a Munki script check by name.
func (*MunkiScriptChecksServiceOp) List ¶ added in v0.1.42
func (s *MunkiScriptChecksServiceOp) List(ctx context.Context, opt *ListOptions) ([]MunkiScriptCheck, *Response, error)
List lists all the Munki script checks.
func (*MunkiScriptChecksServiceOp) Update ¶ added in v0.1.42
func (s *MunkiScriptChecksServiceOp) Update(ctx context.Context, mscID int, updateRequest *MunkiScriptCheckRequest) (*MunkiScriptCheck, *Response, error)
Update a Munki script check.
type OsqueryATC ¶ added in v0.1.10
type OsqueryATC struct { ID int `json:"id,omitempty"` Name string `json:"name"` Description string `json:"description"` TableName string `json:"table_name"` Query string `json:"query"` Path string `json:"path"` Columns []string `json:"columns"` Platforms []string `json:"platforms"` Created Timestamp `json:"created_at"` Updated Timestamp `json:"updated_at"` }
OsqueryATC represents a Zentral Osquery ATC
func (OsqueryATC) String ¶ added in v0.1.10
func (oa OsqueryATC) String() string
type OsqueryATCRequest ¶ added in v0.1.10
type OsqueryATCRequest struct { Name string `json:"name"` Description string `json:"description"` TableName string `json:"table_name"` Query string `json:"query"` Path string `json:"path"` Columns []string `json:"columns"` Platforms []string `json:"platforms"` }
OsqueryATCRequest represents a request to create or update a Osquery ATC
type OsqueryATCService ¶ added in v0.1.10
type OsqueryATCService interface { List(context.Context, *ListOptions) ([]OsqueryATC, *Response, error) GetByID(context.Context, int) (*OsqueryATC, *Response, error) GetByName(context.Context, string) (*OsqueryATC, *Response, error) Create(context.Context, *OsqueryATCRequest) (*OsqueryATC, *Response, error) Update(context.Context, int, *OsqueryATCRequest) (*OsqueryATC, *Response, error) Delete(context.Context, int) (*Response, error) }
OsqueryATCService is an interface for interfacing with the Osquery automatic table construction endpoints of the Zentral API
type OsqueryATCServiceOp ¶ added in v0.1.10
type OsqueryATCServiceOp struct {
// contains filtered or unexported fields
}
OsqueryATCServiceOp handles communication with the Osquery automatic table construction related methods of the Zentral API.
func (*OsqueryATCServiceOp) Create ¶ added in v0.1.10
func (s *OsqueryATCServiceOp) Create(ctx context.Context, createRequest *OsqueryATCRequest) (*OsqueryATC, *Response, error)
Create a new Osquery ATC.
func (*OsqueryATCServiceOp) GetByID ¶ added in v0.1.10
func (s *OsqueryATCServiceOp) GetByID(ctx context.Context, oaID int) (*OsqueryATC, *Response, error)
GetByID retrieves a Osquery ATC by id.
func (*OsqueryATCServiceOp) GetByName ¶ added in v0.1.10
func (s *OsqueryATCServiceOp) GetByName(ctx context.Context, name string) (*OsqueryATC, *Response, error)
GetByName retrieves a Osquery ATC by name.
func (*OsqueryATCServiceOp) List ¶ added in v0.1.10
func (s *OsqueryATCServiceOp) List(ctx context.Context, opt *ListOptions) ([]OsqueryATC, *Response, error)
List lists all the Osquery ATC.
func (*OsqueryATCServiceOp) Update ¶ added in v0.1.10
func (s *OsqueryATCServiceOp) Update(ctx context.Context, oaID int, updateRequest *OsqueryATCRequest) (*OsqueryATC, *Response, error)
Update a Osquery ATC.
type OsqueryConfiguration ¶ added in v0.1.9
type OsqueryConfiguration struct { ID int `json:"id,omitempty"` Name string `json:"name"` Description string `json:"description"` Inventory bool `json:"inventory"` InventoryApps bool `json:"inventory_apps"` InventoryEC2 bool `json:"inventory_ec2"` InventoryInterval int `json:"inventory_interval"` Options map[string]interface{} `json:"options"` ATCIDs []int `json:"automatic_table_constructions"` FileCategoryIDs []int `json:"file_categories"` Created Timestamp `json:"created_at,omitempty"` Updated Timestamp `json:"updated_at,omitempty"` }
OsqueryConfiguration represents a Zentral Osquery configuration
func (OsqueryConfiguration) String ¶ added in v0.1.9
func (oc OsqueryConfiguration) String() string
type OsqueryConfigurationPack ¶ added in v0.1.18
type OsqueryConfigurationPack struct { ID int `json:"id"` ConfigurationID int `json:"configuration"` PackID int `json:"pack"` TagIDs []int `json:"tags"` }
OsqueryConfigurationPack represents a Zentral Osquery configuration pack
func (OsqueryConfigurationPack) String ¶ added in v0.1.18
func (ocp OsqueryConfigurationPack) String() string
type OsqueryConfigurationPackRequest ¶ added in v0.1.18
type OsqueryConfigurationPackRequest struct { ConfigurationID int `json:"configuration"` PackID int `json:"pack"` TagIDs []int `json:"tags"` }
OsqueryConfigurationPackRequest represents a request to create or update a Osquery configuration pack
type OsqueryConfigurationPacksService ¶ added in v0.1.18
type OsqueryConfigurationPacksService interface { List(context.Context, *ListOptions) ([]OsqueryConfigurationPack, *Response, error) GetByID(context.Context, int) (*OsqueryConfigurationPack, *Response, error) GetByConfigurationID(context.Context, int) ([]OsqueryConfigurationPack, *Response, error) GetByPackID(context.Context, int) ([]OsqueryConfigurationPack, *Response, error) Create(context.Context, *OsqueryConfigurationPackRequest) (*OsqueryConfigurationPack, *Response, error) Update(context.Context, int, *OsqueryConfigurationPackRequest) (*OsqueryConfigurationPack, *Response, error) Delete(context.Context, int) (*Response, error) }
OsqueryConfigurationPacksService is an interface for interfacing with the Osquery configuration packs endpoints of the Zentral API
type OsqueryConfigurationPacksServiceOp ¶ added in v0.1.18
type OsqueryConfigurationPacksServiceOp struct {
// contains filtered or unexported fields
}
OsqueryConfigurationPacksServiceOp handles communication with the Osquery configuration packs related methods of the Zentral API.
func (*OsqueryConfigurationPacksServiceOp) Create ¶ added in v0.1.18
func (s *OsqueryConfigurationPacksServiceOp) Create(ctx context.Context, createRequest *OsqueryConfigurationPackRequest) (*OsqueryConfigurationPack, *Response, error)
Create a new Osquery configuration pack.
func (*OsqueryConfigurationPacksServiceOp) Delete ¶ added in v0.1.18
func (s *OsqueryConfigurationPacksServiceOp) Delete(ctx context.Context, ocpID int) (*Response, error)
Delete a Osquery configuration pack.
func (*OsqueryConfigurationPacksServiceOp) GetByConfigurationID ¶ added in v0.1.18
func (s *OsqueryConfigurationPacksServiceOp) GetByConfigurationID(ctx context.Context, cfgID int) ([]OsqueryConfigurationPack, *Response, error)
GetByConfigurationID retrieves Osquery configuration packs by configuration ID.
func (*OsqueryConfigurationPacksServiceOp) GetByID ¶ added in v0.1.18
func (s *OsqueryConfigurationPacksServiceOp) GetByID(ctx context.Context, ocpID int) (*OsqueryConfigurationPack, *Response, error)
GetByID retrieves a Osquery configuration pack by id.
func (*OsqueryConfigurationPacksServiceOp) GetByPackID ¶ added in v0.1.18
func (s *OsqueryConfigurationPacksServiceOp) GetByPackID(ctx context.Context, packID int) ([]OsqueryConfigurationPack, *Response, error)
GetByPackID retrieves Osquery configuration packs by pack ID.
func (*OsqueryConfigurationPacksServiceOp) List ¶ added in v0.1.18
func (s *OsqueryConfigurationPacksServiceOp) List(ctx context.Context, opt *ListOptions) ([]OsqueryConfigurationPack, *Response, error)
List lists all the Osquery configuration packs.
func (*OsqueryConfigurationPacksServiceOp) Update ¶ added in v0.1.18
func (s *OsqueryConfigurationPacksServiceOp) Update(ctx context.Context, ocpID int, updateRequest *OsqueryConfigurationPackRequest) (*OsqueryConfigurationPack, *Response, error)
Update a Osquery configuration pack.
type OsqueryConfigurationRequest ¶ added in v0.1.9
type OsqueryConfigurationRequest struct { Name string `json:"name"` Description string `json:"description"` Inventory bool `json:"inventory"` InventoryApps bool `json:"inventory_apps"` InventoryEC2 bool `json:"inventory_ec2"` InventoryInterval int `json:"inventory_interval"` Options map[string]interface{} `json:"options"` ATCIDs []int `json:"automatic_table_constructions"` FileCategoryIDs []int `json:"file_categories"` }
OsqueryConfigurationRequest represents a request to create or update a Osquery configuration
type OsqueryConfigurationsService ¶ added in v0.1.9
type OsqueryConfigurationsService interface { List(context.Context, *ListOptions) ([]OsqueryConfiguration, *Response, error) GetByID(context.Context, int) (*OsqueryConfiguration, *Response, error) GetByName(context.Context, string) (*OsqueryConfiguration, *Response, error) Create(context.Context, *OsqueryConfigurationRequest) (*OsqueryConfiguration, *Response, error) Update(context.Context, int, *OsqueryConfigurationRequest) (*OsqueryConfiguration, *Response, error) Delete(context.Context, int) (*Response, error) }
OsqueryConfigurationsService is an interface for interfacing with the Osquery configurations endpoints of the Zentral API
type OsqueryConfigurationsServiceOp ¶ added in v0.1.9
type OsqueryConfigurationsServiceOp struct {
// contains filtered or unexported fields
}
OsqueryConfigurationsServiceOp handles communication with the Osquery configurations related methods of the Zentral API.
func (*OsqueryConfigurationsServiceOp) Create ¶ added in v0.1.9
func (s *OsqueryConfigurationsServiceOp) Create(ctx context.Context, createRequest *OsqueryConfigurationRequest) (*OsqueryConfiguration, *Response, error)
Create a new Osquery configuration.
func (*OsqueryConfigurationsServiceOp) GetByID ¶ added in v0.1.9
func (s *OsqueryConfigurationsServiceOp) GetByID(ctx context.Context, ocID int) (*OsqueryConfiguration, *Response, error)
GetByID retrieves a Osquery configuration by id.
func (*OsqueryConfigurationsServiceOp) GetByName ¶ added in v0.1.9
func (s *OsqueryConfigurationsServiceOp) GetByName(ctx context.Context, name string) (*OsqueryConfiguration, *Response, error)
GetByName retrieves a Osquery configuration by name.
func (*OsqueryConfigurationsServiceOp) List ¶ added in v0.1.9
func (s *OsqueryConfigurationsServiceOp) List(ctx context.Context, opt *ListOptions) ([]OsqueryConfiguration, *Response, error)
List lists all the Osquery configurations.
func (*OsqueryConfigurationsServiceOp) Update ¶ added in v0.1.9
func (s *OsqueryConfigurationsServiceOp) Update(ctx context.Context, ocID int, updateRequest *OsqueryConfigurationRequest) (*OsqueryConfiguration, *Response, error)
Update a Osquery configuration.
type OsqueryEnrollment ¶ added in v0.1.19
type OsqueryEnrollment struct { ID int `json:"id"` ConfigurationID int `json:"configuration"` OsqueryRelease string `json:"osquery_release"` EnrolledMachinesCount int `json:"enrolled_machines_count"` Secret EnrollmentSecret `json:"secret"` PackageURL string `json:"package_download_url"` ScriptURL string `json:"script_download_url"` PowershellScriptURL string `json:"powershell_script_download_url"` Version int `json:"version"` Created Timestamp `json:"created_at,omitempty"` Updated Timestamp `json:"updated_at,omitempty"` }
OsqueryEnrollment represents a Zentral OsqueryEnrollment
func (OsqueryEnrollment) String ¶ added in v0.1.19
func (se OsqueryEnrollment) String() string
type OsqueryEnrollmentRequest ¶ added in v0.1.19
type OsqueryEnrollmentRequest struct { ConfigurationID int `json:"configuration"` OsqueryRelease string `json:"osquery_release"` Secret EnrollmentSecretRequest `json:"secret"` }
OsqueryEnrollmentRequest represents a request to create or update a Osquery enrollment
type OsqueryEnrollmentsService ¶ added in v0.1.19
type OsqueryEnrollmentsService interface { List(context.Context, *ListOptions) ([]OsqueryEnrollment, *Response, error) GetByID(context.Context, int) (*OsqueryEnrollment, *Response, error) GetByConfigurationID(context.Context, int) ([]OsqueryEnrollment, *Response, error) Create(context.Context, *OsqueryEnrollmentRequest) (*OsqueryEnrollment, *Response, error) Update(context.Context, int, *OsqueryEnrollmentRequest) (*OsqueryEnrollment, *Response, error) Delete(context.Context, int) (*Response, error) }
OsqueryEnrollmentsService is an interface for interfacing with the Osquery enrollments endpoints of the Zentral API
type OsqueryEnrollmentsServiceOp ¶ added in v0.1.19
type OsqueryEnrollmentsServiceOp struct {
// contains filtered or unexported fields
}
OsqueryEnrollmentsServiceOp handles communication with the Osquery enrollments related methods of the Zentral API.
func (*OsqueryEnrollmentsServiceOp) Create ¶ added in v0.1.19
func (s *OsqueryEnrollmentsServiceOp) Create(ctx context.Context, createRequest *OsqueryEnrollmentRequest) (*OsqueryEnrollment, *Response, error)
Create a new Osquery enrollment.
func (*OsqueryEnrollmentsServiceOp) GetByConfigurationID ¶ added in v0.1.19
func (s *OsqueryEnrollmentsServiceOp) GetByConfigurationID(ctx context.Context, configuration_id int) ([]OsqueryEnrollment, *Response, error)
GetByConfigurationID retrieves the Osquery enrollments for a given configuration.
func (*OsqueryEnrollmentsServiceOp) GetByID ¶ added in v0.1.19
func (s *OsqueryEnrollmentsServiceOp) GetByID(ctx context.Context, oeID int) (*OsqueryEnrollment, *Response, error)
GetByID retrieves a Osquery enrollment by id.
func (*OsqueryEnrollmentsServiceOp) List ¶ added in v0.1.19
func (s *OsqueryEnrollmentsServiceOp) List(ctx context.Context, opt *ListOptions) ([]OsqueryEnrollment, *Response, error)
List lists all the Osquery enrollments.
func (*OsqueryEnrollmentsServiceOp) Update ¶ added in v0.1.19
func (s *OsqueryEnrollmentsServiceOp) Update(ctx context.Context, oeID int, updateRequest *OsqueryEnrollmentRequest) (*OsqueryEnrollment, *Response, error)
Update a Osquery enrollment.
type OsqueryFileCategoriesService ¶ added in v0.1.11
type OsqueryFileCategoriesService interface { List(context.Context, *ListOptions) ([]OsqueryFileCategory, *Response, error) GetByID(context.Context, int) (*OsqueryFileCategory, *Response, error) GetByName(context.Context, string) (*OsqueryFileCategory, *Response, error) Create(context.Context, *OsqueryFileCategoryRequest) (*OsqueryFileCategory, *Response, error) Update(context.Context, int, *OsqueryFileCategoryRequest) (*OsqueryFileCategory, *Response, error) Delete(context.Context, int) (*Response, error) }
OsqueryFileCategoriesService is an interface for interfacing with the Osquery file categories endpoints of the Zentral API
type OsqueryFileCategoriesServiceOp ¶ added in v0.1.11
type OsqueryFileCategoriesServiceOp struct {
// contains filtered or unexported fields
}
OsqueryFileCategoriesServiceOp handles communication with the Osquery file categories related methods of the Zentral API.
func (*OsqueryFileCategoriesServiceOp) Create ¶ added in v0.1.11
func (s *OsqueryFileCategoriesServiceOp) Create(ctx context.Context, createRequest *OsqueryFileCategoryRequest) (*OsqueryFileCategory, *Response, error)
Create a new Osquery file category.
func (*OsqueryFileCategoriesServiceOp) GetByID ¶ added in v0.1.11
func (s *OsqueryFileCategoriesServiceOp) GetByID(ctx context.Context, ofcID int) (*OsqueryFileCategory, *Response, error)
GetByID retrieves a Osquery file category by id.
func (*OsqueryFileCategoriesServiceOp) GetByName ¶ added in v0.1.11
func (s *OsqueryFileCategoriesServiceOp) GetByName(ctx context.Context, name string) (*OsqueryFileCategory, *Response, error)
GetByName retrieves a Osquery file category by name.
func (*OsqueryFileCategoriesServiceOp) List ¶ added in v0.1.11
func (s *OsqueryFileCategoriesServiceOp) List(ctx context.Context, opt *ListOptions) ([]OsqueryFileCategory, *Response, error)
List lists all the Osquery file categories.
func (*OsqueryFileCategoriesServiceOp) Update ¶ added in v0.1.11
func (s *OsqueryFileCategoriesServiceOp) Update(ctx context.Context, ofcID int, updateRequest *OsqueryFileCategoryRequest) (*OsqueryFileCategory, *Response, error)
Update a Osquery file category.
type OsqueryFileCategory ¶ added in v0.1.11
type OsqueryFileCategory struct { ID int `json:"id,omitempty"` Name string `json:"name"` Slug string `json:"slug"` Description string `json:"description"` FilePaths []string `json:"file_paths"` ExcludePaths []string `json:"exclude_paths"` FilePathsQueries []string `json:"file_paths_queries"` AccessMonitoring bool `json:"access_monitoring"` Created Timestamp `json:"created_at"` Updated Timestamp `json:"updated_at"` }
OsqueryFileCategory represents a Zentral Osquery file category
func (OsqueryFileCategory) String ¶ added in v0.1.11
func (ofc OsqueryFileCategory) String() string
type OsqueryFileCategoryRequest ¶ added in v0.1.11
type OsqueryFileCategoryRequest struct { Name string `json:"name"` Description string `json:"description"` FilePaths []string `json:"file_paths"` ExcludePaths []string `json:"exclude_paths"` FilePathsQueries []string `json:"file_paths_queries"` AccessMonitoring bool `json:"access_monitoring"` }
OsqueryFileCategoryRequest represents a request to create or update a Osquery file category
type OsqueryPack ¶ added in v0.1.14
type OsqueryPack struct { ID int `json:"id"` Name string `json:"name"` Slug string `json:"slug"` Description string `json:"description"` DiscoveryQueries []string `json:"discovery_queries"` Shard *int `json:"shard"` EventRoutingKey string `json:"event_routing_key"` Created Timestamp `json:"created_at"` Updated Timestamp `json:"updated_at"` }
OsqueryPack represents a Zentral Osquery pack
func (OsqueryPack) String ¶ added in v0.1.14
func (op OsqueryPack) String() string
type OsqueryPackRequest ¶ added in v0.1.14
type OsqueryPackRequest struct { Name string `json:"name"` Description string `json:"description"` DiscoveryQueries []string `json:"discovery_queries"` Shard *int `json:"shard"` EventRoutingKey string `json:"event_routing_key"` }
OsqueryPackRequest represents a request to create or update a Osquery pack
type OsqueryPacksService ¶ added in v0.1.14
type OsqueryPacksService interface { List(context.Context, *ListOptions) ([]OsqueryPack, *Response, error) GetByID(context.Context, int) (*OsqueryPack, *Response, error) GetByName(context.Context, string) (*OsqueryPack, *Response, error) Create(context.Context, *OsqueryPackRequest) (*OsqueryPack, *Response, error) Update(context.Context, int, *OsqueryPackRequest) (*OsqueryPack, *Response, error) Delete(context.Context, int) (*Response, error) }
OsqueryPacksService is an interface for interfacing with the Osquery packs endpoints of the Zentral API
type OsqueryPacksServiceOp ¶ added in v0.1.14
type OsqueryPacksServiceOp struct {
// contains filtered or unexported fields
}
OsqueryPacksServiceOp handles communication with the Osquery packs related methods of the Zentral API.
func (*OsqueryPacksServiceOp) Create ¶ added in v0.1.14
func (s *OsqueryPacksServiceOp) Create(ctx context.Context, createRequest *OsqueryPackRequest) (*OsqueryPack, *Response, error)
Create a new Osquery pack.
func (*OsqueryPacksServiceOp) GetByID ¶ added in v0.1.14
func (s *OsqueryPacksServiceOp) GetByID(ctx context.Context, opID int) (*OsqueryPack, *Response, error)
GetByID retrieves a Osquery pack by id.
func (*OsqueryPacksServiceOp) GetByName ¶ added in v0.1.14
func (s *OsqueryPacksServiceOp) GetByName(ctx context.Context, name string) (*OsqueryPack, *Response, error)
GetByName retrieves a Osquery pack by name.
func (*OsqueryPacksServiceOp) List ¶ added in v0.1.14
func (s *OsqueryPacksServiceOp) List(ctx context.Context, opt *ListOptions) ([]OsqueryPack, *Response, error)
List lists all the Osquery packs.
func (*OsqueryPacksServiceOp) Update ¶ added in v0.1.14
func (s *OsqueryPacksServiceOp) Update(ctx context.Context, opID int, updateRequest *OsqueryPackRequest) (*OsqueryPack, *Response, error)
Update a Osquery pack.
type OsqueryQueriesService ¶ added in v0.1.13
type OsqueryQueriesService interface { List(context.Context, *ListOptions) ([]OsqueryQuery, *Response, error) GetByID(context.Context, int) (*OsqueryQuery, *Response, error) GetByName(context.Context, string) (*OsqueryQuery, *Response, error) GetByPackID(context.Context, int) ([]OsqueryQuery, *Response, error) Create(context.Context, *OsqueryQueryRequest) (*OsqueryQuery, *Response, error) Update(context.Context, int, *OsqueryQueryRequest) (*OsqueryQuery, *Response, error) Delete(context.Context, int) (*Response, error) }
OsqueryQueriesService is an interface for interfacing with the Osquery queries endpoints of the Zentral API
type OsqueryQueriesServiceOp ¶ added in v0.1.13
type OsqueryQueriesServiceOp struct {
// contains filtered or unexported fields
}
OsqueryQueriesServiceOp handles communication with the Osquery queries related methods of the Zentral API.
func (*OsqueryQueriesServiceOp) Create ¶ added in v0.1.13
func (s *OsqueryQueriesServiceOp) Create(ctx context.Context, createRequest *OsqueryQueryRequest) (*OsqueryQuery, *Response, error)
Create a new Osquery query.
func (*OsqueryQueriesServiceOp) GetByID ¶ added in v0.1.13
func (s *OsqueryQueriesServiceOp) GetByID(ctx context.Context, oqID int) (*OsqueryQuery, *Response, error)
GetByID retrieves a Osquery query by id.
func (*OsqueryQueriesServiceOp) GetByName ¶ added in v0.1.13
func (s *OsqueryQueriesServiceOp) GetByName(ctx context.Context, name string) (*OsqueryQuery, *Response, error)
GetByName retrieves a Osquery query by name.
func (*OsqueryQueriesServiceOp) GetByPackID ¶ added in v0.1.30
func (s *OsqueryQueriesServiceOp) GetByPackID(ctx context.Context, packID int) ([]OsqueryQuery, *Response, error)
GetByPackID retrieves Osquery queries by pack ID.
func (*OsqueryQueriesServiceOp) List ¶ added in v0.1.13
func (s *OsqueryQueriesServiceOp) List(ctx context.Context, opt *ListOptions) ([]OsqueryQuery, *Response, error)
List lists all the Osquery queries.
func (*OsqueryQueriesServiceOp) Update ¶ added in v0.1.13
func (s *OsqueryQueriesServiceOp) Update(ctx context.Context, oqID int, updateRequest *OsqueryQueryRequest) (*OsqueryQuery, *Response, error)
Update a Osquery query.
type OsqueryQuery ¶ added in v0.1.13
type OsqueryQuery struct { ID int `json:"id,omitempty"` Name string `json:"name"` SQL string `json:"sql"` Platforms []string `json:"platforms"` MinOsqueryVersion *string `json:"minimum_osquery_version"` Description string `json:"description"` Value string `json:"value"` Version int `json:"version"` ComplianceCheckEnabled bool `json:"compliance_check_enabled"` TagID *int `json:"tag"` Scheduling *OsqueryQueryScheduling `json:"scheduling"` Created Timestamp `json:"created_at"` Updated Timestamp `json:"updated_at"` }
OsqueryQuery represents a Zentral Osquery query
func (OsqueryQuery) String ¶ added in v0.1.13
func (oq OsqueryQuery) String() string
type OsqueryQueryRequest ¶ added in v0.1.13
type OsqueryQueryRequest struct { Name string `json:"name"` SQL string `json:"sql"` Platforms []string `json:"platforms"` MinOsqueryVersion *string `json:"minimum_osquery_version"` Description string `json:"description"` Value string `json:"value"` ComplianceCheckEnabled bool `json:"compliance_check_enabled"` TagID *int `json:"tag"` Scheduling *OsqueryQuerySchedulingRequest `json:"scheduling"` }
OsqueryQueryRequest represents a request to create or update a Osquery query
type OsqueryQueryScheduling ¶ added in v0.1.30
type OsqueryQueryScheduling struct { PackID int `json:"pack"` Interval int `json:"interval"` LogRemovedActions bool `json:"log_removed_actions"` SnapshotMode bool `json:"snapshot_mode"` Shard *int `json:"shard"` CanBeDenyListed bool `json:"can_be_denylisted"` }
OsqueryQueryScheduling represents the scheduling information of a Zentral Osquery query
type OsqueryQuerySchedulingRequest ¶ added in v0.1.30
type OsqueryQuerySchedulingRequest struct { PackID int `json:"pack"` Interval int `json:"interval"` LogRemovedActions bool `json:"log_removed_actions"` SnapshotMode bool `json:"snapshot_mode"` Shard *int `json:"shard"` CanBeDenyListed bool `json:"can_be_denylisted"` }
OsqueryQuerySchedulingRequest represents a request to create or update a Osquery pack query scheduling
type Response ¶
Response is a Zentral response. This wraps the standard http.Response returned from Zentral.
type SantaConfiguration ¶ added in v0.1.4
type SantaConfiguration struct { ID int `json:"id,omitempty"` Name string `json:"name"` ClientMode int `json:"client_mode"` ClientCertificateAuth bool `json:"client_certificate_auth"` BatchSize int `json:"batch_size"` FullSyncInterval int `json:"full_sync_interval"` EnableBundles bool `json:"enable_bundles"` EnableTransitiveRules bool `json:"enable_transitive_rules"` AllowedPathRegex string `json:"allowed_path_regex"` BlockedPathRegex string `json:"blocked_path_regex"` BlockUSBMount bool `json:"block_usb_mount"` RemountUSBMode []string `json:"remount_usb_mode"` AllowUnknownShard int `json:"allow_unknown_shard"` EnableAllEventUploadShard int `json:"enable_all_event_upload_shard"` SyncIncidentSeverity int `json:"sync_incident_severity"` Created Timestamp `json:"created_at,omitempty"` Updated Timestamp `json:"updated_at,omitempty"` }
SantaConfiguration represents a Zentral SantaConfiguration
func (SantaConfiguration) String ¶ added in v0.1.4
func (sc SantaConfiguration) String() string
type SantaConfigurationRequest ¶ added in v0.1.4
type SantaConfigurationRequest struct { Name string `json:"name"` ClientMode int `json:"client_mode"` ClientCertificateAuth bool `json:"client_certificate_auth"` BatchSize int `json:"batch_size"` FullSyncInterval int `json:"full_sync_interval"` EnableBundles bool `json:"enable_bundles"` EnableTransitiveRules bool `json:"enable_transitive_rules"` AllowedPathRegex string `json:"allowed_path_regex"` BlockedPathRegex string `json:"blocked_path_regex"` BlockUSBMount bool `json:"block_usb_mount"` RemountUSBMode []string `json:"remount_usb_mode"` AllowUnknownShard int `json:"allow_unknown_shard"` EnableAllEventUploadShard int `json:"enable_all_event_upload_shard"` SyncIncidentSeverity int `json:"sync_incident_severity"` }
SantaConfigurationRequest represents a request to create or update a Santa configuration
type SantaConfigurationsService ¶ added in v0.1.4
type SantaConfigurationsService interface { List(context.Context, *ListOptions) ([]SantaConfiguration, *Response, error) GetByID(context.Context, int) (*SantaConfiguration, *Response, error) GetByName(context.Context, string) (*SantaConfiguration, *Response, error) Create(context.Context, *SantaConfigurationRequest) (*SantaConfiguration, *Response, error) Update(context.Context, int, *SantaConfigurationRequest) (*SantaConfiguration, *Response, error) Delete(context.Context, int) (*Response, error) }
SantaConfigurationsService is an interface for interfacing with the Santa configurations endpoints of the Zentral API
type SantaConfigurationsServiceOp ¶ added in v0.1.4
type SantaConfigurationsServiceOp struct {
// contains filtered or unexported fields
}
SantaConfigurationsServiceOp handles communication with the Santa configurations related methods of the Zentral API.
func (*SantaConfigurationsServiceOp) Create ¶ added in v0.1.4
func (s *SantaConfigurationsServiceOp) Create(ctx context.Context, createRequest *SantaConfigurationRequest) (*SantaConfiguration, *Response, error)
Create a new Santa configuration.
func (*SantaConfigurationsServiceOp) GetByID ¶ added in v0.1.4
func (s *SantaConfigurationsServiceOp) GetByID(ctx context.Context, scID int) (*SantaConfiguration, *Response, error)
GetByID retrieves a Santa configuration by id.
func (*SantaConfigurationsServiceOp) GetByName ¶ added in v0.1.4
func (s *SantaConfigurationsServiceOp) GetByName(ctx context.Context, name string) (*SantaConfiguration, *Response, error)
GetByName retrieves a Santa configuration by name.
func (*SantaConfigurationsServiceOp) List ¶ added in v0.1.4
func (s *SantaConfigurationsServiceOp) List(ctx context.Context, opt *ListOptions) ([]SantaConfiguration, *Response, error)
List lists all the Santa configurations.
func (*SantaConfigurationsServiceOp) Update ¶ added in v0.1.4
func (s *SantaConfigurationsServiceOp) Update(ctx context.Context, scID int, updateRequest *SantaConfigurationRequest) (*SantaConfiguration, *Response, error)
Update a Santa configuration.
type SantaEnrollment ¶ added in v0.1.7
type SantaEnrollment struct { ID int `json:"id"` ConfigurationID int `json:"configuration"` EnrolledMachinesCount int `json:"enrolled_machines_count"` Secret EnrollmentSecret `json:"secret"` ConfigProfileURL string `json:"configuration_profile_download_url"` PlistURL string `json:"plist_download_url"` Version int `json:"version"` Created Timestamp `json:"created_at,omitempty"` Updated Timestamp `json:"updated_at,omitempty"` }
SantaEnrollment represents a Zentral SantaEnrollment
func (SantaEnrollment) String ¶ added in v0.1.7
func (se SantaEnrollment) String() string
type SantaEnrollmentRequest ¶ added in v0.1.7
type SantaEnrollmentRequest struct { ConfigurationID int `json:"configuration"` Secret EnrollmentSecretRequest `json:"secret"` }
SantaEnrollmentRequest represents a request to create or update a Santa enrollment
type SantaEnrollmentsService ¶ added in v0.1.7
type SantaEnrollmentsService interface { List(context.Context, *ListOptions) ([]SantaEnrollment, *Response, error) GetByID(context.Context, int) (*SantaEnrollment, *Response, error) GetByConfigurationID(context.Context, int) ([]SantaEnrollment, *Response, error) Create(context.Context, *SantaEnrollmentRequest) (*SantaEnrollment, *Response, error) Update(context.Context, int, *SantaEnrollmentRequest) (*SantaEnrollment, *Response, error) Delete(context.Context, int) (*Response, error) }
SantaEnrollmentsService is an interface for interfacing with the Santa enrollments endpoints of the Zentral API
type SantaEnrollmentsServiceOp ¶ added in v0.1.7
type SantaEnrollmentsServiceOp struct {
// contains filtered or unexported fields
}
SantaEnrollmentsServiceOp handles communication with the Santa enrollments related methods of the Zentral API.
func (*SantaEnrollmentsServiceOp) Create ¶ added in v0.1.7
func (s *SantaEnrollmentsServiceOp) Create(ctx context.Context, createRequest *SantaEnrollmentRequest) (*SantaEnrollment, *Response, error)
Create a new Santa enrollment.
func (*SantaEnrollmentsServiceOp) GetByConfigurationID ¶ added in v0.1.7
func (s *SantaEnrollmentsServiceOp) GetByConfigurationID(ctx context.Context, configuration_id int) ([]SantaEnrollment, *Response, error)
GetByConfigurationID retrieves the Santa enrollments for a given configuration.
func (*SantaEnrollmentsServiceOp) GetByID ¶ added in v0.1.7
func (s *SantaEnrollmentsServiceOp) GetByID(ctx context.Context, seID int) (*SantaEnrollment, *Response, error)
GetByID retrieves a Santa enrollment by id.
func (*SantaEnrollmentsServiceOp) List ¶ added in v0.1.7
func (s *SantaEnrollmentsServiceOp) List(ctx context.Context, opt *ListOptions) ([]SantaEnrollment, *Response, error)
List lists all the Santa enrollments.
func (*SantaEnrollmentsServiceOp) Update ¶ added in v0.1.7
func (s *SantaEnrollmentsServiceOp) Update(ctx context.Context, seID int, updateRequest *SantaEnrollmentRequest) (*SantaEnrollment, *Response, error)
Update a Santa enrollment.
type SantaRule ¶ added in v0.1.8
type SantaRule struct { ID int `json:"id"` ConfigurationID int `json:"configuration"` Policy int `json:"policy"` TargetType string `json:"target_type"` TargetIdentifier string `json:"target_identifier"` Description string `json:"description"` CustomMessage string `json:"custom_msg"` RulesetID *int `json:"ruleset"` PrimaryUsers []string `json:"primary_users"` ExcludedPrimaryUsers []string `json:"excluded_primary_users"` SerialNumbers []string `json:"serial_numbers"` ExcludedSerialNumbers []string `json:"excluded_serial_numbers"` TagIDs []int `json:"tags"` ExcludedTagIDs []int `json:"excluded_tags"` Version int `json:"version"` Created Timestamp `json:"created_at"` Updated Timestamp `json:"updated_at"` }
SantaRule represents a Zentral SantaRule
type SantaRuleRequest ¶ added in v0.1.8
type SantaRuleRequest struct { ConfigurationID int `json:"configuration"` Policy int `json:"policy"` TargetType string `json:"target_type"` TargetIdentifier string `json:"target_identifier"` Description string `json:"description"` CustomMessage string `json:"custom_msg"` PrimaryUsers []string `json:"primary_users"` ExcludedPrimaryUsers []string `json:"excluded_primary_users"` SerialNumbers []string `json:"serial_numbers"` ExcludedSerialNumbers []string `json:"excluded_serial_numbers"` TagIDs []int `json:"tags"` ExcludedTagIDs []int `json:"excluded_tags"` }
SantaRuleRequest represents a request to create or update a Santa rule
type SantaRulesService ¶ added in v0.1.8
type SantaRulesService interface { List(context.Context, *ListOptions) ([]SantaRule, *Response, error) GetByID(context.Context, int) (*SantaRule, *Response, error) GetByConfigurationID(context.Context, int) ([]SantaRule, *Response, error) GetByTargetIdentifier(context.Context, string) ([]SantaRule, *Response, error) GetByTargetType(context.Context, string) ([]SantaRule, *Response, error) Create(context.Context, *SantaRuleRequest) (*SantaRule, *Response, error) Update(context.Context, int, *SantaRuleRequest) (*SantaRule, *Response, error) Delete(context.Context, int) (*Response, error) }
SantaRulesService is an interface for interfacing with the Santa rules endpoints of the Zentral API
type SantaRulesServiceOp ¶ added in v0.1.8
type SantaRulesServiceOp struct {
// contains filtered or unexported fields
}
SantaRulesServiceOp handles communication with the Santa enrollments related methods of the Zentral API.
func (*SantaRulesServiceOp) Create ¶ added in v0.1.8
func (s *SantaRulesServiceOp) Create(ctx context.Context, createRequest *SantaRuleRequest) (*SantaRule, *Response, error)
Create a new Santa rule
func (*SantaRulesServiceOp) GetByConfigurationID ¶ added in v0.1.8
func (s *SantaRulesServiceOp) GetByConfigurationID(ctx context.Context, configuration_id int) ([]SantaRule, *Response, error)
GetByConfigurationID retrieves the Santa rules for a given configuration.
func (*SantaRulesServiceOp) GetByTargetIdentifier ¶ added in v0.1.8
func (s *SantaRulesServiceOp) GetByTargetIdentifier(ctx context.Context, target_identifier string) ([]SantaRule, *Response, error)
GetByTargetIdentifier retrieves the Santa rules for a given target identifier
func (*SantaRulesServiceOp) GetByTargetType ¶ added in v0.1.8
func (s *SantaRulesServiceOp) GetByTargetType(ctx context.Context, target_type string) ([]SantaRule, *Response, error)
GetByTargetType retrieves the Santa rules for a given target type
func (*SantaRulesServiceOp) List ¶ added in v0.1.8
func (s *SantaRulesServiceOp) List(ctx context.Context, opt *ListOptions) ([]SantaRule, *Response, error)
List lists all the Santa rules.
func (*SantaRulesServiceOp) Update ¶ added in v0.1.8
func (s *SantaRulesServiceOp) Update(ctx context.Context, srID int, updateRequest *SantaRuleRequest) (*SantaRule, *Response, error)
Update a Santa rule
type Tag ¶
type Tag struct { ID int `json:"id"` TaxonomyID *int `json:"taxonomy,omitempty"` MetaBusinessUnitID *int `json:"meta_business_unit,omitempty"` Name string `json:"name"` Slug string `json:"slug"` Color string `json:"color"` }
Tag represents a Zentral Tag
type TagCreateRequest ¶
type TagCreateRequest struct { Name string `json:"name"` TaxonomyID *int `json:"taxonomy"` MetaBusinessUnitID *int `json:"meta_business_unit"` Color string `json:"color,omitempty"` }
TagCreateRequest represents a request to create a tag.
type TagUpdateRequest ¶
type TagUpdateRequest struct { Name string `json:"name"` TaxonomyID *int `json:"taxonomy"` MetaBusinessUnitID *int `json:"meta_business_unit"` Color string `json:"color,omitempty"` }
TagUpdateRequest represents a request to update a tag.
type TagsService ¶
type TagsService interface { List(context.Context, *ListOptions) ([]Tag, *Response, error) GetByID(context.Context, int) (*Tag, *Response, error) GetByName(context.Context, string) (*Tag, *Response, error) Create(context.Context, *TagCreateRequest) (*Tag, *Response, error) Update(context.Context, int, *TagUpdateRequest) (*Tag, *Response, error) Delete(context.Context, int) (*Response, error) }
TagsService is an interface for interfacing with the tags endpoints of the Zentral API
type TagsServiceOp ¶
type TagsServiceOp struct {
// contains filtered or unexported fields
}
TagsServiceOp handles communication with the tags related methods of the Zentral API.
func (*TagsServiceOp) Create ¶
func (s *TagsServiceOp) Create(ctx context.Context, createRequest *TagCreateRequest) (*Tag, *Response, error)
Create a new tag.
func (*TagsServiceOp) List ¶
func (s *TagsServiceOp) List(ctx context.Context, opt *ListOptions) ([]Tag, *Response, error)
List lists all the tags.
func (*TagsServiceOp) Update ¶
func (s *TagsServiceOp) Update(ctx context.Context, tagID int, updateRequest *TagUpdateRequest) (*Tag, *Response, error)
Update a tag.
type TaxonomiesService ¶
type TaxonomiesService interface { List(context.Context, *ListOptions) ([]Taxonomy, *Response, error) GetByID(context.Context, int) (*Taxonomy, *Response, error) GetByName(context.Context, string) (*Taxonomy, *Response, error) Create(context.Context, *TaxonomyCreateRequest) (*Taxonomy, *Response, error) Update(context.Context, int, *TaxonomyUpdateRequest) (*Taxonomy, *Response, error) Delete(context.Context, int) (*Response, error) }
TaxonomiesService is an interface for interfacing with the Taxonomies endpoints of the Zentral API
type TaxonomiesServiceOp ¶
type TaxonomiesServiceOp struct {
// contains filtered or unexported fields
}
TaxonomiesServiceOp handles communication with the Taxonomies related methods of the Zentral API.
func (*TaxonomiesServiceOp) Create ¶
func (s *TaxonomiesServiceOp) Create(ctx context.Context, createRequest *TaxonomyCreateRequest) (*Taxonomy, *Response, error)
Create a new Taxonomy.
func (*TaxonomiesServiceOp) GetByID ¶
func (s *TaxonomiesServiceOp) GetByID(ctx context.Context, TaxonomyID int) (*Taxonomy, *Response, error)
GetByID retrieves a Taxonomy by id.
func (*TaxonomiesServiceOp) GetByName ¶
func (s *TaxonomiesServiceOp) GetByName(ctx context.Context, name string) (*Taxonomy, *Response, error)
GetByName retrieves a Taxonomy by name.
func (*TaxonomiesServiceOp) List ¶
func (s *TaxonomiesServiceOp) List(ctx context.Context, opt *ListOptions) ([]Taxonomy, *Response, error)
List lists all the Taxonomies.
func (*TaxonomiesServiceOp) Update ¶
func (s *TaxonomiesServiceOp) Update(ctx context.Context, TaxonomyID int, updateRequest *TaxonomyUpdateRequest) (*Taxonomy, *Response, error)
Update a Taxonomy.
type Taxonomy ¶
type Taxonomy struct { ID int `json:"id"` MetaBusinessUnitID *int `json:"meta_business_unit,omitempty"` Name string `json:"name"` Created Timestamp `json:"created_at"` Updated Timestamp `json:"updated_at"` }
Taxonomy represents a Zentral Taxonomy
type TaxonomyCreateRequest ¶
type TaxonomyCreateRequest struct { Name string `json:"name"` MetaBusinessUnitID *int `json:"meta_business_unit"` }
TaxonomyCreateRequest represents a request to create a Taxonomy.
type TaxonomyUpdateRequest ¶
type TaxonomyUpdateRequest struct { Name string `json:"name"` MetaBusinessUnitID *int `json:"meta_business_unit"` }
TaxonomyUpdateRequest represents a request to update a Taxonomy.
type Timestamp ¶
Timestamp represents a time that can be unmarshalled from a JSON string formatted as either an ISO8601 or Unix timestamp. All exported methods of time.Time can be called on Timestamp.
func (*Timestamp) UnmarshalJSON ¶
UnmarshalJSON implements the json.Unmarshaler interface. Time is expected in ISO8611 or Unix format.
Source Files ¶
- enrollment_secret.go
- errors.go
- goztl.go
- jmespath_checks.go
- mdm_artifact_versions.go
- mdm_artifacts.go
- mdm_blueprint_artifacts.go
- mdm_blueprints.go
- mdm_enterprise_apps.go
- mdm_filevault_configs.go
- mdm_profiles.go
- mdm_recovery_password_configs.go
- mdm_software_update_enforcements.go
- meta_business_units.go
- monolith_catalogs.go
- monolith_conditions.go
- monolith_enrollments.go
- monolith_manifest_catalogs.go
- monolith_manifest_sub_manifests.go
- monolith_manifests.go
- monolith_repositories.go
- monolith_sub_manifest_pkg_infos.go
- monolith_sub_manifests.go
- munki_configurations.go
- munki_enrollments.go
- munki_script_checks.go
- osquery_atc.go
- osquery_configuration_packs.go
- osquery_configurations.go
- osquery_enrollments.go
- osquery_file_categories.go
- osquery_packs.go
- osquery_queries.go
- santa_configurations.go
- santa_enrollments.go
- santa_rules.go
- strings.go
- tags.go
- taxonomies.go
- timestamp.go