v1beta1

package
v1.1.0-main Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2025 License: Apache-2.0 Imports: 30 Imported by: 0

README

Flight Control API

This document is intended to provide context to the API definition.

Device.Status

Conditions

These are the core conditions that cover the ability of the device to accept/manage workloads.

Name Desc
Ready True if the Device is ready and can accept new containers otherwise False. This is also the only condition which can be set by the server, otherwise False.
DiskPressure True if pressure exists on the disk size—that is, if the disk capacity is low; otherwise False.
PIDPressure True if pressure exists on the processes—that is, if there are too many processes on the node, otherwise False.
MemoryPressure True if pressure exists on the device memory—that is, if the device memory is low, otherwise False.
CPUPressure True if device is experiencing high CPU utilization that might affect the performance of the workloads running on that device, otherwise False.
SystemdUnitsRunning True is all specified systemd units are running, otherwise False.
ContainersRunning True is all specified containers are running, otherwise False.
Conditions

These conditions that cover the operation of the agent

Name Desc
Available True if the controller is available for deploying configurations and postAction commands otherwise False
Progressing True if the controller is in the process of reconciling Spec, otherwise False
Degraded True if the controllers functionality is impaired in some way but not unavailable, otherwise False

Documentation

Overview

Package v1beta1 provides primitives to interact with the openapi HTTP API.

Code generated by github.com/oapi-codegen/oapi-codegen/v2 version v2.3.0 DO NOT EDIT.

Package v1beta1 provides primitives to interact with the openapi HTTP API.

Code generated by github.com/oapi-codegen/oapi-codegen/v2 version v2.3.0 DO NOT EDIT.

Index

Constants

View Source
const (
	APIGroup = "flightctl.io"

	CertificateSigningRequestAPIVersion = "v1beta1"
	CertificateSigningRequestKind       = "CertificateSigningRequest"
	CertificateSigningRequestListKind   = "CertificateSigningRequestList"

	DeviceAPIVersion = "v1beta1"
	DeviceKind       = "Device"
	DeviceListKind   = "DeviceList"

	DeviceAnnotationConsole         = "device-controller/console"
	DeviceAnnotationRenderedVersion = "device-controller/renderedVersion"
	// Used After database restore , all devices will be marked with this annotation
	DeviceAnnotationAwaitingReconnect = "device-controller/awaitingReconnect"
	// After restore when device has a new spec version than what we know,
	DeviceAnnotationConflictPaused = "device-controller/conflictPaused"
	// This annotation is populated after a device was rolled out by the fleet-rollout task
	DeviceAnnotationTemplateVersion = "fleet-controller/templateVersion"
	// This annotation is populated after a device was rendered by the device-render task
	DeviceAnnotationRenderedTemplateVersion = "fleet-controller/renderedTemplateVersion"
	// This annotation stores the hash of the device spec that was last rendered
	DeviceAnnotationRenderedSpecHash = "device-controller/renderedSpecHash"
	// When this annotation is present, it means that the device has been selected for rollout in a batch
	DeviceAnnotationSelectedForRollout = "fleet-controller/selectedForRollout"
	DeviceAnnotationLastRolloutError   = "fleet-controller/lastRolloutError"

	// TODO: make configurable
	// DeviceDisconnectedTimeout is the duration after which a device is considered to be not reporting and set to unknown status.
	DeviceDisconnectedTimeout = 5 * time.Minute

	DeviceQueryConsoleSessionMetadata = "metadata"

	EnrollmentRequestAPIVersion = "v1beta1"
	EnrollmentRequestKind       = "EnrollmentRequest"
	EnrollmentRequestListKind   = "EnrollmentRequestList"

	FleetAPIVersion = "v1beta1"
	FleetKind       = "Fleet"
	FleetListKind   = "FleetList"

	FleetAnnotationTemplateVersion = "fleet-controller/templateVersion"
	// The last template version that has been processed by device selection reconciler.  It is used for new rollout detection
	FleetAnnotationDeployingTemplateVersion = "fleet-controller/deployingTemplateVersion"
	// The index to the current batch.  Contains an integer
	FleetAnnotationBatchNumber = "fleet-controller/batchNumber"
	// Indicates if the current batch has been approved
	FleetAnnotationRolloutApproved = "fleet-controller/rolloutApproved"
	// What is the active approval method: If automatic then it is based in the last batch success percentage.  Otherwise
	// it requires manual approval
	FleetAnnotationRolloutApprovalMethod = "fleet-controller/rolloutApprovalMethod"
	// A report specifying the completion report of the last batch
	FleetAnnotationLastBatchCompletionReport = "fleet-controller/lastBatchCompletionReport"
	// A frozen digest of device selection definition during rollout
	FleetAnnotationDeviceSelectionConfigDigest = "fleet-controller/deviceSelectionConfigDigest"
	// The requestID related to an event
	EventAnnotationRequestID = "event-controller/requestID"

	RepositoryAPIVersion = "v1beta1"
	RepositoryKind       = "Repository"
	RepositoryListKind   = "RepositoryList"

	AuthProviderAPIVersion = "v1beta1"
	AuthProviderKind       = "AuthProvider"
	AuthProviderListKind   = "AuthProviderList"

	AuthConfigAPIVersion = "v1beta1"
	AuthConfigKind       = "AuthConfig"

	ResourceSyncAPIVersion = "v1beta1"
	ResourceSyncKind       = "ResourceSync"
	ResourceSyncListKind   = "ResourceSyncList"

	TemplateVersionAPIVersion = "v1beta1"
	TemplateVersionKind       = "TemplateVersion"
	TemplateVersionListKind   = "TemplateVersionList"

	EventAPIVersion = "v1beta1"
	EventKind       = "Event"
	EventListKind   = "EventList"

	EventAnnotationDelayDeviceRender = "fleet-controller/delayDeviceRender"

	OrganizationAPIVersion = "v1beta1"
	OrganizationKind       = "Organization"
	OrganizationListKind   = "OrganizationList"
	OrganizationIDQueryKey = "org_id"

	SystemKind           = "System"
	SystemComponentDB    = "database"
	SystemComponentQueue = "queue"

	// External role names - these come from authentication providers and are mapped to internal roles
	ExternalRoleAdmin     = "flightctl-admin"
	ExternalRoleOrgAdmin  = "flightctl-org-admin"
	ExternalRoleOperator  = "flightctl-operator"
	ExternalRoleViewer    = "flightctl-viewer"
	ExternalRoleInstaller = "flightctl-installer"

	// Internal role constants - used within flightctl for authorization
	RoleAdmin     = "admin"     // Full access to all resources
	RoleOrgAdmin  = "org-admin" // Full access to all resources within an organization
	RoleOperator  = "operator"  // Manage devices, fleets, resourcesyncs
	RoleViewer    = "viewer"    // Read-only access to devices, fleets, resourcesyncs
	RoleInstaller = "installer" // Limited access for device installation
)
View Source
const (
	// No rollout is currently active
	RolloutInactiveReason = "Inactive"
	// Rollout is in progress
	RolloutActiveReason = "Active"
	// Rollout is suspended
	RolloutSuspendedReason = "Suspended"
	// Rollout is pending on user approval
	RolloutWaitingReason = "Waiting"

	// The name of the preliminary batch
	PreliminaryBatchName = "preliminary batch"
	// The name of the final implicit batch
	FinalImplicitBatchName = "final implicit batch"

	// System-level resource name for events
	FlightCtlSystemResourceName = "flightctl-system"

	// TPMVerificationFailedReason indicates a TPM Request failed initial validation
	TPMVerificationFailedReason = "TPMVerificationFailed"
	// TPMChallengeRequiredReason indicates a TPM Challenge is required
	TPMChallengeRequiredReason = "TPMChallengeRequired"
	// TPMChallengeFailedReason indicates that a TPM Challenge attempt failed
	TPMChallengeFailedReason = "TPMChallengeFailed"
	// TPMChallengeSucceededReason indicates that a TPM Challenge attempt succeed
	TPMChallengeSucceededReason = "TPMChallengeSucceeded"

	// ResourceSync New Hash Detected Reason
	ResourceSyncNewHashDetectedReason = "NewHashDetected"
)
View Source
const (
	DeviceOutOfDateText          = "Device has not been updated to the latest device spec"
	DeviceOutOfSyncWithFleetText = "Device has not yet been scheduled for update to the fleet's latest spec."
)
View Source
const (
	DeviceConditionBootstrapReason = "Bootstrapping"
)

Variables

View Source
var (
	ErrStartGraceDurationExceedsCronInterval = errors.New("startGraceDuration exceeds the cron interval between schedule times")
	ErrInfoAlertLessThanWarn                 = errors.New("info alert percentage must be less than warning")
	ErrInfoAlertLessThanCritical             = errors.New("info alert percentage must be less than critical")
	ErrWarnAlertLessThanCritical             = errors.New("warning alert percentage must be less than critical")
	ErrDuplicateAlertSeverity                = errors.New("duplicate alertRule severity")
	ErrDuplicateMonitorType                  = errors.New("duplicate monitorType in resources")
	ErrInvalidCPUMonitorField                = errors.New("invalid field for CPU monitor")
	ErrInvalidMemoryMonitorField             = errors.New("invalid field for Memory monitor")
	ErrClaimPathRequiredDynamicOrg           = errors.New("claimPath is required for dynamic assignment")
	ErrClaimPathRequiredDynamicRole          = errors.New("claimPath is required for dynamic role assignment")
	ErrMappedIdentityNotFound                = errors.New("mapped identity not found in context")
	ErrInvalidMappedIdentityType             = errors.New("invalid mapped identity type in context")
	ErrIssuerRequired                        = errors.New("issuer is required")
	ErrClientIdRequired                      = errors.New("clientId is required")
	ErrAuthorizationUrlRequired              = errors.New("authorizationUrl is required")
	ErrTokenUrlRequired                      = errors.New("tokenUrl is required")
	ErrUserinfoUrlRequired                   = errors.New("userinfoUrl is required")
	ErrOrganizationNameRequired              = errors.New("organizationName is required for static assignment")
	ErrRolesRequired                         = errors.New("at least one role is required for static role assignment")
	ErrK8sProviderConfigOnly                 = errors.New("k8s provider type can only be created from configuration, not via API")
	ErrAapProviderConfigOnly                 = errors.New("aap provider type can only be created from configuration, not via API")
	ErrDynamicOrgMappingAdminOnly            = errors.New("only flightctl-admin users are allowed to create auth providers with dynamic organization mapping")
	ErrPerUserOrgMappingAdminOnly            = errors.New("only flightctl-admin users are allowed to create auth providers with per-user organization mapping")
)
View Source
var (
	NullOrgId = uuid.MustParse("00000000-0000-0000-0000-000000000000")
)

Functions

func DeviceSpecsAreEqual

func DeviceSpecsAreEqual(d1, d2 DeviceSpec) bool

func ExecuteGoTemplateOnDevice

func ExecuteGoTemplateOnDevice(t *template.Template, dev *Device) (string, error)

This function wraps template.Execute. Instead of passing the device directly, it converts it into a map first. This has two purposes: 1. The user-provided template uses the yaml/json API format (e.g., lower case) 2. The map contains only the device fields we allow access to

func FleetSpecsAreEqual

func FleetSpecsAreEqual(f1, f2 FleetSpec) bool

func GetGoTemplateFuncMap

func GetGoTemplateFuncMap() template.FuncMap

Some functions that we provide to users. In case of a missing label, we may get an interface{} rather than string because ExecuteGoTemplateOnDevice() converts the Device struct to a map. Therefore our functions here need to ensure we get a string, and if not then they return an empty string. Note that this will only happen if the "missingkey=zero" option is used in the template. If "missingkey=error" is used, the template execution will fail and we won't get to this point.

func GetNextDeviceRenderedVersion

func GetNextDeviceRenderedVersion(annotations map[string]string, deviceStatus *DeviceStatus) (string, error)

func GetSwagger

func GetSwagger() (swagger *openapi3.T, err error)

GetSwagger returns the Swagger specification corresponding to the generated code in this file. The external references of Swagger specification are resolved. The logic of resolving external references is tightly connected to "import-mapping" feature. Externally referenced files must be embedded in the corresponding golang packages. Urls can be supported but this task was out of the scope.

func IsStatusConditionFalse

func IsStatusConditionFalse(conditions []Condition, conditionType ConditionType) bool

IsStatusConditionFalse returns true when the conditionType is present and set to `ConditionFalse`

func IsStatusConditionPresentAndEqual

func IsStatusConditionPresentAndEqual(conditions []Condition, conditionType ConditionType, status ConditionStatus) bool

IsStatusConditionPresentAndEqual returns true when conditionType is present and equal to status.

func IsStatusConditionTrue

func IsStatusConditionTrue(conditions []Condition, conditionType ConditionType) bool

IsStatusConditionTrue returns true when the conditionType is present and set to `ConditionTrue`

func MatchExpressionsToString

func MatchExpressionsToString(exprs ...MatchExpression) string

MatchExpressionsToString converts a list of MatchExpressions into a formatted string. Each MatchExpression is represented by its string form, separated by ", ".

func PathToRawSpec

func PathToRawSpec(pathToFile string) map[string]func() ([]byte, error)

Constructs a synthetic filesystem for resolving external references when loading openapi specifications.

func PercentageAsInt

func PercentageAsInt(p Percentage) (int, error)

func RemoveStatusCondition

func RemoveStatusCondition(conditions *[]Condition, conditionType ConditionType) (removed bool)

RemoveStatusCondition removes the corresponding conditionType from conditions if present. Returns true if it was present and got removed. conditions must be non-nil.

func SetStatusCondition

func SetStatusCondition(conditions *[]Condition, newCondition Condition) (changed bool)

SetStatusCondition sets the corresponding condition in conditions to newCondition and returns true if the conditions are changed by this call. conditions must be non-nil.

  1. if the condition of the specified type already exists (all fields of the existing condition are updated to newCondition, LastTransitionTime is set to now if the new status differs from the old status)
  2. if a condition of the specified type does not exist (LastTransitionTime is set to now() if unset, and newCondition is appended)

func SetStatusConditionByError

func SetStatusConditionByError(conditions *[]Condition, conditionType ConditionType, okReason string, failReason string, err error) (changed bool)

func ValidateApplicationContent

func ValidateApplicationContent(content []byte, appType AppType, path string) []error

func ValidateConditions

func ValidateConditions(conditions []Condition, allowedConditions, trueConditions, exclusiveConditions []ConditionType) []error

func ValidateContainerImageApplicationSpec

func ValidateContainerImageApplicationSpec(appName string, spec *ImageApplicationProviderSpec) []error

Types

type AapProviderSpec

type AapProviderSpec struct {
	// ApiUrl The internal AAP API URL.
	ApiUrl string `json:"apiUrl"`

	// AuthorizationUrl The OAuth2 authorization endpoint URL.
	AuthorizationUrl string `json:"authorizationUrl"`

	// ClientId The OAuth2 client ID.
	ClientId string `json:"clientId"`

	// ClientSecret The OAuth2 client secret.
	ClientSecret *string `json:"clientSecret,omitempty"`

	// DisplayName Human-readable display name for the provider.
	DisplayName *string `json:"displayName,omitempty"`

	// Enabled Whether this AAP provider is enabled.
	Enabled *bool `json:"enabled,omitempty"`

	// ProviderType The type of authentication provider.
	ProviderType AapProviderSpecProviderType `json:"providerType"`

	// Scopes List of OAuth2 scopes to request.
	Scopes []string `json:"scopes"`

	// TokenUrl The OAuth2 token endpoint URL.
	TokenUrl string `json:"tokenUrl"`
}

AapProviderSpec AapProviderSpec describes an Ansible Automation Platform (AAP) provider configuration.

type AapProviderSpecProviderType

type AapProviderSpecProviderType string

AapProviderSpecProviderType The type of authentication provider.

const (
	Aap AapProviderSpecProviderType = "aap"
)

Defines values for AapProviderSpecProviderType.

type AbsolutePath

type AbsolutePath struct {
	// Path The absolute path to a file on the system. Note that any existing file will be overwritten.
	Path *string `json:"path,omitempty"`
}

AbsolutePath Represents an absolute file path.

type AppType

type AppType string

AppType The type of the application.

const (
	AppTypeCompose   AppType = "compose"
	AppTypeContainer AppType = "container"
	AppTypeQuadlet   AppType = "quadlet"
)

Defines values for AppType.

type ApplicationContent

type ApplicationContent struct {
	// Content The plain text (UTF-8) or base64-encoded content of the file.
	Content *string `json:"content,omitempty"`

	// ContentEncoding Specifies the encoding type used for data representation.
	ContentEncoding *EncodingType `json:"contentEncoding,omitempty"`

	// Path A relative file path on the system. Note that any existing file will be overwritten.
	Path string `json:"path"`
}

ApplicationContent defines model for ApplicationContent.

func (ApplicationContent) IsBase64

func (c ApplicationContent) IsBase64() bool

func (ApplicationContent) IsPlain

func (c ApplicationContent) IsPlain() bool

func (ApplicationContent) Validate

func (c ApplicationContent) Validate(index int, appType AppType, fleetTemplate bool) []error

type ApplicationEnvVars

type ApplicationEnvVars struct {
	// EnvVars Environment variable key-value pairs, injected during runtime. The key and value each must be between 1 and 253 characters.
	EnvVars *map[string]string `json:"envVars,omitempty"`
}

ApplicationEnvVars defines model for ApplicationEnvVars.

type ApplicationPort

type ApplicationPort = string

ApplicationPort Port mapping in format "hostPort:containerPort" (e.g., "8080:80").

type ApplicationProviderSpec

type ApplicationProviderSpec struct {
	// AppType The type of the application.
	AppType AppType `json:"appType"`

	// EnvVars Environment variable key-value pairs, injected during runtime. The key and value each must be between 1 and 253 characters.
	EnvVars *map[string]string `json:"envVars,omitempty"`

	// Name The application name must be 1–253 characters long, start with a letter or number, and contain no whitespace.
	Name *string `json:"name,omitempty"`
	// contains filtered or unexported fields
}

ApplicationProviderSpec defines model for ApplicationProviderSpec.

func (ApplicationProviderSpec) AsImageApplicationProviderSpec

func (t ApplicationProviderSpec) AsImageApplicationProviderSpec() (ImageApplicationProviderSpec, error)

AsImageApplicationProviderSpec returns the union data inside the ApplicationProviderSpec as a ImageApplicationProviderSpec

func (ApplicationProviderSpec) AsInlineApplicationProviderSpec

func (t ApplicationProviderSpec) AsInlineApplicationProviderSpec() (InlineApplicationProviderSpec, error)

AsInlineApplicationProviderSpec returns the union data inside the ApplicationProviderSpec as a InlineApplicationProviderSpec

func (*ApplicationProviderSpec) FromImageApplicationProviderSpec

func (t *ApplicationProviderSpec) FromImageApplicationProviderSpec(v ImageApplicationProviderSpec) error

FromImageApplicationProviderSpec overwrites any union data inside the ApplicationProviderSpec as the provided ImageApplicationProviderSpec

func (*ApplicationProviderSpec) FromInlineApplicationProviderSpec

func (t *ApplicationProviderSpec) FromInlineApplicationProviderSpec(v InlineApplicationProviderSpec) error

FromInlineApplicationProviderSpec overwrites any union data inside the ApplicationProviderSpec as the provided InlineApplicationProviderSpec

func (ApplicationProviderSpec) MarshalJSON

func (t ApplicationProviderSpec) MarshalJSON() ([]byte, error)

func (*ApplicationProviderSpec) MergeImageApplicationProviderSpec

func (t *ApplicationProviderSpec) MergeImageApplicationProviderSpec(v ImageApplicationProviderSpec) error

MergeImageApplicationProviderSpec performs a merge with any union data inside the ApplicationProviderSpec, using the provided ImageApplicationProviderSpec

func (*ApplicationProviderSpec) MergeInlineApplicationProviderSpec

func (t *ApplicationProviderSpec) MergeInlineApplicationProviderSpec(v InlineApplicationProviderSpec) error

MergeInlineApplicationProviderSpec performs a merge with any union data inside the ApplicationProviderSpec, using the provided InlineApplicationProviderSpec

func (ApplicationProviderSpec) Type

Type returns the type of the application provider.

func (*ApplicationProviderSpec) UnmarshalJSON

func (t *ApplicationProviderSpec) UnmarshalJSON(b []byte) error

func (ApplicationProviderSpec) Validate

func (a ApplicationProviderSpec) Validate() []error

type ApplicationProviderType

type ApplicationProviderType string
const (
	ImageApplicationProviderType  ApplicationProviderType = "image"
	InlineApplicationProviderType ApplicationProviderType = "inline"
)

type ApplicationResourceLimits

type ApplicationResourceLimits struct {
	// Cpu CPU limit in cores. Format restricted based on application type.
	Cpu *string `json:"cpu,omitempty"`

	// Memory Memory limit with optional unit. Format restricted based on application type.
	Memory *string `json:"memory,omitempty"`
}

ApplicationResourceLimits Resource limits for the application.

type ApplicationResources

type ApplicationResources struct {
	// Limits Resource limits for the application.
	Limits *ApplicationResourceLimits `json:"limits,omitempty"`
}

ApplicationResources Resource constraints for the application.

type ApplicationStatusType

type ApplicationStatusType string

ApplicationStatusType Status of a single application on the device.

const (
	ApplicationStatusCompleted ApplicationStatusType = "Completed"
	ApplicationStatusError     ApplicationStatusType = "Error"
	ApplicationStatusPreparing ApplicationStatusType = "Preparing"
	ApplicationStatusRunning   ApplicationStatusType = "Running"
	ApplicationStatusStarting  ApplicationStatusType = "Starting"
	ApplicationStatusUnknown   ApplicationStatusType = "Unknown"
)

Defines values for ApplicationStatusType.

type ApplicationVolume

type ApplicationVolume struct {
	// Name Unique name of the volume used within the application.
	Name string `json:"name"`
	// contains filtered or unexported fields
}

ApplicationVolume defines model for ApplicationVolume.

func (ApplicationVolume) AsImageMountVolumeProviderSpec

func (t ApplicationVolume) AsImageMountVolumeProviderSpec() (ImageMountVolumeProviderSpec, error)

AsImageMountVolumeProviderSpec returns the union data inside the ApplicationVolume as a ImageMountVolumeProviderSpec

func (ApplicationVolume) AsImageVolumeProviderSpec

func (t ApplicationVolume) AsImageVolumeProviderSpec() (ImageVolumeProviderSpec, error)

AsImageVolumeProviderSpec returns the union data inside the ApplicationVolume as a ImageVolumeProviderSpec

func (ApplicationVolume) AsMountVolumeProviderSpec

func (t ApplicationVolume) AsMountVolumeProviderSpec() (MountVolumeProviderSpec, error)

AsMountVolumeProviderSpec returns the union data inside the ApplicationVolume as a MountVolumeProviderSpec

func (*ApplicationVolume) FromImageMountVolumeProviderSpec

func (t *ApplicationVolume) FromImageMountVolumeProviderSpec(v ImageMountVolumeProviderSpec) error

FromImageMountVolumeProviderSpec overwrites any union data inside the ApplicationVolume as the provided ImageMountVolumeProviderSpec

func (*ApplicationVolume) FromImageVolumeProviderSpec

func (t *ApplicationVolume) FromImageVolumeProviderSpec(v ImageVolumeProviderSpec) error

FromImageVolumeProviderSpec overwrites any union data inside the ApplicationVolume as the provided ImageVolumeProviderSpec

func (*ApplicationVolume) FromMountVolumeProviderSpec

func (t *ApplicationVolume) FromMountVolumeProviderSpec(v MountVolumeProviderSpec) error

FromMountVolumeProviderSpec overwrites any union data inside the ApplicationVolume as the provided MountVolumeProviderSpec

func (ApplicationVolume) MarshalJSON

func (t ApplicationVolume) MarshalJSON() ([]byte, error)

func (*ApplicationVolume) MergeImageMountVolumeProviderSpec

func (t *ApplicationVolume) MergeImageMountVolumeProviderSpec(v ImageMountVolumeProviderSpec) error

MergeImageMountVolumeProviderSpec performs a merge with any union data inside the ApplicationVolume, using the provided ImageMountVolumeProviderSpec

func (*ApplicationVolume) MergeImageVolumeProviderSpec

func (t *ApplicationVolume) MergeImageVolumeProviderSpec(v ImageVolumeProviderSpec) error

MergeImageVolumeProviderSpec performs a merge with any union data inside the ApplicationVolume, using the provided ImageVolumeProviderSpec

func (*ApplicationVolume) MergeMountVolumeProviderSpec

func (t *ApplicationVolume) MergeMountVolumeProviderSpec(v MountVolumeProviderSpec) error

MergeMountVolumeProviderSpec performs a merge with any union data inside the ApplicationVolume, using the provided MountVolumeProviderSpec

func (ApplicationVolume) Type

func (*ApplicationVolume) UnmarshalJSON

func (t *ApplicationVolume) UnmarshalJSON(b []byte) error

type ApplicationVolumeProviderSpec

type ApplicationVolumeProviderSpec struct {
	// Volumes List of application volumes.
	Volumes *[]ApplicationVolume `json:"volumes,omitempty"`
}

ApplicationVolumeProviderSpec defines model for ApplicationVolumeProviderSpec.

type ApplicationVolumeProviderType

type ApplicationVolumeProviderType string
const (
	ImageApplicationVolumeProviderType      ApplicationVolumeProviderType = "image"
	MountApplicationVolumeProviderType      ApplicationVolumeProviderType = "mount"
	ImageMountApplicationVolumeProviderType ApplicationVolumeProviderType = "image_mount"
)

type ApplicationVolumeStatus

type ApplicationVolumeStatus struct {
	// Name Name of the volume.
	Name string `json:"name"`

	// Reference Reference to the deployed OCI-compliant image or artifact backing the volume.
	Reference string `json:"reference"`
}

ApplicationVolumeStatus Status of a volume used by an application.

type ApplicationsSummaryStatusType

type ApplicationsSummaryStatusType string

ApplicationsSummaryStatusType Status of all applications on the device.

const (
	ApplicationsSummaryStatusDegraded       ApplicationsSummaryStatusType = "Degraded"
	ApplicationsSummaryStatusError          ApplicationsSummaryStatusType = "Error"
	ApplicationsSummaryStatusHealthy        ApplicationsSummaryStatusType = "Healthy"
	ApplicationsSummaryStatusNoApplications ApplicationsSummaryStatusType = "NoApplications"
	ApplicationsSummaryStatusUnknown        ApplicationsSummaryStatusType = "Unknown"
)

Defines values for ApplicationsSummaryStatusType.

type ApproveEnrollmentRequestJSONRequestBody

type ApproveEnrollmentRequestJSONRequestBody = EnrollmentRequestApproval

ApproveEnrollmentRequestJSONRequestBody defines body for ApproveEnrollmentRequest for application/json ContentType.

type AuthConfig

type AuthConfig struct {
	// ApiVersion APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources.
	ApiVersion string `json:"apiVersion"`

	// DefaultProvider Name of the default authentication provider.
	DefaultProvider *string `json:"defaultProvider,omitempty"`

	// OrganizationsEnabled Whether organizations are enabled for authentication.
	OrganizationsEnabled *bool `json:"organizationsEnabled,omitempty"`

	// Providers List of all available authentication providers.
	Providers *[]AuthProvider `json:"providers,omitempty"`
}

AuthConfig defines model for AuthConfig.

func (*AuthConfig) HideSensitiveData

func (a *AuthConfig) HideSensitiveData() error

type AuthDynamicOrganizationAssignment

type AuthDynamicOrganizationAssignment struct {
	// ClaimPath The JSON path to the claim that contains the organization identifier (e.g., ["groups", "0"] or ["custom", "org"]).
	ClaimPath []string `json:"claimPath"`

	// OrganizationNamePrefix The prefix for the organization name (e.g., "org-").
	OrganizationNamePrefix *string `json:"organizationNamePrefix,omitempty"`

	// OrganizationNameSuffix The suffix for the organization name (e.g., "-org").
	OrganizationNameSuffix *string `json:"organizationNameSuffix,omitempty"`

	// Type The type of organization assignment.
	Type AuthDynamicOrganizationAssignmentType `json:"type"`
}

AuthDynamicOrganizationAssignment AuthDynamicOrganizationAssignment assigns users to organizations based on auth provider claims.

func (AuthDynamicOrganizationAssignment) Validate

type AuthDynamicOrganizationAssignmentType

type AuthDynamicOrganizationAssignmentType string

AuthDynamicOrganizationAssignmentType The type of organization assignment.

const (
	AuthDynamicOrganizationAssignmentTypeDynamic AuthDynamicOrganizationAssignmentType = "dynamic"
)

Defines values for AuthDynamicOrganizationAssignmentType.

type AuthDynamicRoleAssignment

type AuthDynamicRoleAssignment struct {
	// ClaimPath The JSON path to the role/group claim (e.g., ["groups"], ["roles"], ["realm_access", "roles"]).
	ClaimPath []string `json:"claimPath"`

	// Separator Separator for org:role format (default ':'). Roles containing the separator are split into organization-scoped roles. Roles without separator are global and apply to all organizations.
	Separator *string `json:"separator,omitempty"`

	// Type The type of role assignment.
	Type AuthDynamicRoleAssignmentType `json:"type"`
}

AuthDynamicRoleAssignment AuthDynamicRoleAssignment extracts roles from auth provider claims using a JSON path.

func (AuthDynamicRoleAssignment) Validate

func (a AuthDynamicRoleAssignment) Validate(ctx context.Context) []error

type AuthDynamicRoleAssignmentType

type AuthDynamicRoleAssignmentType string

AuthDynamicRoleAssignmentType The type of role assignment.

const (
	AuthDynamicRoleAssignmentTypeDynamic AuthDynamicRoleAssignmentType = "dynamic"
)

Defines values for AuthDynamicRoleAssignmentType.

type AuthOrganizationAssignment

type AuthOrganizationAssignment struct {
	// contains filtered or unexported fields
}

AuthOrganizationAssignment AuthOrganizationAssignment defines how users from this auth provider are assigned to organizations.

func (AuthOrganizationAssignment) AsAuthDynamicOrganizationAssignment

func (t AuthOrganizationAssignment) AsAuthDynamicOrganizationAssignment() (AuthDynamicOrganizationAssignment, error)

AsAuthDynamicOrganizationAssignment returns the union data inside the AuthOrganizationAssignment as a AuthDynamicOrganizationAssignment

func (AuthOrganizationAssignment) AsAuthPerUserOrganizationAssignment

func (t AuthOrganizationAssignment) AsAuthPerUserOrganizationAssignment() (AuthPerUserOrganizationAssignment, error)

AsAuthPerUserOrganizationAssignment returns the union data inside the AuthOrganizationAssignment as a AuthPerUserOrganizationAssignment

func (AuthOrganizationAssignment) AsAuthStaticOrganizationAssignment

func (t AuthOrganizationAssignment) AsAuthStaticOrganizationAssignment() (AuthStaticOrganizationAssignment, error)

AsAuthStaticOrganizationAssignment returns the union data inside the AuthOrganizationAssignment as a AuthStaticOrganizationAssignment

func (AuthOrganizationAssignment) Discriminator

func (t AuthOrganizationAssignment) Discriminator() (string, error)

func (*AuthOrganizationAssignment) FromAuthDynamicOrganizationAssignment

func (t *AuthOrganizationAssignment) FromAuthDynamicOrganizationAssignment(v AuthDynamicOrganizationAssignment) error

FromAuthDynamicOrganizationAssignment overwrites any union data inside the AuthOrganizationAssignment as the provided AuthDynamicOrganizationAssignment

func (*AuthOrganizationAssignment) FromAuthPerUserOrganizationAssignment

func (t *AuthOrganizationAssignment) FromAuthPerUserOrganizationAssignment(v AuthPerUserOrganizationAssignment) error

FromAuthPerUserOrganizationAssignment overwrites any union data inside the AuthOrganizationAssignment as the provided AuthPerUserOrganizationAssignment

func (*AuthOrganizationAssignment) FromAuthStaticOrganizationAssignment

func (t *AuthOrganizationAssignment) FromAuthStaticOrganizationAssignment(v AuthStaticOrganizationAssignment) error

FromAuthStaticOrganizationAssignment overwrites any union data inside the AuthOrganizationAssignment as the provided AuthStaticOrganizationAssignment

func (AuthOrganizationAssignment) MarshalJSON

func (t AuthOrganizationAssignment) MarshalJSON() ([]byte, error)

func (*AuthOrganizationAssignment) MergeAuthDynamicOrganizationAssignment

func (t *AuthOrganizationAssignment) MergeAuthDynamicOrganizationAssignment(v AuthDynamicOrganizationAssignment) error

MergeAuthDynamicOrganizationAssignment performs a merge with any union data inside the AuthOrganizationAssignment, using the provided AuthDynamicOrganizationAssignment

func (*AuthOrganizationAssignment) MergeAuthPerUserOrganizationAssignment

func (t *AuthOrganizationAssignment) MergeAuthPerUserOrganizationAssignment(v AuthPerUserOrganizationAssignment) error

MergeAuthPerUserOrganizationAssignment performs a merge with any union data inside the AuthOrganizationAssignment, using the provided AuthPerUserOrganizationAssignment

func (*AuthOrganizationAssignment) MergeAuthStaticOrganizationAssignment

func (t *AuthOrganizationAssignment) MergeAuthStaticOrganizationAssignment(v AuthStaticOrganizationAssignment) error

MergeAuthStaticOrganizationAssignment performs a merge with any union data inside the AuthOrganizationAssignment, using the provided AuthStaticOrganizationAssignment

func (*AuthOrganizationAssignment) UnmarshalJSON

func (t *AuthOrganizationAssignment) UnmarshalJSON(b []byte) error

func (AuthOrganizationAssignment) Validate

func (a AuthOrganizationAssignment) Validate(ctx context.Context) []error

func (AuthOrganizationAssignment) ValueByDiscriminator

func (t AuthOrganizationAssignment) ValueByDiscriminator() (interface{}, error)

type AuthPerUserOrganizationAssignment

type AuthPerUserOrganizationAssignment struct {
	// OrganizationNamePrefix The prefix for the user-specific organization name (e.g., "user-org-").
	OrganizationNamePrefix *string `json:"organizationNamePrefix,omitempty"`

	// OrganizationNameSuffix The suffix for the user-specific organization name (e.g., "-org").
	OrganizationNameSuffix *string `json:"organizationNameSuffix,omitempty"`

	// Type The type of organization assignment.
	Type AuthPerUserOrganizationAssignmentType `json:"type"`
}

AuthPerUserOrganizationAssignment AuthPerUserOrganizationAssignment creates a separate organization for each user.

func (AuthPerUserOrganizationAssignment) Validate

type AuthPerUserOrganizationAssignmentType

type AuthPerUserOrganizationAssignmentType string

AuthPerUserOrganizationAssignmentType The type of organization assignment.

const (
	PerUser AuthPerUserOrganizationAssignmentType = "perUser"
)

Defines values for AuthPerUserOrganizationAssignmentType.

type AuthProvider

type AuthProvider struct {
	// ApiVersion APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources.
	ApiVersion string `json:"apiVersion"`

	// Kind Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds.
	Kind string `json:"kind"`

	// Metadata ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create.
	Metadata ObjectMeta       `json:"metadata"`
	Spec     AuthProviderSpec `json:"spec"`
}

AuthProvider AuthProvider represents an authentication provider configuration supporting both OIDC and OAuth2.

func (*AuthProvider) HideSensitiveData

func (a *AuthProvider) HideSensitiveData() error

func (AuthProvider) Validate

func (a AuthProvider) Validate(ctx context.Context) []error

type AuthProviderList

type AuthProviderList struct {
	// ApiVersion APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources.
	ApiVersion string `json:"apiVersion"`

	// Items List of auth providers.
	Items []AuthProvider `json:"items"`

	// Kind Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds.
	Kind string `json:"kind"`

	// Metadata ListMeta describes metadata that synthetic resources must have, including lists and various status objects. A resource may have only one of {ObjectMeta, ListMeta}.
	Metadata ListMeta `json:"metadata"`
}

AuthProviderList AuthProviderList is a list of auth providers.

func (*AuthProviderList) HideSensitiveData

func (a *AuthProviderList) HideSensitiveData() error

type AuthProviderSpec

type AuthProviderSpec struct {
	// contains filtered or unexported fields
}

AuthProviderSpec defines model for AuthProviderSpec.

func (AuthProviderSpec) AsAapProviderSpec

func (t AuthProviderSpec) AsAapProviderSpec() (AapProviderSpec, error)

AsAapProviderSpec returns the union data inside the AuthProviderSpec as a AapProviderSpec

func (AuthProviderSpec) AsK8sProviderSpec

func (t AuthProviderSpec) AsK8sProviderSpec() (K8sProviderSpec, error)

AsK8sProviderSpec returns the union data inside the AuthProviderSpec as a K8sProviderSpec

func (AuthProviderSpec) AsOAuth2ProviderSpec

func (t AuthProviderSpec) AsOAuth2ProviderSpec() (OAuth2ProviderSpec, error)

AsOAuth2ProviderSpec returns the union data inside the AuthProviderSpec as a OAuth2ProviderSpec

func (AuthProviderSpec) AsOIDCProviderSpec

func (t AuthProviderSpec) AsOIDCProviderSpec() (OIDCProviderSpec, error)

AsOIDCProviderSpec returns the union data inside the AuthProviderSpec as a OIDCProviderSpec

func (AuthProviderSpec) AsOpenShiftProviderSpec

func (t AuthProviderSpec) AsOpenShiftProviderSpec() (OpenShiftProviderSpec, error)

AsOpenShiftProviderSpec returns the union data inside the AuthProviderSpec as a OpenShiftProviderSpec

func (AuthProviderSpec) Discriminator

func (t AuthProviderSpec) Discriminator() (string, error)

func (*AuthProviderSpec) FromAapProviderSpec

func (t *AuthProviderSpec) FromAapProviderSpec(v AapProviderSpec) error

FromAapProviderSpec overwrites any union data inside the AuthProviderSpec as the provided AapProviderSpec

func (*AuthProviderSpec) FromK8sProviderSpec

func (t *AuthProviderSpec) FromK8sProviderSpec(v K8sProviderSpec) error

FromK8sProviderSpec overwrites any union data inside the AuthProviderSpec as the provided K8sProviderSpec

func (*AuthProviderSpec) FromOAuth2ProviderSpec

func (t *AuthProviderSpec) FromOAuth2ProviderSpec(v OAuth2ProviderSpec) error

FromOAuth2ProviderSpec overwrites any union data inside the AuthProviderSpec as the provided OAuth2ProviderSpec

func (*AuthProviderSpec) FromOIDCProviderSpec

func (t *AuthProviderSpec) FromOIDCProviderSpec(v OIDCProviderSpec) error

FromOIDCProviderSpec overwrites any union data inside the AuthProviderSpec as the provided OIDCProviderSpec

func (*AuthProviderSpec) FromOpenShiftProviderSpec

func (t *AuthProviderSpec) FromOpenShiftProviderSpec(v OpenShiftProviderSpec) error

FromOpenShiftProviderSpec overwrites any union data inside the AuthProviderSpec as the provided OpenShiftProviderSpec

func (AuthProviderSpec) MarshalJSON

func (t AuthProviderSpec) MarshalJSON() ([]byte, error)

func (*AuthProviderSpec) MergeAapProviderSpec

func (t *AuthProviderSpec) MergeAapProviderSpec(v AapProviderSpec) error

MergeAapProviderSpec performs a merge with any union data inside the AuthProviderSpec, using the provided AapProviderSpec

func (*AuthProviderSpec) MergeK8sProviderSpec

func (t *AuthProviderSpec) MergeK8sProviderSpec(v K8sProviderSpec) error

MergeK8sProviderSpec performs a merge with any union data inside the AuthProviderSpec, using the provided K8sProviderSpec

func (*AuthProviderSpec) MergeOAuth2ProviderSpec

func (t *AuthProviderSpec) MergeOAuth2ProviderSpec(v OAuth2ProviderSpec) error

MergeOAuth2ProviderSpec performs a merge with any union data inside the AuthProviderSpec, using the provided OAuth2ProviderSpec

func (*AuthProviderSpec) MergeOIDCProviderSpec

func (t *AuthProviderSpec) MergeOIDCProviderSpec(v OIDCProviderSpec) error

MergeOIDCProviderSpec performs a merge with any union data inside the AuthProviderSpec, using the provided OIDCProviderSpec

func (*AuthProviderSpec) MergeOpenShiftProviderSpec

func (t *AuthProviderSpec) MergeOpenShiftProviderSpec(v OpenShiftProviderSpec) error

MergeOpenShiftProviderSpec performs a merge with any union data inside the AuthProviderSpec, using the provided OpenShiftProviderSpec

func (*AuthProviderSpec) UnmarshalJSON

func (t *AuthProviderSpec) UnmarshalJSON(b []byte) error

func (AuthProviderSpec) Validate

func (a AuthProviderSpec) Validate(ctx context.Context) []error

func (AuthProviderSpec) ValueByDiscriminator

func (t AuthProviderSpec) ValueByDiscriminator() (interface{}, error)

type AuthRoleAssignment

type AuthRoleAssignment struct {
	// contains filtered or unexported fields
}

AuthRoleAssignment AuthRoleAssignment defines how roles are assigned to users from this auth provider.

func (AuthRoleAssignment) AsAuthDynamicRoleAssignment

func (t AuthRoleAssignment) AsAuthDynamicRoleAssignment() (AuthDynamicRoleAssignment, error)

AsAuthDynamicRoleAssignment returns the union data inside the AuthRoleAssignment as a AuthDynamicRoleAssignment

func (AuthRoleAssignment) AsAuthStaticRoleAssignment

func (t AuthRoleAssignment) AsAuthStaticRoleAssignment() (AuthStaticRoleAssignment, error)

AsAuthStaticRoleAssignment returns the union data inside the AuthRoleAssignment as a AuthStaticRoleAssignment

func (AuthRoleAssignment) Discriminator

func (t AuthRoleAssignment) Discriminator() (string, error)

func (*AuthRoleAssignment) FromAuthDynamicRoleAssignment

func (t *AuthRoleAssignment) FromAuthDynamicRoleAssignment(v AuthDynamicRoleAssignment) error

FromAuthDynamicRoleAssignment overwrites any union data inside the AuthRoleAssignment as the provided AuthDynamicRoleAssignment

func (*AuthRoleAssignment) FromAuthStaticRoleAssignment

func (t *AuthRoleAssignment) FromAuthStaticRoleAssignment(v AuthStaticRoleAssignment) error

FromAuthStaticRoleAssignment overwrites any union data inside the AuthRoleAssignment as the provided AuthStaticRoleAssignment

func (AuthRoleAssignment) MarshalJSON

func (t AuthRoleAssignment) MarshalJSON() ([]byte, error)

func (*AuthRoleAssignment) MergeAuthDynamicRoleAssignment

func (t *AuthRoleAssignment) MergeAuthDynamicRoleAssignment(v AuthDynamicRoleAssignment) error

MergeAuthDynamicRoleAssignment performs a merge with any union data inside the AuthRoleAssignment, using the provided AuthDynamicRoleAssignment

func (*AuthRoleAssignment) MergeAuthStaticRoleAssignment

func (t *AuthRoleAssignment) MergeAuthStaticRoleAssignment(v AuthStaticRoleAssignment) error

MergeAuthStaticRoleAssignment performs a merge with any union data inside the AuthRoleAssignment, using the provided AuthStaticRoleAssignment

func (*AuthRoleAssignment) UnmarshalJSON

func (t *AuthRoleAssignment) UnmarshalJSON(b []byte) error

func (AuthRoleAssignment) Validate

func (a AuthRoleAssignment) Validate(ctx context.Context) []error

func (AuthRoleAssignment) ValueByDiscriminator

func (t AuthRoleAssignment) ValueByDiscriminator() (interface{}, error)

type AuthStaticOrganizationAssignment

type AuthStaticOrganizationAssignment struct {
	// OrganizationName The name of the organization where all users will be assigned.
	OrganizationName string `json:"organizationName"`

	// Type The type of organization assignment.
	Type AuthStaticOrganizationAssignmentType `json:"type"`
}

AuthStaticOrganizationAssignment AuthStaticOrganizationAssignment assigns all users from this auth provider to a single static organization.

func (AuthStaticOrganizationAssignment) Validate

type AuthStaticOrganizationAssignmentType

type AuthStaticOrganizationAssignmentType string

AuthStaticOrganizationAssignmentType The type of organization assignment.

const (
	AuthStaticOrganizationAssignmentTypeStatic AuthStaticOrganizationAssignmentType = "static"
)

Defines values for AuthStaticOrganizationAssignmentType.

type AuthStaticRoleAssignment

type AuthStaticRoleAssignment struct {
	// Roles The list of role names to assign to all users.
	Roles []string `json:"roles"`

	// Type The type of role assignment.
	Type AuthStaticRoleAssignmentType `json:"type"`
}

AuthStaticRoleAssignment AuthStaticRoleAssignment assigns a static set of roles to all users from this auth provider.

func (AuthStaticRoleAssignment) Validate

func (a AuthStaticRoleAssignment) Validate(ctx context.Context) []error

type AuthStaticRoleAssignmentType

type AuthStaticRoleAssignmentType string

AuthStaticRoleAssignmentType The type of role assignment.

const (
	AuthStaticRoleAssignmentTypeStatic AuthStaticRoleAssignmentType = "static"
)

Defines values for AuthStaticRoleAssignmentType.

type AuthTokenFormdataRequestBody

type AuthTokenFormdataRequestBody = TokenRequest

AuthTokenFormdataRequestBody defines body for AuthToken for application/x-www-form-urlencoded ContentType.

type AuthTokenJSONRequestBody

type AuthTokenJSONRequestBody = TokenRequest

AuthTokenJSONRequestBody defines body for AuthToken for application/json ContentType.

type AuthValidateParams

type AuthValidateParams struct {
	// Authorization The authentication token to validate.
	Authorization *string `json:"Authorization,omitempty"`
}

AuthValidateParams defines parameters for AuthValidate.

type Batch

type Batch struct {
	// Limit The maximum number or percentage of devices to update in the batch.
	Limit *Batch_Limit `json:"limit,omitempty"`

	// Selector A label selector is a label query over a set of resources. The result of matchLabels and matchExpressions are ANDed. Empty/null label selectors match nothing.
	Selector *LabelSelector `json:"selector,omitempty"`

	// SuccessThreshold Percentage is the string format representing percentage string.
	SuccessThreshold *Percentage `json:"successThreshold,omitempty"`
}

Batch Batch is an element in batch sequence.

func (*Batch) Validate

func (b *Batch) Validate() []error

type BatchLimit1

type BatchLimit1 = int

BatchLimit1 defines model for .

type BatchSequence

type BatchSequence struct {
	// Sequence A list of batch definitions.
	Sequence *[]Batch `json:"sequence,omitempty"`

	// Strategy The strategy of choice for device selection in rollout policy.
	Strategy RolloutStrategy `json:"strategy"`
}

BatchSequence BatchSequence defines the list of batches to be executed in sequence.

func (BatchSequence) Validate

func (b BatchSequence) Validate() []error

type Batch_Limit

type Batch_Limit struct {
	// contains filtered or unexported fields
}

Batch_Limit The maximum number or percentage of devices to update in the batch.

func (Batch_Limit) AsBatchLimit1

func (t Batch_Limit) AsBatchLimit1() (BatchLimit1, error)

AsBatchLimit1 returns the union data inside the Batch_Limit as a BatchLimit1

func (Batch_Limit) AsPercentage

func (t Batch_Limit) AsPercentage() (Percentage, error)

AsPercentage returns the union data inside the Batch_Limit as a Percentage

func (*Batch_Limit) FromBatchLimit1

func (t *Batch_Limit) FromBatchLimit1(v BatchLimit1) error

FromBatchLimit1 overwrites any union data inside the Batch_Limit as the provided BatchLimit1

func (*Batch_Limit) FromPercentage

func (t *Batch_Limit) FromPercentage(v Percentage) error

FromPercentage overwrites any union data inside the Batch_Limit as the provided Percentage

func (Batch_Limit) MarshalJSON

func (t Batch_Limit) MarshalJSON() ([]byte, error)

func (*Batch_Limit) MergeBatchLimit1

func (t *Batch_Limit) MergeBatchLimit1(v BatchLimit1) error

MergeBatchLimit1 performs a merge with any union data inside the Batch_Limit, using the provided BatchLimit1

func (*Batch_Limit) MergePercentage

func (t *Batch_Limit) MergePercentage(v Percentage) error

MergePercentage performs a merge with any union data inside the Batch_Limit, using the provided Percentage

func (*Batch_Limit) UnmarshalJSON

func (t *Batch_Limit) UnmarshalJSON(b []byte) error

func (*Batch_Limit) Validate

func (b *Batch_Limit) Validate() []error

type CertificateSigningRequest

type CertificateSigningRequest struct {
	// ApiVersion APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources.
	ApiVersion string `json:"apiVersion"`

	// Kind Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds.
	Kind string `json:"kind"`

	// Metadata ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create.
	Metadata ObjectMeta `json:"metadata"`

	// Spec Wrapper around a user-created CSR, modeled on kubernetes io.k8s.api.certificates.v1.CertificateSigningRequestSpec.
	Spec CertificateSigningRequestSpec `json:"spec"`

	// Status Indicates approval/denial/failure status of the CSR, and contains the issued certificate if any exists.
	Status *CertificateSigningRequestStatus `json:"status,omitempty"`
}

CertificateSigningRequest CertificateSigningRequest represents a request for a signed certificate from the CA.

func (CertificateSigningRequest) Validate

func (r CertificateSigningRequest) Validate() []error

func (*CertificateSigningRequest) ValidateUpdate

func (csr *CertificateSigningRequest) ValidateUpdate(newObj *CertificateSigningRequest) []error

ValidateUpdate ensures immutable fields are unchanged for CertificateSigningRequest.

type CertificateSigningRequestList

type CertificateSigningRequestList struct {
	// ApiVersion APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources.
	ApiVersion string `json:"apiVersion"`

	// Items List of CertificateSigningRequest.
	Items []CertificateSigningRequest `json:"items"`

	// Kind Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds.
	Kind string `json:"kind"`

	// Metadata ListMeta describes metadata that synthetic resources must have, including lists and various status objects. A resource may have only one of {ObjectMeta, ListMeta}.
	Metadata ListMeta `json:"metadata"`
}

CertificateSigningRequestList CertificateSigningRequestList is a list of CertificateSigningRequest.

type CertificateSigningRequestSpec

type CertificateSigningRequestSpec struct {
	// ExpirationSeconds Requested duration of validity for the certificate.
	ExpirationSeconds *int32 `json:"expirationSeconds,omitempty"`

	// Extra Extra attributes of the user that created the CSR, populated by the API server on creation and immutable.
	Extra *map[string][]string `json:"extra,omitempty"`

	// Request The base64-encoded PEM-encoded PKCS#10 CSR. Matches the spec.request field in a kubernetes CertificateSigningRequest resource.
	Request []byte `json:"request"`

	// SignerName Indicates the requested signer, and is a qualified name.
	SignerName string `json:"signerName"`

	// Uid UID of the user that created the CSR, populated by the API server on creation and immutable.
	Uid *string `json:"uid,omitempty"`

	// Usages Usages specifies a set of key usages requested in the issued certificate.
	Usages *[]string `json:"usages,omitempty"`

	// Username Name of the user that created the CSR, populated by the API server on creation and immutable.
	Username *string `json:"username,omitempty"`
}

CertificateSigningRequestSpec Wrapper around a user-created CSR, modeled on kubernetes io.k8s.api.certificates.v1.CertificateSigningRequestSpec.

type CertificateSigningRequestStatus

type CertificateSigningRequestStatus struct {
	// Certificate The issued signed certificate, immutable once populated.
	Certificate *[]byte `json:"certificate,omitempty"`

	// Conditions Conditions applied to the request. Known conditions are Approved, Denied, and Failed.
	Conditions []Condition `json:"conditions"`
}

CertificateSigningRequestStatus Indicates approval/denial/failure status of the CSR, and contains the issued certificate if any exists.

type Condition

type Condition struct {
	// LastTransitionTime The last time the condition transitioned from one status to another.
	LastTransitionTime time.Time `json:"lastTransitionTime"`

	// Message Human readable message indicating details about last transition.
	Message string `json:"message"`

	// ObservedGeneration The .metadata.generation that the condition was set based upon.
	ObservedGeneration *int64 `json:"observedGeneration,omitempty"`

	// Reason A (brief) reason for the condition's last transition.
	Reason string `json:"reason"`

	// Status Status of the condition, one of True, False, Unknown.
	Status ConditionStatus `json:"status"`

	// Type Type of condition in CamelCase.
	Type ConditionType `json:"type"`
}

Condition Condition contains details for one aspect of the current state of this API Resource.

func FindStatusCondition

func FindStatusCondition(conditions []Condition, conditionType ConditionType) *Condition

FindStatusCondition finds the conditionType in conditions.

func (*Condition) IsDecomComplete

func (c *Condition) IsDecomComplete() bool

IsDecomComplete() is true if the Condition is a DeviceDecommissioning Condition Type with 'True' Status and 'Complete' Reason.

func (*Condition) IsDecomError

func (c *Condition) IsDecomError() bool

IsDecomError() is true if the Condition is a DeviceDecommissioning Condition Type with 'True' Status and 'Error' Reason.

func (*Condition) IsDecomStarted

func (c *Condition) IsDecomStarted() bool

IsDecomStarted() is true if the Condition is a DeviceDecommissioning Condition Type with 'True' Status and 'Started' Reason.

type ConditionStatus

type ConditionStatus string

ConditionStatus Status of the condition, one of True, False, Unknown.

const (
	ConditionStatusFalse   ConditionStatus = "False"
	ConditionStatusTrue    ConditionStatus = "True"
	ConditionStatusUnknown ConditionStatus = "Unknown"
)

Defines values for ConditionStatus.

type ConditionType

type ConditionType string

ConditionType Type of condition in CamelCase.

const (
	ConditionTypeCertificateSigningRequestApproved    ConditionType = "Approved"
	ConditionTypeCertificateSigningRequestDenied      ConditionType = "Denied"
	ConditionTypeCertificateSigningRequestFailed      ConditionType = "Failed"
	ConditionTypeCertificateSigningRequestTPMVerified ConditionType = "TPMVerified"
	ConditionTypeDeviceDecommissioning                ConditionType = "DeviceDecommissioning"
	ConditionTypeDeviceMultipleOwners                 ConditionType = "MultipleOwners"
	ConditionTypeDeviceSpecValid                      ConditionType = "SpecValid"
	ConditionTypeDeviceUpdating                       ConditionType = "Updating"
	ConditionTypeEnrollmentRequestApproved            ConditionType = "Approved"
	ConditionTypeEnrollmentRequestTPMVerified         ConditionType = "TPMVerified"
	ConditionTypeFleetRolloutInProgress               ConditionType = "RolloutInProgress"
	ConditionTypeFleetValid                           ConditionType = "Valid"
	ConditionTypeRepositoryAccessible                 ConditionType = "Accessible"
	ConditionTypeResourceSyncAccessible               ConditionType = "Accessible"
	ConditionTypeResourceSyncResourceParsed           ConditionType = "ResourceParsed"
	ConditionTypeResourceSyncSynced                   ConditionType = "Synced"
)

Defines values for ConditionType.

type ConfigProviderSpec

type ConfigProviderSpec struct {
	// contains filtered or unexported fields
}

ConfigProviderSpec defines model for ConfigProviderSpec.

func (ConfigProviderSpec) AsGitConfigProviderSpec

func (t ConfigProviderSpec) AsGitConfigProviderSpec() (GitConfigProviderSpec, error)

AsGitConfigProviderSpec returns the union data inside the ConfigProviderSpec as a GitConfigProviderSpec

func (ConfigProviderSpec) AsHttpConfigProviderSpec

func (t ConfigProviderSpec) AsHttpConfigProviderSpec() (HttpConfigProviderSpec, error)

AsHttpConfigProviderSpec returns the union data inside the ConfigProviderSpec as a HttpConfigProviderSpec

func (ConfigProviderSpec) AsInlineConfigProviderSpec

func (t ConfigProviderSpec) AsInlineConfigProviderSpec() (InlineConfigProviderSpec, error)

AsInlineConfigProviderSpec returns the union data inside the ConfigProviderSpec as a InlineConfigProviderSpec

func (ConfigProviderSpec) AsKubernetesSecretProviderSpec

func (t ConfigProviderSpec) AsKubernetesSecretProviderSpec() (KubernetesSecretProviderSpec, error)

AsKubernetesSecretProviderSpec returns the union data inside the ConfigProviderSpec as a KubernetesSecretProviderSpec

func (*ConfigProviderSpec) FromGitConfigProviderSpec

func (t *ConfigProviderSpec) FromGitConfigProviderSpec(v GitConfigProviderSpec) error

FromGitConfigProviderSpec overwrites any union data inside the ConfigProviderSpec as the provided GitConfigProviderSpec

func (*ConfigProviderSpec) FromHttpConfigProviderSpec

func (t *ConfigProviderSpec) FromHttpConfigProviderSpec(v HttpConfigProviderSpec) error

FromHttpConfigProviderSpec overwrites any union data inside the ConfigProviderSpec as the provided HttpConfigProviderSpec

func (*ConfigProviderSpec) FromInlineConfigProviderSpec

func (t *ConfigProviderSpec) FromInlineConfigProviderSpec(v InlineConfigProviderSpec) error

FromInlineConfigProviderSpec overwrites any union data inside the ConfigProviderSpec as the provided InlineConfigProviderSpec

func (*ConfigProviderSpec) FromKubernetesSecretProviderSpec

func (t *ConfigProviderSpec) FromKubernetesSecretProviderSpec(v KubernetesSecretProviderSpec) error

FromKubernetesSecretProviderSpec overwrites any union data inside the ConfigProviderSpec as the provided KubernetesSecretProviderSpec

func (ConfigProviderSpec) MarshalJSON

func (t ConfigProviderSpec) MarshalJSON() ([]byte, error)

func (*ConfigProviderSpec) MergeGitConfigProviderSpec

func (t *ConfigProviderSpec) MergeGitConfigProviderSpec(v GitConfigProviderSpec) error

MergeGitConfigProviderSpec performs a merge with any union data inside the ConfigProviderSpec, using the provided GitConfigProviderSpec

func (*ConfigProviderSpec) MergeHttpConfigProviderSpec

func (t *ConfigProviderSpec) MergeHttpConfigProviderSpec(v HttpConfigProviderSpec) error

MergeHttpConfigProviderSpec performs a merge with any union data inside the ConfigProviderSpec, using the provided HttpConfigProviderSpec

func (*ConfigProviderSpec) MergeInlineConfigProviderSpec

func (t *ConfigProviderSpec) MergeInlineConfigProviderSpec(v InlineConfigProviderSpec) error

MergeInlineConfigProviderSpec performs a merge with any union data inside the ConfigProviderSpec, using the provided InlineConfigProviderSpec

func (*ConfigProviderSpec) MergeKubernetesSecretProviderSpec

func (t *ConfigProviderSpec) MergeKubernetesSecretProviderSpec(v KubernetesSecretProviderSpec) error

MergeKubernetesSecretProviderSpec performs a merge with any union data inside the ConfigProviderSpec, using the provided KubernetesSecretProviderSpec

func (ConfigProviderSpec) Type

Type returns the type of the config provider.

func (*ConfigProviderSpec) UnmarshalJSON

func (t *ConfigProviderSpec) UnmarshalJSON(b []byte) error

type ConfigProviderType

type ConfigProviderType string
const (
	GitConfigProviderType        ConfigProviderType = "gitRef"
	HttpConfigProviderType       ConfigProviderType = "httpRef"
	InlineConfigProviderType     ConfigProviderType = "inline"
	KubernetesSecretProviderType ConfigProviderType = "secretRef"
)

type CpuResourceMonitorSpec

type CpuResourceMonitorSpec struct {
	// AlertRules Array of alert rules. Only one alert per severity is allowed.
	AlertRules []ResourceAlertRule `json:"alertRules"`

	// MonitorType The type of resource to monitor.
	MonitorType string `json:"monitorType"`

	// SamplingInterval Duration between monitor samples. Format: positive integer followed by 's' for seconds, 'm' for minutes, 'h' for hours.
	SamplingInterval string `json:"samplingInterval"`
}

CpuResourceMonitorSpec defines model for CpuResourceMonitorSpec.

type CreateAuthProviderJSONRequestBody

type CreateAuthProviderJSONRequestBody = AuthProvider

CreateAuthProviderJSONRequestBody defines body for CreateAuthProvider for application/json ContentType.

type CreateCertificateSigningRequestJSONRequestBody

type CreateCertificateSigningRequestJSONRequestBody = CertificateSigningRequest

CreateCertificateSigningRequestJSONRequestBody defines body for CreateCertificateSigningRequest for application/json ContentType.

type CreateDeviceJSONRequestBody

type CreateDeviceJSONRequestBody = Device

CreateDeviceJSONRequestBody defines body for CreateDevice for application/json ContentType.

type CreateEnrollmentRequestJSONRequestBody

type CreateEnrollmentRequestJSONRequestBody = EnrollmentRequest

CreateEnrollmentRequestJSONRequestBody defines body for CreateEnrollmentRequest for application/json ContentType.

type CreateFleetJSONRequestBody

type CreateFleetJSONRequestBody = Fleet

CreateFleetJSONRequestBody defines body for CreateFleet for application/json ContentType.

type CreateRepositoryJSONRequestBody

type CreateRepositoryJSONRequestBody = Repository

CreateRepositoryJSONRequestBody defines body for CreateRepository for application/json ContentType.

type CreateResourceSyncJSONRequestBody

type CreateResourceSyncJSONRequestBody = ResourceSync

CreateResourceSyncJSONRequestBody defines body for CreateResourceSync for application/json ContentType.

type CronExpression

type CronExpression = string

CronExpression Cron expression format for scheduling times. The format is `* * * * *`: - Minutes: `*` matches 0-59. - Hours: `*` matches 0-23. - Day of Month: `*` matches 1-31. - Month: `*` matches 1-12. - Day of Week: `*` matches 0-6. Supported operators: - `*`: Matches any value (e.g., `*` in hours matches every hour). - `-`: Range (e.g., `0-8` for 12 AM to 8 AM). - `,`: List (e.g., `1,12` for 1st and 12th minute). - `/`: Step (e.g., `*/12` for every 12th minute). - Single value (e.g., `8` matches the 8th minute). Example: `* 0-8,16-23 * * *`.

type CustomDeviceInfo

type CustomDeviceInfo map[string]string

CustomDeviceInfo User-defined information about the device.

type DecommissionDeviceJSONRequestBody

type DecommissionDeviceJSONRequestBody = DeviceDecommission

DecommissionDeviceJSONRequestBody defines body for DecommissionDevice for application/json ContentType.

type DecommissionState

type DecommissionState string
const (
	// The agent has received the request to decommission from the service.
	DecommissionStateStarted DecommissionState = "Started"
	// The agent has completed its decommissioning actions.
	DecommissionStateComplete DecommissionState = "Completed"
	// The agent has encoutered an error while decommissioning.
	DecommissionStateError DecommissionState = "Error"
)

type Device

type Device struct {
	// ApiVersion APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources.
	ApiVersion string `json:"apiVersion"`

	// Kind Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds.
	Kind string `json:"kind"`

	// Metadata ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create.
	Metadata ObjectMeta `json:"metadata"`

	// Spec DeviceSpec describes a device.
	Spec *DeviceSpec `json:"spec,omitempty"`

	// Status DeviceStatus represents information about the status of a device. Status may trail the actual state of a device.
	Status *DeviceStatus `json:"status,omitempty"`
}

Device Device represents a physical device.

func (*Device) IsDisconnected

func (d *Device) IsDisconnected(disconnectTimeout time.Duration) bool

IsDisconnected() is true if the device never updated status or its last status update is older than disconnectTimeout.

func (*Device) IsManaged

func (d *Device) IsManaged() bool

IsManaged() if the device has its owner field set.

func (*Device) IsManagedBy

func (d *Device) IsManagedBy(f *Fleet) bool

IsManagedBy() is true if the device is managed by the given fleet.

func (*Device) IsRebooting

func (d *Device) IsRebooting() bool

IsRebooting() is true if the device's agent has the updating condition set with state Rebooting.

func (*Device) IsUpdatedToDeviceSpec

func (d *Device) IsUpdatedToDeviceSpec() bool

IsUpdatedToDeviceSpec() is true if the device's current rendered version matches its spec's rendered version.

func (*Device) IsUpdatedToFleetSpec

func (d *Device) IsUpdatedToFleetSpec(f *Fleet) bool

IsUpdatedToFleetSpec() is true if the IsUpdatedToDeviceSpec() and device spec's current rendered version matches its fleet's rendered version.

func (*Device) IsUpdating

func (d *Device) IsUpdating() bool

IsUpdating() is true if the device's agent reports that it is updating.

func (Device) Validate

func (d Device) Validate() []error

func (*Device) ValidateUpdate

func (d *Device) ValidateUpdate(newObj *Device) []error

ValidateUpdate ensures immutable fields are unchanged for Device.

func (*Device) Version

func (d *Device) Version() string

type DeviceApplicationStatus

type DeviceApplicationStatus struct {
	// AppType The type of the application.
	AppType AppType `json:"appType"`

	// Embedded Whether the application is embedded in the bootc image.
	Embedded bool `json:"embedded"`

	// Name Human readable name of the application.
	Name string `json:"name"`

	// Ready The number of containers which are ready in the application.
	Ready string `json:"ready"`

	// Restarts Number of restarts observed for the application.
	Restarts int `json:"restarts"`

	// Status Status of a single application on the device.
	Status ApplicationStatusType `json:"status"`

	// Volumes Status of volumes used by this application.
	Volumes *[]ApplicationVolumeStatus `json:"volumes,omitempty"`
}

DeviceApplicationStatus defines model for DeviceApplicationStatus.

type DeviceApplicationsSummaryStatus

type DeviceApplicationsSummaryStatus struct {
	// Info Human readable information detailing the last application transition.
	Info *string `json:"info,omitempty"`

	// Status Status of all applications on the device.
	Status ApplicationsSummaryStatusType `json:"status"`
}

DeviceApplicationsSummaryStatus A summary of the health of applications on the device.

type DeviceCommand

type DeviceCommand struct {
	Command string   `json:"command,omitempty"`
	Args    []string `json:"args,omitempty"`
}

type DeviceCompletionCount

type DeviceCompletionCount struct {
	Count               int64
	SameRenderedVersion bool
	SameTemplateVersion bool
	UpdatingReason      UpdateState
	UpdateTimedOut      bool
}

type DeviceConfigStatus

type DeviceConfigStatus struct {
	// RenderedVersion Rendered version of the device config.
	RenderedVersion string `json:"renderedVersion"`
}

DeviceConfigStatus Current status of the device config.

type DeviceConsole

type DeviceConsole struct {
	// SessionID The session ID for the console connection.
	SessionID string `json:"sessionID"`

	// SessionMetadata Additional session metadata in the form of key=value pairs, can be used to initialize the type of terminal, console to be used, etc.
	SessionMetadata string `json:"sessionMetadata"`
}

DeviceConsole DeviceConsole represents the console connection information.

type DeviceConsoleSessionMetadata

type DeviceConsoleSessionMetadata struct {
	Term              *string        `json:"term,omitempty"`
	InitialDimensions *TerminalSize  `json:"initialDimensions,omitempty"`
	Command           *DeviceCommand `json:"command,omitempty"`
	TTY               bool           `json:"tty,omitempty"`
	Protocols         []string       `json:"protocols,omitempty"`
}

type DeviceDecommission

type DeviceDecommission struct {
	// Target Specifies the desired decommissioning method of the device.
	Target DeviceDecommissionTargetType `json:"target"`
}

DeviceDecommission Metadata about a device decommissioning request.

type DeviceDecommissionTargetType

type DeviceDecommissionTargetType string

DeviceDecommissionTargetType Specifies the desired decommissioning method of the device.

const (
	DeviceDecommissionTargetTypeFactoryReset DeviceDecommissionTargetType = "FactoryReset"
	DeviceDecommissionTargetTypeUnenroll     DeviceDecommissionTargetType = "Unenroll"
)

Defines values for DeviceDecommissionTargetType.

type DeviceIntegrityCheckStatus

type DeviceIntegrityCheckStatus struct {
	// Info Human-readable information about the integrity check status.
	Info *string `json:"info,omitempty"`

	// Status Status of the integrity check performed on the device.
	Status DeviceIntegrityCheckStatusType `json:"status"`
}

DeviceIntegrityCheckStatus DeviceIntegrityCheckStatus represents the status of the integrity check performed on the device.

type DeviceIntegrityCheckStatusType

type DeviceIntegrityCheckStatusType string

DeviceIntegrityCheckStatusType Status of the integrity check performed on the device.

const (
	DeviceIntegrityCheckStatusFailed      DeviceIntegrityCheckStatusType = "Failed"
	DeviceIntegrityCheckStatusUnknown     DeviceIntegrityCheckStatusType = "Unknown"
	DeviceIntegrityCheckStatusUnsupported DeviceIntegrityCheckStatusType = "Unsupported"
	DeviceIntegrityCheckStatusVerified    DeviceIntegrityCheckStatusType = "Verified"
)

Defines values for DeviceIntegrityCheckStatusType.

type DeviceIntegrityStatus

type DeviceIntegrityStatus struct {
	// DeviceIdentity DeviceIntegrityCheckStatus represents the status of the integrity check performed on the device.
	DeviceIdentity *DeviceIntegrityCheckStatus `json:"deviceIdentity,omitempty"`

	// Info Human readable information about the last integrity transition.
	Info *string `json:"info,omitempty"`

	// LastVerified Timestamp of the last integrity verification.
	LastVerified *time.Time `json:"lastVerified,omitempty"`

	// Status Status of the integrity of the device.
	Status DeviceIntegrityStatusSummaryType `json:"status"`

	// Tpm DeviceIntegrityCheckStatus represents the status of the integrity check performed on the device.
	Tpm *DeviceIntegrityCheckStatus `json:"tpm,omitempty"`
}

DeviceIntegrityStatus Summary status of the integrity of the device.

type DeviceIntegrityStatusSummaryType

type DeviceIntegrityStatusSummaryType string

DeviceIntegrityStatusSummaryType Status of the integrity of the device.

const (
	DeviceIntegrityStatusFailed      DeviceIntegrityStatusSummaryType = "Failed"
	DeviceIntegrityStatusUnknown     DeviceIntegrityStatusSummaryType = "Unknown"
	DeviceIntegrityStatusUnsupported DeviceIntegrityStatusSummaryType = "Unsupported"
	DeviceIntegrityStatusVerified    DeviceIntegrityStatusSummaryType = "Verified"
)

Defines values for DeviceIntegrityStatusSummaryType.

type DeviceLastSeen

type DeviceLastSeen struct {
	// LastSeen The last time the device was seen by the service.
	LastSeen time.Time `json:"lastSeen"`
}

DeviceLastSeen DeviceLastSeen represents the last seen timestamp of a device.

type DeviceLifecycleHookType

type DeviceLifecycleHookType string

DeviceLifecycleHookType defines model for DeviceLifecycleHookType.

const (
	DeviceLifecycleHookAfterRebooting  DeviceLifecycleHookType = "AfterRebooting"
	DeviceLifecycleHookAfterUpdating   DeviceLifecycleHookType = "AfterUpdating"
	DeviceLifecycleHookBeforeRebooting DeviceLifecycleHookType = "BeforeRebooting"
	DeviceLifecycleHookBeforeUpdating  DeviceLifecycleHookType = "BeforeUpdating"
)

Defines values for DeviceLifecycleHookType.

type DeviceLifecycleStatus

type DeviceLifecycleStatus struct {
	// Info Human readable information about the device lifecycle status.
	Info *string `json:"info,omitempty"`

	// Status Status type of the device lifecycle.
	Status DeviceLifecycleStatusType `json:"status"`
}

DeviceLifecycleStatus Current status of the device lifecycle.

type DeviceLifecycleStatusType

type DeviceLifecycleStatusType string

DeviceLifecycleStatusType Status type of the device lifecycle.

const (
	DeviceLifecycleStatusDecommissioned  DeviceLifecycleStatusType = "Decommissioned"
	DeviceLifecycleStatusDecommissioning DeviceLifecycleStatusType = "Decommissioning"
	DeviceLifecycleStatusEnrolled        DeviceLifecycleStatusType = "Enrolled"
	DeviceLifecycleStatusUnknown         DeviceLifecycleStatusType = "Unknown"
)

Defines values for DeviceLifecycleStatusType.

type DeviceList

type DeviceList struct {
	// ApiVersion APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources.
	ApiVersion string `json:"apiVersion"`

	// Items List of Devices.
	Items []Device `json:"items"`

	// Kind Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds.
	Kind string `json:"kind"`

	// Metadata ListMeta describes metadata that synthetic resources must have, including lists and various status objects. A resource may have only one of {ObjectMeta, ListMeta}.
	Metadata ListMeta `json:"metadata"`

	// Summary A summary of the devices in the fleet returned when fetching a single Fleet.
	Summary *DevicesSummary `json:"summary,omitempty"`
}

DeviceList DeviceList is a list of Devices.

type DeviceMultipleOwnersDetectedDetails

type DeviceMultipleOwnersDetectedDetails struct {
	// DetailType The type of detail for discriminator purposes.
	DetailType DeviceMultipleOwnersDetectedDetailsDetailType `json:"detailType"`

	// MatchingFleets List of fleet names that match the device.
	MatchingFleets []string `json:"matchingFleets"`
}

DeviceMultipleOwnersDetectedDetails defines model for DeviceMultipleOwnersDetectedDetails.

type DeviceMultipleOwnersDetectedDetailsDetailType

type DeviceMultipleOwnersDetectedDetailsDetailType string

DeviceMultipleOwnersDetectedDetailsDetailType The type of detail for discriminator purposes.

const (
	DeviceMultipleOwnersDetected DeviceMultipleOwnersDetectedDetailsDetailType = "DeviceMultipleOwnersDetected"
)

Defines values for DeviceMultipleOwnersDetectedDetailsDetailType.

type DeviceMultipleOwnersResolvedDetails

type DeviceMultipleOwnersResolvedDetails struct {
	// AssignedOwner The fleet assigned as owner (null if no owner).
	AssignedOwner *string `json:"assignedOwner"`

	// DetailType The type of detail for discriminator purposes.
	DetailType DeviceMultipleOwnersResolvedDetailsDetailType `json:"detailType"`

	// PreviousMatchingFleets List of fleets that previously matched the device.
	PreviousMatchingFleets *[]string `json:"previousMatchingFleets,omitempty"`

	// ResolutionType How the conflict was resolved.
	ResolutionType DeviceMultipleOwnersResolvedDetailsResolutionType `json:"resolutionType"`
}

DeviceMultipleOwnersResolvedDetails defines model for DeviceMultipleOwnersResolvedDetails.

type DeviceMultipleOwnersResolvedDetailsDetailType

type DeviceMultipleOwnersResolvedDetailsDetailType string

DeviceMultipleOwnersResolvedDetailsDetailType The type of detail for discriminator purposes.

const (
	DeviceMultipleOwnersResolved DeviceMultipleOwnersResolvedDetailsDetailType = "DeviceMultipleOwnersResolved"
)

Defines values for DeviceMultipleOwnersResolvedDetailsDetailType.

type DeviceMultipleOwnersResolvedDetailsResolutionType

type DeviceMultipleOwnersResolvedDetailsResolutionType string

DeviceMultipleOwnersResolvedDetailsResolutionType How the conflict was resolved.

Defines values for DeviceMultipleOwnersResolvedDetailsResolutionType.

type DeviceOsSpec

type DeviceOsSpec struct {
	// Image The target OS image name or URL.
	Image string `json:"image"`
}

DeviceOsSpec DeviceOsSpec describes the target OS for the device.

type DeviceOsStatus

type DeviceOsStatus struct {
	// Image Version of the OS image.
	Image string `json:"image"`

	// ImageDigest The digest of the OS image (e.g. sha256:a0...).
	ImageDigest string `json:"imageDigest"`
}

DeviceOsStatus Current status of the device OS.

type DeviceOwnershipChangedDetails

type DeviceOwnershipChangedDetails struct {
	// DetailType The type of detail for discriminator purposes.
	DetailType DeviceOwnershipChangedDetailsDetailType `json:"detailType"`

	// NewOwner The new owner fleet (null if removed).
	NewOwner *string `json:"newOwner"`

	// PreviousOwner The previous owner fleet (null if none).
	PreviousOwner *string `json:"previousOwner"`
}

DeviceOwnershipChangedDetails defines model for DeviceOwnershipChangedDetails.

type DeviceOwnershipChangedDetailsDetailType

type DeviceOwnershipChangedDetailsDetailType string

DeviceOwnershipChangedDetailsDetailType The type of detail for discriminator purposes.

const (
	DeviceOwnershipChanged DeviceOwnershipChangedDetailsDetailType = "DeviceOwnershipChanged"
)

Defines values for DeviceOwnershipChangedDetailsDetailType.

type DeviceResourceStatus

type DeviceResourceStatus struct {
	// Cpu The types of resource statuses.
	Cpu DeviceResourceStatusType `json:"cpu"`

	// Disk The types of resource statuses.
	Disk DeviceResourceStatusType `json:"disk"`

	// Memory The types of resource statuses.
	Memory DeviceResourceStatusType `json:"memory"`
}

DeviceResourceStatus Current status of the resources of the device.

type DeviceResourceStatusType

type DeviceResourceStatusType string

DeviceResourceStatusType The types of resource statuses.

const (
	DeviceResourceStatusCritical DeviceResourceStatusType = "Critical"
	DeviceResourceStatusError    DeviceResourceStatusType = "Error"
	DeviceResourceStatusHealthy  DeviceResourceStatusType = "Healthy"
	DeviceResourceStatusUnknown  DeviceResourceStatusType = "Unknown"
	DeviceResourceStatusWarning  DeviceResourceStatusType = "Warning"
)

Defines values for DeviceResourceStatusType.

type DeviceResumeRequest

type DeviceResumeRequest struct {
	// FieldSelector A selector to restrict the list of devices to resume by their fields. Uses the same format as Kubernetes field selectors (e.g., "metadata.name=device1,status.phase!=Pending").
	FieldSelector *string `json:"fieldSelector,omitempty"`

	// LabelSelector A selector to restrict the list of devices to resume by their labels. Uses the same format as Kubernetes label selectors (e.g., "key1=value1,key2!=value2").
	LabelSelector *string `json:"labelSelector,omitempty"`
	// contains filtered or unexported fields
}

DeviceResumeRequest Request to resume devices based on label selector and/or field selector. At least one selector must be provided.

func (DeviceResumeRequest) AsDeviceResumeRequest0

func (t DeviceResumeRequest) AsDeviceResumeRequest0() (DeviceResumeRequest0, error)

AsDeviceResumeRequest0 returns the union data inside the DeviceResumeRequest as a DeviceResumeRequest0

func (DeviceResumeRequest) AsDeviceResumeRequest1

func (t DeviceResumeRequest) AsDeviceResumeRequest1() (DeviceResumeRequest1, error)

AsDeviceResumeRequest1 returns the union data inside the DeviceResumeRequest as a DeviceResumeRequest1

func (*DeviceResumeRequest) FromDeviceResumeRequest0

func (t *DeviceResumeRequest) FromDeviceResumeRequest0(v DeviceResumeRequest0) error

FromDeviceResumeRequest0 overwrites any union data inside the DeviceResumeRequest as the provided DeviceResumeRequest0

func (*DeviceResumeRequest) FromDeviceResumeRequest1

func (t *DeviceResumeRequest) FromDeviceResumeRequest1(v DeviceResumeRequest1) error

FromDeviceResumeRequest1 overwrites any union data inside the DeviceResumeRequest as the provided DeviceResumeRequest1

func (DeviceResumeRequest) MarshalJSON

func (t DeviceResumeRequest) MarshalJSON() ([]byte, error)

func (*DeviceResumeRequest) MergeDeviceResumeRequest0

func (t *DeviceResumeRequest) MergeDeviceResumeRequest0(v DeviceResumeRequest0) error

MergeDeviceResumeRequest0 performs a merge with any union data inside the DeviceResumeRequest, using the provided DeviceResumeRequest0

func (*DeviceResumeRequest) MergeDeviceResumeRequest1

func (t *DeviceResumeRequest) MergeDeviceResumeRequest1(v DeviceResumeRequest1) error

MergeDeviceResumeRequest1 performs a merge with any union data inside the DeviceResumeRequest, using the provided DeviceResumeRequest1

func (*DeviceResumeRequest) UnmarshalJSON

func (t *DeviceResumeRequest) UnmarshalJSON(b []byte) error

type DeviceResumeRequest0

type DeviceResumeRequest0 = interface{}

DeviceResumeRequest0 defines model for .

type DeviceResumeRequest1

type DeviceResumeRequest1 = interface{}

DeviceResumeRequest1 defines model for .

type DeviceResumeResponse

type DeviceResumeResponse struct {
	// ResumedDevices Number of devices that were successfully resumed.
	ResumedDevices int `json:"resumedDevices"`
}

DeviceResumeResponse Response from resuming devices.

type DeviceSpec

type DeviceSpec struct {
	// Applications List of application providers.
	Applications *[]ApplicationProviderSpec `json:"applications,omitempty"`

	// Config List of config providers.
	Config *[]ConfigProviderSpec `json:"config,omitempty"`

	// Consoles The list of active console sessions.
	Consoles *[]DeviceConsole `json:"consoles,omitempty"`

	// Decommissioning Metadata about a device decommissioning request.
	Decommissioning *DeviceDecommission `json:"decommissioning,omitempty"`

	// Os DeviceOsSpec describes the target OS for the device.
	Os *DeviceOsSpec `json:"os,omitempty"`

	// Resources Array of resource monitor configurations.
	Resources *[]ResourceMonitor `json:"resources,omitempty"`

	// Systemd The systemd services to monitor.
	Systemd *struct {
		// MatchPatterns A list of match patterns.
		MatchPatterns *[]string `json:"matchPatterns,omitempty"`
	} `json:"systemd,omitempty"`

	// UpdatePolicy Specifies the policy for managing device updates, including when updates should be downloaded and applied.
	UpdatePolicy *DeviceUpdatePolicySpec `json:"updatePolicy,omitempty"`
}

DeviceSpec DeviceSpec describes a device.

func (DeviceSpec) GetConsoles

func (rd DeviceSpec) GetConsoles() []DeviceConsole

GetConsoles returns the list of DeviceConsole objects, or an empty list if the field is nil.

func (DeviceSpec) Validate

func (r DeviceSpec) Validate(fleetTemplate bool) []error

type DeviceStatus

type DeviceStatus struct {
	// Applications List of device application statuses.
	Applications []DeviceApplicationStatus `json:"applications"`

	// ApplicationsSummary A summary of the health of applications on the device.
	ApplicationsSummary DeviceApplicationsSummaryStatus `json:"applicationsSummary"`

	// Conditions Conditions represent the observations of a the current state of a device.
	Conditions []Condition `json:"conditions"`

	// Config Current status of the device config.
	Config DeviceConfigStatus `json:"config"`

	// Integrity Summary status of the integrity of the device.
	Integrity DeviceIntegrityStatus `json:"integrity"`

	// LastSeen The last time the device was seen by the service (NOTE: this property is not returned by the API).
	LastSeen *time.Time `json:"-"`

	// Lifecycle Current status of the device lifecycle.
	Lifecycle DeviceLifecycleStatus `json:"lifecycle"`

	// Os Current status of the device OS.
	Os DeviceOsStatus `json:"os"`

	// Resources Current status of the resources of the device.
	Resources DeviceResourceStatus `json:"resources"`

	// Summary A summary of the health of the device hardware and operating system resources.
	Summary DeviceSummaryStatus `json:"summary"`

	// SystemInfo System information collected from the device.
	SystemInfo DeviceSystemInfo `json:"systemInfo"`

	// Systemd List of systemd unit statuses.
	Systemd *[]SystemdUnitStatus `json:"systemd,omitempty"`

	// Updated Current status of the device update.
	Updated DeviceUpdatedStatus `json:"updated"`
}

DeviceStatus DeviceStatus represents information about the status of a device. Status may trail the actual state of a device.

func NewDeviceStatus

func NewDeviceStatus() DeviceStatus

type DeviceSummaryStatus

type DeviceSummaryStatus struct {
	// Info Human readable information detailing the last device status transition.
	Info *string `json:"info,omitempty"`

	// Status Status of the device.
	Status DeviceSummaryStatusType `json:"status"`
}

DeviceSummaryStatus A summary of the health of the device hardware and operating system resources.

type DeviceSummaryStatusType

type DeviceSummaryStatusType string

DeviceSummaryStatusType Status of the device.

const (
	DeviceSummaryStatusAwaitingReconnect DeviceSummaryStatusType = "AwaitingReconnect"
	DeviceSummaryStatusConflictPaused    DeviceSummaryStatusType = "ConflictPaused"
	DeviceSummaryStatusDegraded          DeviceSummaryStatusType = "Degraded"
	DeviceSummaryStatusError             DeviceSummaryStatusType = "Error"
	DeviceSummaryStatusOnline            DeviceSummaryStatusType = "Online"
	DeviceSummaryStatusPoweredOff        DeviceSummaryStatusType = "PoweredOff"
	DeviceSummaryStatusRebooting         DeviceSummaryStatusType = "Rebooting"
	DeviceSummaryStatusUnknown           DeviceSummaryStatusType = "Unknown"
)

Defines values for DeviceSummaryStatusType.

type DeviceSystemInfo

type DeviceSystemInfo struct {
	// AgentVersion The Agent version.
	AgentVersion string `json:"agentVersion"`

	// Architecture The Architecture reported by the device.
	Architecture string `json:"architecture"`

	// BootID Boot ID reported by the device.
	BootID string `json:"bootID"`

	// CustomInfo User-defined information about the device.
	CustomInfo *CustomDeviceInfo `json:"customInfo,omitempty"`

	// OperatingSystem The Operating System reported by the device.
	OperatingSystem      string            `json:"operatingSystem"`
	AdditionalProperties map[string]string `json:"-"`
}

DeviceSystemInfo System information collected from the device.

func (DeviceSystemInfo) Get

func (a DeviceSystemInfo) Get(fieldName string) (value string, found bool)

Getter for additional properties for DeviceSystemInfo. Returns the specified element and whether it was found

func (*DeviceSystemInfo) IsEmpty

func (d *DeviceSystemInfo) IsEmpty() bool

func (DeviceSystemInfo) MarshalJSON

func (a DeviceSystemInfo) MarshalJSON() ([]byte, error)

Override default JSON handling for DeviceSystemInfo to handle AdditionalProperties

func (*DeviceSystemInfo) Set

func (a *DeviceSystemInfo) Set(fieldName string, value string)

Setter for additional properties for DeviceSystemInfo

func (*DeviceSystemInfo) UnmarshalJSON

func (a *DeviceSystemInfo) UnmarshalJSON(b []byte) error

Override default JSON handling for DeviceSystemInfo to handle AdditionalProperties

type DeviceUpdatePolicySpec

type DeviceUpdatePolicySpec struct {
	// DownloadSchedule Defines the schedule for automatic downloading and updates, including timing and optional timeout.
	DownloadSchedule *UpdateSchedule `json:"downloadSchedule,omitempty"`

	// UpdateSchedule Defines the schedule for automatic downloading and updates, including timing and optional timeout.
	UpdateSchedule *UpdateSchedule `json:"updateSchedule,omitempty"`
}

DeviceUpdatePolicySpec Specifies the policy for managing device updates, including when updates should be downloaded and applied.

func (DeviceUpdatePolicySpec) Validate

func (u DeviceUpdatePolicySpec) Validate() []error

type DeviceUpdatedStatus

type DeviceUpdatedStatus struct {
	// Info Human readable information about the last device update transition.
	Info *string `json:"info,omitempty"`

	// Status Status type of the device update.
	Status DeviceUpdatedStatusType `json:"status"`
}

DeviceUpdatedStatus Current status of the device update.

type DeviceUpdatedStatusType

type DeviceUpdatedStatusType string

DeviceUpdatedStatusType Status type of the device update.

const (
	DeviceUpdatedStatusOutOfDate DeviceUpdatedStatusType = "OutOfDate"
	DeviceUpdatedStatusUnknown   DeviceUpdatedStatusType = "Unknown"
	DeviceUpdatedStatusUpToDate  DeviceUpdatedStatusType = "UpToDate"
	DeviceUpdatedStatusUpdating  DeviceUpdatedStatusType = "Updating"
)

Defines values for DeviceUpdatedStatusType.

type DevicesSummary

type DevicesSummary struct {
	// ApplicationStatus A breakdown of the devices in the fleet by "application" status.
	ApplicationStatus map[string]int64 `json:"applicationStatus"`

	// SummaryStatus A breakdown of the devices in the fleet by "summary" status.
	SummaryStatus map[string]int64 `json:"summaryStatus"`

	// Total The total number of devices in the fleet.
	Total int64 `json:"total"`

	// UpdateStatus A breakdown of the devices in the fleet by "updated" status.
	UpdateStatus map[string]int64 `json:"updateStatus"`
}

DevicesSummary A summary of the devices in the fleet returned when fetching a single Fleet.

type DiskResourceMonitorSpec

type DiskResourceMonitorSpec struct {
	// AlertRules Array of alert rules. Only one alert per severity is allowed.
	AlertRules []ResourceAlertRule `json:"alertRules"`

	// MonitorType The type of resource to monitor.
	MonitorType string `json:"monitorType"`

	// Path The directory path to monitor for disk usage.
	Path string `json:"path"`

	// SamplingInterval Duration between monitor samples. Format: positive integer followed by 's' for seconds, 'm' for minutes, 'h' for hours.
	SamplingInterval string `json:"samplingInterval"`
}

DiskResourceMonitorSpec defines model for DiskResourceMonitorSpec.

type DisruptionBudget

type DisruptionBudget struct {
	// GroupBy List of label keys to perform grouping for the disruption budget.
	GroupBy *[]string `json:"groupBy,omitempty"`

	// MaxUnavailable The minimum number of required available devices during rollout.
	MaxUnavailable *int `json:"maxUnavailable,omitempty"`

	// MinAvailable The maximum number of unavailable devices allowed during rollout.
	MinAvailable *int `json:"minAvailable,omitempty"`
}

DisruptionBudget DisruptionBudget defines the level of allowed disruption when rollout is in progress.

func (*DisruptionBudget) Validate

func (d *DisruptionBudget) Validate() []error

type Duration

type Duration = string

Duration The maximum duration allowed for the action to complete. The duration should be specified as a positive integer followed by a time unit. Supported time units are: `s` for seconds, `m` for minutes, `h` for hours.

type EncodingType

type EncodingType string

EncodingType Specifies the encoding type used for data representation.

const (
	EncodingBase64 EncodingType = "base64"
	EncodingPlain  EncodingType = "plain"
)

Defines values for EncodingType.

type EnrollmentConfig

type EnrollmentConfig struct {
	// EnrollmentService EnrollmentService contains information about how to communicate with a Flight Control enrollment service.
	EnrollmentService EnrollmentService `json:"enrollment-service"`
}

EnrollmentConfig defines model for EnrollmentConfig.

type EnrollmentRequest

type EnrollmentRequest struct {
	// ApiVersion APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources.
	ApiVersion string `json:"apiVersion"`

	// Kind Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds.
	Kind string `json:"kind"`

	// Metadata ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create.
	Metadata ObjectMeta `json:"metadata"`

	// Spec EnrollmentRequestSpec is a description of a EnrollmentRequest's target state.
	Spec EnrollmentRequestSpec `json:"spec"`

	// Status EnrollmentRequestStatus represents information about the status of a EnrollmentRequest.
	Status *EnrollmentRequestStatus `json:"status,omitempty"`
}

EnrollmentRequest EnrollmentRequest represents a request for approval to enroll a device.

func (EnrollmentRequest) Validate

func (r EnrollmentRequest) Validate() []error

func (*EnrollmentRequest) ValidateUpdate

func (er *EnrollmentRequest) ValidateUpdate(newObj *EnrollmentRequest) []error

ValidateUpdate ensures immutable fields are unchanged for EnrollmentRequest.

type EnrollmentRequestApproval

type EnrollmentRequestApproval struct {
	// Approved Indicates whether the request has been approved.
	Approved bool `json:"approved"`

	// Labels A set of labels to apply to the device.
	Labels *map[string]string `json:"labels,omitempty"`
}

EnrollmentRequestApproval EnrollmentRequestApproval contains information about the approval of a device enrollment request.

func (EnrollmentRequestApproval) Validate

func (r EnrollmentRequestApproval) Validate() []error

type EnrollmentRequestApprovalStatus

type EnrollmentRequestApprovalStatus struct {
	// Approved Indicates whether the request has been approved.
	Approved bool `json:"approved"`

	// ApprovedAt The time at which the request was approved.
	ApprovedAt time.Time `json:"approvedAt"`

	// ApprovedBy The name of the approver.
	ApprovedBy string `json:"approvedBy"`

	// Labels A set of labels to apply to the device.
	Labels *map[string]string `json:"labels,omitempty"`
}

EnrollmentRequestApprovalStatus defines model for EnrollmentRequestApprovalStatus.

type EnrollmentRequestList

type EnrollmentRequestList struct {
	// ApiVersion APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources.
	ApiVersion string `json:"apiVersion"`

	// Items List of EnrollmentRequest.
	Items []EnrollmentRequest `json:"items"`

	// Kind Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds.
	Kind string `json:"kind"`

	// Metadata ListMeta describes metadata that synthetic resources must have, including lists and various status objects. A resource may have only one of {ObjectMeta, ListMeta}.
	Metadata ListMeta `json:"metadata"`
}

EnrollmentRequestList EnrollmentRequestList is a list of EnrollmentRequest.

type EnrollmentRequestSpec

type EnrollmentRequestSpec struct {
	// Csr The PEM-encoded PKCS#10 certificate signing request.
	Csr string `json:"csr"`

	// DeviceStatus DeviceStatus represents information about the status of a device. Status may trail the actual state of a device.
	DeviceStatus *DeviceStatus `json:"deviceStatus,omitempty"`

	// KnownRenderedVersion The rendered version of the device from desired.json (optional).
	KnownRenderedVersion *string `json:"knownRenderedVersion,omitempty"`

	// Labels A set of labels that the service will apply to this device when its enrollment is approved.
	Labels *map[string]string `json:"labels,omitempty"`
}

EnrollmentRequestSpec EnrollmentRequestSpec is a description of a EnrollmentRequest's target state.

type EnrollmentRequestStatus

type EnrollmentRequestStatus struct {
	// Approval EnrollmentRequestApprovalStatus represents information about the status of a device enrollment request approval.
	Approval *EnrollmentRequestApprovalStatus `json:"approval,omitempty"`

	// Certificate The PEM-encoded signed certificate.
	Certificate *string `json:"certificate,omitempty"`

	// Conditions Current state of the EnrollmentRequest.
	Conditions []Condition `json:"conditions"`
}

EnrollmentRequestStatus EnrollmentRequestStatus represents information about the status of a EnrollmentRequest.

type EnrollmentService

type EnrollmentService struct {
	// Authentication EnrollmentServiceAuth contains the client authentication information for a Flight Control enrollment service.
	Authentication EnrollmentServiceAuth `json:"authentication"`

	// EnrollmentUiEndpoint The URL of the UI that the agent uses to print the QR code and link for enrolling the device.
	EnrollmentUiEndpoint string `json:"enrollment-ui-endpoint"`

	// Service EnrollmentServiceService contains information about connecting to a Flight Control enrollment service.
	Service EnrollmentServiceService `json:"service"`
}

EnrollmentService EnrollmentService contains information about how to communicate with a Flight Control enrollment service.

type EnrollmentServiceAuth

type EnrollmentServiceAuth struct {
	// ClientCertificateData ClientCertificateData contains PEM-encoded data from a client cert file for TLS.
	ClientCertificateData string `json:"client-certificate-data"`

	// ClientKeyData ClientKeyData contains PEM-encoded data from a client key file for TLS.
	ClientKeyData string `json:"client-key-data"`
}

EnrollmentServiceAuth EnrollmentServiceAuth contains the client authentication information for a Flight Control enrollment service.

type EnrollmentServiceService

type EnrollmentServiceService struct {
	// CertificateAuthorityData CertificateAuthorityData contains PEM-encoded certificate authority certificates.
	CertificateAuthorityData string `json:"certificate-authority-data"`

	// Server Server is the address of the Flight Control enrollment service (https://hostname:port).
	Server string `json:"server"`
}

EnrollmentServiceService EnrollmentServiceService contains information about connecting to a Flight Control enrollment service.

type Event

type Event struct {
	// Actor The name of the user or service that triggered the event. The value will be prefixed by either user: (for human users) or service: (for automated services).
	Actor string `json:"actor"`

	// ApiVersion APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources.
	ApiVersion string `json:"apiVersion"`

	// Details Event-specific details, structured based on event type.
	Details *EventDetails `json:"details,omitempty"`

	// InvolvedObject A reference to a resource.
	InvolvedObject ObjectReference `json:"involvedObject"`

	// Kind Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds.
	Kind string `json:"kind"`

	// Message A human-readable description of the status of this operation.
	Message string `json:"message"`

	// Metadata ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create.
	Metadata ObjectMeta `json:"metadata"`

	// Reason A short, machine-readable string that describes the reason for the event.
	Reason EventReason `json:"reason"`

	// Source The component that is responsible for the event.
	Source EventSource `json:"source"`

	// Type The type of the event. One of Normal, Warning.
	Type EventType `json:"type"`
}

Event Event represents a single event that occurred in the system.

func GetBaseEvent

func GetBaseEvent(ctx context.Context, resourceKind ResourceKind, resourceName string, reason EventReason, message string, details *EventDetails) *Event

GetBaseEvent creates a base event with common fields

type EventDetails

type EventDetails struct {
	// contains filtered or unexported fields
}

EventDetails Event-specific details, structured based on event type.

func (EventDetails) AsDeviceMultipleOwnersDetectedDetails

func (t EventDetails) AsDeviceMultipleOwnersDetectedDetails() (DeviceMultipleOwnersDetectedDetails, error)

AsDeviceMultipleOwnersDetectedDetails returns the union data inside the EventDetails as a DeviceMultipleOwnersDetectedDetails

func (EventDetails) AsDeviceMultipleOwnersResolvedDetails

func (t EventDetails) AsDeviceMultipleOwnersResolvedDetails() (DeviceMultipleOwnersResolvedDetails, error)

AsDeviceMultipleOwnersResolvedDetails returns the union data inside the EventDetails as a DeviceMultipleOwnersResolvedDetails

func (EventDetails) AsDeviceOwnershipChangedDetails

func (t EventDetails) AsDeviceOwnershipChangedDetails() (DeviceOwnershipChangedDetails, error)

AsDeviceOwnershipChangedDetails returns the union data inside the EventDetails as a DeviceOwnershipChangedDetails

func (EventDetails) AsFleetRolloutBatchCompletedDetails

func (t EventDetails) AsFleetRolloutBatchCompletedDetails() (FleetRolloutBatchCompletedDetails, error)

AsFleetRolloutBatchCompletedDetails returns the union data inside the EventDetails as a FleetRolloutBatchCompletedDetails

func (EventDetails) AsFleetRolloutBatchDispatchedDetails

func (t EventDetails) AsFleetRolloutBatchDispatchedDetails() (FleetRolloutBatchDispatchedDetails, error)

AsFleetRolloutBatchDispatchedDetails returns the union data inside the EventDetails as a FleetRolloutBatchDispatchedDetails

func (EventDetails) AsFleetRolloutCompletedDetails

func (t EventDetails) AsFleetRolloutCompletedDetails() (FleetRolloutCompletedDetails, error)

AsFleetRolloutCompletedDetails returns the union data inside the EventDetails as a FleetRolloutCompletedDetails

func (EventDetails) AsFleetRolloutDeviceSelectedDetails

func (t EventDetails) AsFleetRolloutDeviceSelectedDetails() (FleetRolloutDeviceSelectedDetails, error)

AsFleetRolloutDeviceSelectedDetails returns the union data inside the EventDetails as a FleetRolloutDeviceSelectedDetails

func (EventDetails) AsFleetRolloutFailedDetails

func (t EventDetails) AsFleetRolloutFailedDetails() (FleetRolloutFailedDetails, error)

AsFleetRolloutFailedDetails returns the union data inside the EventDetails as a FleetRolloutFailedDetails

func (EventDetails) AsFleetRolloutStartedDetails

func (t EventDetails) AsFleetRolloutStartedDetails() (FleetRolloutStartedDetails, error)

AsFleetRolloutStartedDetails returns the union data inside the EventDetails as a FleetRolloutStartedDetails

func (EventDetails) AsInternalTaskFailedDetails

func (t EventDetails) AsInternalTaskFailedDetails() (InternalTaskFailedDetails, error)

AsInternalTaskFailedDetails returns the union data inside the EventDetails as a InternalTaskFailedDetails

func (EventDetails) AsInternalTaskPermanentlyFailedDetails

func (t EventDetails) AsInternalTaskPermanentlyFailedDetails() (InternalTaskPermanentlyFailedDetails, error)

AsInternalTaskPermanentlyFailedDetails returns the union data inside the EventDetails as a InternalTaskPermanentlyFailedDetails

func (EventDetails) AsReferencedRepositoryUpdatedDetails

func (t EventDetails) AsReferencedRepositoryUpdatedDetails() (ReferencedRepositoryUpdatedDetails, error)

AsReferencedRepositoryUpdatedDetails returns the union data inside the EventDetails as a ReferencedRepositoryUpdatedDetails

func (EventDetails) AsResourceSyncCompletedDetails

func (t EventDetails) AsResourceSyncCompletedDetails() (ResourceSyncCompletedDetails, error)

AsResourceSyncCompletedDetails returns the union data inside the EventDetails as a ResourceSyncCompletedDetails

func (EventDetails) AsResourceUpdatedDetails

func (t EventDetails) AsResourceUpdatedDetails() (ResourceUpdatedDetails, error)

AsResourceUpdatedDetails returns the union data inside the EventDetails as a ResourceUpdatedDetails

func (EventDetails) Discriminator

func (t EventDetails) Discriminator() (string, error)

func (*EventDetails) FromDeviceMultipleOwnersDetectedDetails

func (t *EventDetails) FromDeviceMultipleOwnersDetectedDetails(v DeviceMultipleOwnersDetectedDetails) error

FromDeviceMultipleOwnersDetectedDetails overwrites any union data inside the EventDetails as the provided DeviceMultipleOwnersDetectedDetails

func (*EventDetails) FromDeviceMultipleOwnersResolvedDetails

func (t *EventDetails) FromDeviceMultipleOwnersResolvedDetails(v DeviceMultipleOwnersResolvedDetails) error

FromDeviceMultipleOwnersResolvedDetails overwrites any union data inside the EventDetails as the provided DeviceMultipleOwnersResolvedDetails

func (*EventDetails) FromDeviceOwnershipChangedDetails

func (t *EventDetails) FromDeviceOwnershipChangedDetails(v DeviceOwnershipChangedDetails) error

FromDeviceOwnershipChangedDetails overwrites any union data inside the EventDetails as the provided DeviceOwnershipChangedDetails

func (*EventDetails) FromFleetRolloutBatchCompletedDetails

func (t *EventDetails) FromFleetRolloutBatchCompletedDetails(v FleetRolloutBatchCompletedDetails) error

FromFleetRolloutBatchCompletedDetails overwrites any union data inside the EventDetails as the provided FleetRolloutBatchCompletedDetails

func (*EventDetails) FromFleetRolloutBatchDispatchedDetails

func (t *EventDetails) FromFleetRolloutBatchDispatchedDetails(v FleetRolloutBatchDispatchedDetails) error

FromFleetRolloutBatchDispatchedDetails overwrites any union data inside the EventDetails as the provided FleetRolloutBatchDispatchedDetails

func (*EventDetails) FromFleetRolloutCompletedDetails

func (t *EventDetails) FromFleetRolloutCompletedDetails(v FleetRolloutCompletedDetails) error

FromFleetRolloutCompletedDetails overwrites any union data inside the EventDetails as the provided FleetRolloutCompletedDetails

func (*EventDetails) FromFleetRolloutDeviceSelectedDetails

func (t *EventDetails) FromFleetRolloutDeviceSelectedDetails(v FleetRolloutDeviceSelectedDetails) error

FromFleetRolloutDeviceSelectedDetails overwrites any union data inside the EventDetails as the provided FleetRolloutDeviceSelectedDetails

func (*EventDetails) FromFleetRolloutFailedDetails

func (t *EventDetails) FromFleetRolloutFailedDetails(v FleetRolloutFailedDetails) error

FromFleetRolloutFailedDetails overwrites any union data inside the EventDetails as the provided FleetRolloutFailedDetails

func (*EventDetails) FromFleetRolloutStartedDetails

func (t *EventDetails) FromFleetRolloutStartedDetails(v FleetRolloutStartedDetails) error

FromFleetRolloutStartedDetails overwrites any union data inside the EventDetails as the provided FleetRolloutStartedDetails

func (*EventDetails) FromInternalTaskFailedDetails

func (t *EventDetails) FromInternalTaskFailedDetails(v InternalTaskFailedDetails) error

FromInternalTaskFailedDetails overwrites any union data inside the EventDetails as the provided InternalTaskFailedDetails

func (*EventDetails) FromInternalTaskPermanentlyFailedDetails

func (t *EventDetails) FromInternalTaskPermanentlyFailedDetails(v InternalTaskPermanentlyFailedDetails) error

FromInternalTaskPermanentlyFailedDetails overwrites any union data inside the EventDetails as the provided InternalTaskPermanentlyFailedDetails

func (*EventDetails) FromReferencedRepositoryUpdatedDetails

func (t *EventDetails) FromReferencedRepositoryUpdatedDetails(v ReferencedRepositoryUpdatedDetails) error

FromReferencedRepositoryUpdatedDetails overwrites any union data inside the EventDetails as the provided ReferencedRepositoryUpdatedDetails

func (*EventDetails) FromResourceSyncCompletedDetails

func (t *EventDetails) FromResourceSyncCompletedDetails(v ResourceSyncCompletedDetails) error

FromResourceSyncCompletedDetails overwrites any union data inside the EventDetails as the provided ResourceSyncCompletedDetails

func (*EventDetails) FromResourceUpdatedDetails

func (t *EventDetails) FromResourceUpdatedDetails(v ResourceUpdatedDetails) error

FromResourceUpdatedDetails overwrites any union data inside the EventDetails as the provided ResourceUpdatedDetails

func (EventDetails) MarshalJSON

func (t EventDetails) MarshalJSON() ([]byte, error)

func (*EventDetails) MergeDeviceMultipleOwnersDetectedDetails

func (t *EventDetails) MergeDeviceMultipleOwnersDetectedDetails(v DeviceMultipleOwnersDetectedDetails) error

MergeDeviceMultipleOwnersDetectedDetails performs a merge with any union data inside the EventDetails, using the provided DeviceMultipleOwnersDetectedDetails

func (*EventDetails) MergeDeviceMultipleOwnersResolvedDetails

func (t *EventDetails) MergeDeviceMultipleOwnersResolvedDetails(v DeviceMultipleOwnersResolvedDetails) error

MergeDeviceMultipleOwnersResolvedDetails performs a merge with any union data inside the EventDetails, using the provided DeviceMultipleOwnersResolvedDetails

func (*EventDetails) MergeDeviceOwnershipChangedDetails

func (t *EventDetails) MergeDeviceOwnershipChangedDetails(v DeviceOwnershipChangedDetails) error

MergeDeviceOwnershipChangedDetails performs a merge with any union data inside the EventDetails, using the provided DeviceOwnershipChangedDetails

func (*EventDetails) MergeFleetRolloutBatchCompletedDetails

func (t *EventDetails) MergeFleetRolloutBatchCompletedDetails(v FleetRolloutBatchCompletedDetails) error

MergeFleetRolloutBatchCompletedDetails performs a merge with any union data inside the EventDetails, using the provided FleetRolloutBatchCompletedDetails

func (*EventDetails) MergeFleetRolloutBatchDispatchedDetails

func (t *EventDetails) MergeFleetRolloutBatchDispatchedDetails(v FleetRolloutBatchDispatchedDetails) error

MergeFleetRolloutBatchDispatchedDetails performs a merge with any union data inside the EventDetails, using the provided FleetRolloutBatchDispatchedDetails

func (*EventDetails) MergeFleetRolloutCompletedDetails

func (t *EventDetails) MergeFleetRolloutCompletedDetails(v FleetRolloutCompletedDetails) error

MergeFleetRolloutCompletedDetails performs a merge with any union data inside the EventDetails, using the provided FleetRolloutCompletedDetails

func (*EventDetails) MergeFleetRolloutDeviceSelectedDetails

func (t *EventDetails) MergeFleetRolloutDeviceSelectedDetails(v FleetRolloutDeviceSelectedDetails) error

MergeFleetRolloutDeviceSelectedDetails performs a merge with any union data inside the EventDetails, using the provided FleetRolloutDeviceSelectedDetails

func (*EventDetails) MergeFleetRolloutFailedDetails

func (t *EventDetails) MergeFleetRolloutFailedDetails(v FleetRolloutFailedDetails) error

MergeFleetRolloutFailedDetails performs a merge with any union data inside the EventDetails, using the provided FleetRolloutFailedDetails

func (*EventDetails) MergeFleetRolloutStartedDetails

func (t *EventDetails) MergeFleetRolloutStartedDetails(v FleetRolloutStartedDetails) error

MergeFleetRolloutStartedDetails performs a merge with any union data inside the EventDetails, using the provided FleetRolloutStartedDetails

func (*EventDetails) MergeInternalTaskFailedDetails

func (t *EventDetails) MergeInternalTaskFailedDetails(v InternalTaskFailedDetails) error

MergeInternalTaskFailedDetails performs a merge with any union data inside the EventDetails, using the provided InternalTaskFailedDetails

func (*EventDetails) MergeInternalTaskPermanentlyFailedDetails

func (t *EventDetails) MergeInternalTaskPermanentlyFailedDetails(v InternalTaskPermanentlyFailedDetails) error

MergeInternalTaskPermanentlyFailedDetails performs a merge with any union data inside the EventDetails, using the provided InternalTaskPermanentlyFailedDetails

func (*EventDetails) MergeReferencedRepositoryUpdatedDetails

func (t *EventDetails) MergeReferencedRepositoryUpdatedDetails(v ReferencedRepositoryUpdatedDetails) error

MergeReferencedRepositoryUpdatedDetails performs a merge with any union data inside the EventDetails, using the provided ReferencedRepositoryUpdatedDetails

func (*EventDetails) MergeResourceSyncCompletedDetails

func (t *EventDetails) MergeResourceSyncCompletedDetails(v ResourceSyncCompletedDetails) error

MergeResourceSyncCompletedDetails performs a merge with any union data inside the EventDetails, using the provided ResourceSyncCompletedDetails

func (*EventDetails) MergeResourceUpdatedDetails

func (t *EventDetails) MergeResourceUpdatedDetails(v ResourceUpdatedDetails) error

MergeResourceUpdatedDetails performs a merge with any union data inside the EventDetails, using the provided ResourceUpdatedDetails

func (*EventDetails) UnmarshalJSON

func (t *EventDetails) UnmarshalJSON(b []byte) error

func (EventDetails) ValueByDiscriminator

func (t EventDetails) ValueByDiscriminator() (interface{}, error)

type EventList

type EventList struct {
	// ApiVersion APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources.
	ApiVersion string `json:"apiVersion"`

	// Items List of Events.
	Items []Event `json:"items"`

	// Kind Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds.
	Kind string `json:"kind"`

	// Metadata ListMeta describes metadata that synthetic resources must have, including lists and various status objects. A resource may have only one of {ObjectMeta, ListMeta}.
	Metadata ListMeta `json:"metadata"`
}

EventList EventList is a list of Events.

type EventReason

type EventReason string

EventReason A short, machine-readable string that describes the reason for the event.

const (
	EventReasonDeviceApplicationDegraded       EventReason = "DeviceApplicationDegraded"
	EventReasonDeviceApplicationError          EventReason = "DeviceApplicationError"
	EventReasonDeviceApplicationHealthy        EventReason = "DeviceApplicationHealthy"
	EventReasonDeviceCPUCritical               EventReason = "DeviceCPUCritical"
	EventReasonDeviceCPUNormal                 EventReason = "DeviceCPUNormal"
	EventReasonDeviceCPUWarning                EventReason = "DeviceCPUWarning"
	EventReasonDeviceConflictPaused            EventReason = "DeviceConflictPaused"
	EventReasonDeviceConflictResolved          EventReason = "DeviceConflictResolved"
	EventReasonDeviceConnected                 EventReason = "DeviceConnected"
	EventReasonDeviceContentOutOfDate          EventReason = "DeviceContentOutOfDate"
	EventReasonDeviceContentUpToDate           EventReason = "DeviceContentUpToDate"
	EventReasonDeviceContentUpdating           EventReason = "DeviceContentUpdating"
	EventReasonDeviceDecommissionFailed        EventReason = "DeviceDecommissionFailed"
	EventReasonDeviceDecommissioned            EventReason = "DeviceDecommissioned"
	EventReasonDeviceDisconnected              EventReason = "DeviceDisconnected"
	EventReasonDeviceDiskCritical              EventReason = "DeviceDiskCritical"
	EventReasonDeviceDiskNormal                EventReason = "DeviceDiskNormal"
	EventReasonDeviceDiskWarning               EventReason = "DeviceDiskWarning"
	EventReasonDeviceIsRebooting               EventReason = "DeviceIsRebooting"
	EventReasonDeviceMemoryCritical            EventReason = "DeviceMemoryCritical"
	EventReasonDeviceMemoryNormal              EventReason = "DeviceMemoryNormal"
	EventReasonDeviceMemoryWarning             EventReason = "DeviceMemoryWarning"
	EventReasonDeviceMultipleOwnersDetected    EventReason = "DeviceMultipleOwnersDetected"
	EventReasonDeviceMultipleOwnersResolved    EventReason = "DeviceMultipleOwnersResolved"
	EventReasonDeviceSpecInvalid               EventReason = "DeviceSpecInvalid"
	EventReasonDeviceSpecValid                 EventReason = "DeviceSpecValid"
	EventReasonDeviceUpdateFailed              EventReason = "DeviceUpdateFailed"
	EventReasonEnrollmentRequestApprovalFailed EventReason = "EnrollmentRequestApprovalFailed"
	EventReasonEnrollmentRequestApproved       EventReason = "EnrollmentRequestApproved"
	EventReasonFleetInvalid                    EventReason = "FleetInvalid"
	EventReasonFleetRolloutBatchCompleted      EventReason = "FleetRolloutBatchCompleted"
	EventReasonFleetRolloutBatchDispatched     EventReason = "FleetRolloutBatchDispatched"
	EventReasonFleetRolloutCompleted           EventReason = "FleetRolloutCompleted"
	EventReasonFleetRolloutCreated             EventReason = "FleetRolloutCreated"
	EventReasonFleetRolloutDeviceSelected      EventReason = "FleetRolloutDeviceSelected"
	EventReasonFleetRolloutFailed              EventReason = "FleetRolloutFailed"
	EventReasonFleetRolloutStarted             EventReason = "FleetRolloutStarted"
	EventReasonFleetValid                      EventReason = "FleetValid"
	EventReasonInternalTaskFailed              EventReason = "InternalTaskFailed"
	EventReasonInternalTaskPermanentlyFailed   EventReason = "InternalTaskPermanentlyFailed"
	EventReasonReferencedRepositoryUpdated     EventReason = "ReferencedRepositoryUpdated"
	EventReasonRepositoryAccessible            EventReason = "RepositoryAccessible"
	EventReasonRepositoryInaccessible          EventReason = "RepositoryInaccessible"
	EventReasonResourceCreated                 EventReason = "ResourceCreated"
	EventReasonResourceCreationFailed          EventReason = "ResourceCreationFailed"
	EventReasonResourceDeleted                 EventReason = "ResourceDeleted"
	EventReasonResourceDeletionFailed          EventReason = "ResourceDeletionFailed"
	EventReasonResourceSyncAccessible          EventReason = "ResourceSyncAccessible"
	EventReasonResourceSyncCommitDetected      EventReason = "ResourceSyncCommitDetected"
	EventReasonResourceSyncInaccessible        EventReason = "ResourceSyncInaccessible"
	EventReasonResourceSyncParsed              EventReason = "ResourceSyncParsed"
	EventReasonResourceSyncParsingFailed       EventReason = "ResourceSyncParsingFailed"
	EventReasonResourceSyncSyncFailed          EventReason = "ResourceSyncSyncFailed"
	EventReasonResourceSyncSynced              EventReason = "ResourceSyncSynced"
	EventReasonResourceUpdateFailed            EventReason = "ResourceUpdateFailed"
	EventReasonResourceUpdated                 EventReason = "ResourceUpdated"
	EventReasonSystemRestored                  EventReason = "SystemRestored"
)

Defines values for EventReason.

type EventSource

type EventSource struct {
	// Component The name of the component that is responsible for the event.
	Component string `json:"component"`
}

EventSource The component that is responsible for the event.

type EventType

type EventType string

EventType The type of the event. One of Normal, Warning.

const (
	Normal  EventType = "Normal"
	Warning EventType = "Warning"
)

Defines values for EventType.

func GetEventType

func GetEventType(reason EventReason) EventType

GetEventType determines the event type based on the event reason

type FileContent

type FileContent struct {
	// Content The plain text (UTF-8) or base64-encoded content of the file.
	Content *string `json:"content,omitempty"`

	// ContentEncoding Specifies the encoding type used for data representation.
	ContentEncoding *EncodingType `json:"contentEncoding,omitempty"`
}

FileContent The content of a file.

type FileMetadata

type FileMetadata struct {
	// Group The file's group, specified either as a name or numeric ID. Defaults to "root".
	Group *string `json:"group,omitempty"`

	// Mode The file's permission mode. You may specify the more familiar octal with a leading zero (e.g., 0644) or as a decimal without a leading zero (e.g., 420). Setuid/setgid/sticky bits are supported. If not specified, the permission mode for files defaults to 0644.
	Mode *int `json:"mode,omitempty"`

	// User The file's owner, specified either as a name or numeric ID. Defaults to "root".
	User *string `json:"user,omitempty"`
}

FileMetadata File metadata.

type FileOperation

type FileOperation string

FileOperation defines model for FileOperation.

const (
	FileOperationCreated FileOperation = "created"
	FileOperationRemoved FileOperation = "removed"
	FileOperationUpdated FileOperation = "updated"
)

Defines values for FileOperation.

type FileSpec

type FileSpec struct {
	// Content The plain text (UTF-8) or base64-encoded content of the file.
	Content string `json:"content"`

	// ContentEncoding Specifies the encoding type used for data representation.
	ContentEncoding *EncodingType `json:"contentEncoding,omitempty"`

	// Group The file's group, specified either as a name or numeric ID. Defaults to "root".
	Group *string `json:"group,omitempty"`

	// Mode The file's permission mode. You may specify the more familiar octal with a leading zero (e.g., 0644) or as a decimal without a leading zero (e.g., 420). Setuid/setgid/sticky bits are supported. If not specified, the permission mode for files defaults to 0644.
	Mode *int `json:"mode,omitempty"`

	// Path The absolute path to a file on the system. Note that any existing file will be overwritten.
	Path string `json:"path"`

	// User The file's owner, specified either as a name or numeric ID. Defaults to "root".
	User *string `json:"user,omitempty"`
}

FileSpec defines model for FileSpec.

type Fleet

type Fleet struct {
	// ApiVersion APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources.
	ApiVersion string `json:"apiVersion"`

	// Kind Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds.
	Kind string `json:"kind"`

	// Metadata ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create.
	Metadata ObjectMeta `json:"metadata"`

	// Spec FleetSpec is a description of a fleet's target state.
	Spec FleetSpec `json:"spec"`

	// Status FleetStatus represents information about the status of a fleet. Status may trail the actual state of a fleet, especially if devices of a fleet have not contacted the management service in a while.
	Status *FleetStatus `json:"status,omitempty"`
}

Fleet Fleet represents a set of devices.

func (*Fleet) GetAnnotation

func (f *Fleet) GetAnnotation(annotation string) (string, bool)

GetAnnotation returns the value of the given annotation from the fleet and whether it exists.

func (*Fleet) IsRolloutBatchCompleted

func (f *Fleet) IsRolloutBatchCompleted(oldFleet *Fleet) (bool, *RolloutBatchCompletionReport)

IsRolloutBatchCompleted returns true if the fleet rollout batch is completed, and the completion report.

func (*Fleet) IsRolloutNew

func (f *Fleet) IsRolloutNew(oldFleet *Fleet) bool

IsRolloutNew returns true if the fleet has a new rollout (deploying template version annotation exists on newFleet but not on oldFleet).

func (Fleet) Validate

func (r Fleet) Validate() []error

func (*Fleet) ValidateUpdate

func (f *Fleet) ValidateUpdate(newObj *Fleet) []error

ValidateUpdate ensures immutable fields are unchanged for Fleet.

type FleetList

type FleetList struct {
	// ApiVersion APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources.
	ApiVersion string `json:"apiVersion"`

	// Items List of Fleets.
	Items []Fleet `json:"items"`

	// Kind Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds.
	Kind string `json:"kind"`

	// Metadata ListMeta describes metadata that synthetic resources must have, including lists and various status objects. A resource may have only one of {ObjectMeta, ListMeta}.
	Metadata ListMeta `json:"metadata"`
}

FleetList FleetList is a list of Fleets.

type FleetRolloutBatchCompletedDetails

type FleetRolloutBatchCompletedDetails struct {
	// Batch The batch within the fleet rollout.
	Batch string `json:"batch"`

	// DetailType The type of detail for discriminator purposes.
	DetailType FleetRolloutBatchCompletedDetailsDetailType `json:"detailType"`

	// Failed The number of failed devices in the batch.
	Failed int64 `json:"failed"`

	// SuccessPercentage The success percentage of the batch.
	SuccessPercentage int64 `json:"successPercentage"`

	// Successful The number of successful devices in the batch.
	Successful int64 `json:"successful"`

	// TemplateVersion The name of the TemplateVersion that this batch is rolling out to.
	TemplateVersion string `json:"templateVersion"`

	// TimedOut The number of timed out devices in the batch.
	TimedOut int64 `json:"timedOut"`

	// Total The total number of devices in the batch.
	Total int64 `json:"total"`
}

FleetRolloutBatchCompletedDetails defines model for FleetRolloutBatchCompletedDetails.

type FleetRolloutBatchCompletedDetailsDetailType

type FleetRolloutBatchCompletedDetailsDetailType string

FleetRolloutBatchCompletedDetailsDetailType The type of detail for discriminator purposes.

const (
	FleetRolloutBatchCompleted FleetRolloutBatchCompletedDetailsDetailType = "FleetRolloutBatchCompleted"
)

Defines values for FleetRolloutBatchCompletedDetailsDetailType.

type FleetRolloutBatchDispatchedDetails

type FleetRolloutBatchDispatchedDetails struct {
	// Batch The batch within the fleet rollout.
	Batch string `json:"batch"`

	// DetailType The type of detail for discriminator purposes.
	DetailType FleetRolloutBatchDispatchedDetailsDetailType `json:"detailType"`

	// TemplateVersion The name of the TemplateVersion that this batch is rolling out to.
	TemplateVersion string `json:"templateVersion"`
}

FleetRolloutBatchDispatchedDetails defines model for FleetRolloutBatchDispatchedDetails.

type FleetRolloutBatchDispatchedDetailsDetailType

type FleetRolloutBatchDispatchedDetailsDetailType string

FleetRolloutBatchDispatchedDetailsDetailType The type of detail for discriminator purposes.

const (
	FleetRolloutBatchDispatched FleetRolloutBatchDispatchedDetailsDetailType = "FleetRolloutBatchDispatched"
)

Defines values for FleetRolloutBatchDispatchedDetailsDetailType.

type FleetRolloutCompletedDetails

type FleetRolloutCompletedDetails struct {
	// DetailType The type of detail for discriminator purposes.
	DetailType FleetRolloutCompletedDetailsDetailType `json:"detailType"`

	// TemplateVersion The name of the TemplateVersion that this fleet rollout is completed for.
	TemplateVersion string `json:"templateVersion"`
}

FleetRolloutCompletedDetails defines model for FleetRolloutCompletedDetails.

type FleetRolloutCompletedDetailsDetailType

type FleetRolloutCompletedDetailsDetailType string

FleetRolloutCompletedDetailsDetailType The type of detail for discriminator purposes.

const (
	FleetRolloutCompleted FleetRolloutCompletedDetailsDetailType = "FleetRolloutCompleted"
)

Defines values for FleetRolloutCompletedDetailsDetailType.

type FleetRolloutDeviceSelectedDetails

type FleetRolloutDeviceSelectedDetails struct {
	// DetailType The type of detail for discriminator purposes.
	DetailType FleetRolloutDeviceSelectedDetailsDetailType `json:"detailType"`

	// FleetName The name of the fleet that the device is being selected for.
	FleetName string `json:"fleetName"`

	// TemplateVersion The name of the TemplateVersion that the device is being selected to render.
	TemplateVersion string `json:"templateVersion"`
}

FleetRolloutDeviceSelectedDetails defines model for FleetRolloutDeviceSelectedDetails.

type FleetRolloutDeviceSelectedDetailsDetailType

type FleetRolloutDeviceSelectedDetailsDetailType string

FleetRolloutDeviceSelectedDetailsDetailType The type of detail for discriminator purposes.

const (
	FleetRolloutDeviceSelected FleetRolloutDeviceSelectedDetailsDetailType = "FleetRolloutDeviceSelected"
)

Defines values for FleetRolloutDeviceSelectedDetailsDetailType.

type FleetRolloutFailedDetails

type FleetRolloutFailedDetails struct {
	// DetailType The type of detail for discriminator purposes.
	DetailType FleetRolloutFailedDetailsDetailType `json:"detailType"`

	// TemplateVersion The name of the TemplateVersion that this fleet rollout failed for.
	TemplateVersion string `json:"templateVersion"`
}

FleetRolloutFailedDetails defines model for FleetRolloutFailedDetails.

type FleetRolloutFailedDetailsDetailType

type FleetRolloutFailedDetailsDetailType string

FleetRolloutFailedDetailsDetailType The type of detail for discriminator purposes.

const (
	FleetRolloutFailed FleetRolloutFailedDetailsDetailType = "FleetRolloutFailed"
)

Defines values for FleetRolloutFailedDetailsDetailType.

type FleetRolloutStartedDetails

type FleetRolloutStartedDetails struct {
	// DetailType The type of detail for discriminator purposes.
	DetailType FleetRolloutStartedDetailsDetailType `json:"detailType"`

	// RolloutStrategy Rollout strategy type.
	RolloutStrategy FleetRolloutStartedDetailsRolloutStrategy `json:"rolloutStrategy"`

	// TemplateVersion The name of the TemplateVersion that is rolling out.
	TemplateVersion string `json:"templateVersion"`
}

FleetRolloutStartedDetails defines model for FleetRolloutStartedDetails.

type FleetRolloutStartedDetailsDetailType

type FleetRolloutStartedDetailsDetailType string

FleetRolloutStartedDetailsDetailType The type of detail for discriminator purposes.

const (
	FleetRolloutStarted FleetRolloutStartedDetailsDetailType = "FleetRolloutStarted"
)

Defines values for FleetRolloutStartedDetailsDetailType.

type FleetRolloutStartedDetailsRolloutStrategy

type FleetRolloutStartedDetailsRolloutStrategy string

FleetRolloutStartedDetailsRolloutStrategy Rollout strategy type.

Defines values for FleetRolloutStartedDetailsRolloutStrategy.

type FleetRolloutStatus

type FleetRolloutStatus struct {
	// CurrentBatch The batch number currently being rolled out.
	CurrentBatch *int `json:"currentBatch,omitempty"`
}

FleetRolloutStatus FleetRolloutStatus represents information about the status of a fleet rollout.

type FleetSpec

type FleetSpec struct {
	// RolloutPolicy RolloutPolicy is the rollout policy of the fleet.
	RolloutPolicy *RolloutPolicy `json:"rolloutPolicy,omitempty"`

	// Selector A label selector is a label query over a set of resources. The result of matchLabels and matchExpressions are ANDed. Empty/null label selectors match nothing.
	Selector *LabelSelector `json:"selector,omitempty"`

	// Template The template for the devices in the fleet.
	Template struct {
		// Metadata ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create.
		Metadata *ObjectMeta `json:"metadata,omitempty"`

		// Spec DeviceSpec describes a device.
		Spec DeviceSpec `json:"spec"`
	} `json:"template"`
}

FleetSpec FleetSpec is a description of a fleet's target state.

type FleetStatus

type FleetStatus struct {
	// Conditions Current state of the fleet.
	Conditions []Condition `json:"conditions"`

	// DevicesSummary A summary of the devices in the fleet returned when fetching a single Fleet.
	DevicesSummary *DevicesSummary `json:"devicesSummary,omitempty"`

	// Rollout FleetRolloutStatus represents information about the status of a fleet rollout.
	Rollout *FleetRolloutStatus `json:"rollout,omitempty"`
}

FleetStatus FleetStatus represents information about the status of a fleet. Status may trail the actual state of a fleet, especially if devices of a fleet have not contacted the management service in a while.

type GenericRepoSpec

type GenericRepoSpec struct {
	// Type RepoSpecType is the type of the repository.
	Type RepoSpecType `json:"type"`

	// Url The (possibly remote) repository URL.
	Url string `json:"url"`
}

GenericRepoSpec defines model for GenericRepoSpec.

type GetEnrollmentConfigParams

type GetEnrollmentConfigParams struct {
	// Csr The name of a CertificateSigningRequest resource to query for an issued certificate. If provided, the service will check if the CertificateSigningRequest contains an issued certificate and in this case include it the returned EnrollmentConfig. In all other case, the enrollment certificate field will be empty.
	Csr *string `form:"csr,omitempty" json:"csr,omitempty"`
}

GetEnrollmentConfigParams defines parameters for GetEnrollmentConfig.

type GetFleetParams

type GetFleetParams struct {
	// AddDevicesSummary Include a summary of the devices in the fleet.
	AddDevicesSummary *bool `form:"addDevicesSummary,omitempty" json:"addDevicesSummary,omitempty"`
}

GetFleetParams defines parameters for GetFleet.

type GetRenderedDeviceParams

type GetRenderedDeviceParams struct {
	// KnownRenderedVersion The last known renderedVersion.
	KnownRenderedVersion *string `form:"knownRenderedVersion,omitempty" json:"knownRenderedVersion,omitempty"`
}

GetRenderedDeviceParams defines parameters for GetRenderedDevice.

type GitConfigProviderSpec

type GitConfigProviderSpec struct {
	// GitRef The reference to a Git configuration server.
	GitRef struct {
		// Path The path to the config in the Repository.
		Path string `json:"path"`

		// Repository The name of the Repository resource.
		Repository string `json:"repository"`

		// TargetRevision The revision to use from the Repository.
		TargetRevision string `json:"targetRevision"`
	} `json:"gitRef"`

	// Name The name of the config provider.
	Name string `json:"name"`
}

GitConfigProviderSpec defines model for GitConfigProviderSpec.

func (GitConfigProviderSpec) Validate

func (c GitConfigProviderSpec) Validate(fleetTemplate bool) []error

type HookAction

type HookAction struct {
	// If Conditions that must be met for the action to be executed.
	If *[]HookCondition `json:"if,omitempty"`

	// Timeout The maximum duration allowed for the action to complete. The duration should be specified as a positive integer followed by a time unit. Supported time units are 's' for seconds, 'm' for minutes, and 'h' for hours.
	Timeout *string `json:"timeout,omitempty"`
	// contains filtered or unexported fields
}

HookAction defines model for HookAction.

func (HookAction) AsHookActionRun

func (t HookAction) AsHookActionRun() (HookActionRun, error)

AsHookActionRun returns the union data inside the HookAction as a HookActionRun

func (*HookAction) FromHookActionRun

func (t *HookAction) FromHookActionRun(v HookActionRun) error

FromHookActionRun overwrites any union data inside the HookAction as the provided HookActionRun

func (HookAction) MarshalJSON

func (t HookAction) MarshalJSON() ([]byte, error)

func (*HookAction) MergeHookActionRun

func (t *HookAction) MergeHookActionRun(v HookActionRun) error

MergeHookActionRun performs a merge with any union data inside the HookAction, using the provided HookActionRun

func (HookAction) Type

func (t HookAction) Type() (HookActionType, error)

Type returns the type of the action.

func (*HookAction) UnmarshalJSON

func (t *HookAction) UnmarshalJSON(b []byte) error

func (HookAction) Validate

func (a HookAction) Validate(path string) []error

type HookActionRun

type HookActionRun struct {
	// EnvVars Environment variable key-value pairs, injected during runtime.
	EnvVars *map[string]string `json:"envVars,omitempty"`

	// Run The command to be executed, including any arguments using standard shell syntax. This field supports multiple commands piped together, as if they were executed under a bash -c context.
	Run string `json:"run"`

	// WorkDir The working directory to be used when running the command.
	WorkDir *string `json:"workDir,omitempty"`
}

HookActionRun defines model for HookActionRun.

type HookActionType

type HookActionType string
const (
	HookActionTypeRun HookActionType = "run"
)

type HookCondition

type HookCondition struct {
	// contains filtered or unexported fields
}

HookCondition defines model for HookCondition.

func (HookCondition) AsHookConditionExpression

func (t HookCondition) AsHookConditionExpression() (HookConditionExpression, error)

AsHookConditionExpression returns the union data inside the HookCondition as a HookConditionExpression

func (HookCondition) AsHookConditionPathOp

func (t HookCondition) AsHookConditionPathOp() (HookConditionPathOp, error)

AsHookConditionPathOp returns the union data inside the HookCondition as a HookConditionPathOp

func (*HookCondition) FromHookConditionExpression

func (t *HookCondition) FromHookConditionExpression(v HookConditionExpression) error

FromHookConditionExpression overwrites any union data inside the HookCondition as the provided HookConditionExpression

func (*HookCondition) FromHookConditionPathOp

func (t *HookCondition) FromHookConditionPathOp(v HookConditionPathOp) error

FromHookConditionPathOp overwrites any union data inside the HookCondition as the provided HookConditionPathOp

func (HookCondition) MarshalJSON

func (t HookCondition) MarshalJSON() ([]byte, error)

func (*HookCondition) MergeHookConditionExpression

func (t *HookCondition) MergeHookConditionExpression(v HookConditionExpression) error

MergeHookConditionExpression performs a merge with any union data inside the HookCondition, using the provided HookConditionExpression

func (*HookCondition) MergeHookConditionPathOp

func (t *HookCondition) MergeHookConditionPathOp(v HookConditionPathOp) error

MergeHookConditionPathOp performs a merge with any union data inside the HookCondition, using the provided HookConditionPathOp

func (HookCondition) Type

Type returns the type of the condition.

func (*HookCondition) UnmarshalJSON

func (t *HookCondition) UnmarshalJSON(b []byte) error

func (HookCondition) Validate

func (c HookCondition) Validate(path string) []error

type HookConditionExpression

type HookConditionExpression = string

HookConditionExpression An expression that must evaluate to true as condition for the action to be performed.

type HookConditionPathOp

type HookConditionPathOp struct {
	// Op The operation(s) on files at or below the path that satisfy the path condition.
	Op []FileOperation `json:"op"`

	// Path The absolute path to a file or directory that must have changed as condition for the action to be performed.
	Path string `json:"path"`
}

HookConditionPathOp defines model for HookConditionPathOp.

type HookConditionType

type HookConditionType string
const (
	HookConditionTypePathOp     HookConditionType = "path"
	HookConditionTypeExpression HookConditionType = "expression"
)

type HttpConfig

type HttpConfig struct {
	// CaCrt Base64 encoded root CA.
	CaCrt *string `json:"ca.crt,omitempty"`

	// Password The password for auth with HTTP transport.
	Password *string `json:"password,omitempty"`

	// SkipServerVerification Skip remote server verification.
	SkipServerVerification *bool `json:"skipServerVerification,omitempty"`

	// TlsCrt Base64 encoded TLS cert data.
	TlsCrt *string `json:"tls.crt,omitempty"`

	// TlsKey Base64 encoded TLS cert key.
	TlsKey *string `json:"tls.key,omitempty"`

	// Token The token for auth with HTTP transport.
	Token *string `json:"token,omitempty"`

	// Username The username for auth with HTTP transport.
	Username *string `json:"username,omitempty"`
}

HttpConfig Configuration for HTTP transport.

type HttpConfigProviderSpec

type HttpConfigProviderSpec struct {
	// HttpRef The reference to an HTTP configuration server.
	HttpRef struct {
		// FilePath Path in the device's file system to which the content returned by the HTTP sever should be written.
		FilePath string `json:"filePath"`

		// Repository The name of the repository resource to use as the sync source.
		Repository string `json:"repository"`

		// Suffix Part of the URL that comes after the base URL. It can include query parameters such as: "/path/to/endpoint?query=param".
		Suffix *string `json:"suffix,omitempty"`
	} `json:"httpRef"`

	// Name The name of the config provider.
	Name string `json:"name"`
}

HttpConfigProviderSpec defines model for HttpConfigProviderSpec.

func (HttpConfigProviderSpec) Validate

func (h HttpConfigProviderSpec) Validate(fleetTemplate bool) []error

type HttpRepoSpec

type HttpRepoSpec struct {
	// HttpConfig Configuration for HTTP transport.
	HttpConfig HttpConfig `json:"httpConfig"`

	// Type RepoSpecType is the type of the repository.
	Type RepoSpecType `json:"type"`

	// Url The HTTP URL to call or clone from.
	Url string `json:"url"`

	// ValidationSuffix URL suffix used only for validating access to the repository. Users might use the URL field as a root URL to be used by config sources adding suffixes. This will help with the validation of the http endpoint.
	ValidationSuffix *string `json:"validationSuffix,omitempty"`
}

HttpRepoSpec defines model for HttpRepoSpec.

type ImageApplicationProviderSpec

type ImageApplicationProviderSpec struct {
	// Image Reference to the OCI image or artifact for the application package.
	Image string `json:"image"`

	// Ports Port mappings.
	Ports *[]ApplicationPort `json:"ports,omitempty"`

	// Resources Resource constraints for the application.
	Resources *ApplicationResources `json:"resources,omitempty"`

	// Volumes List of application volumes.
	Volumes *[]ApplicationVolume `json:"volumes,omitempty"`
}

ImageApplicationProviderSpec defines model for ImageApplicationProviderSpec.

type ImageMountVolumeProviderSpec

type ImageMountVolumeProviderSpec struct {
	// Image Describes the source of an OCI-compliant image or artifact.
	Image ImageVolumeSource `json:"image"`

	// Mount Mount configuration for a volume.
	Mount VolumeMount `json:"mount"`
}

ImageMountVolumeProviderSpec Volume from OCI image mounted at specified path.

type ImagePullPolicy

type ImagePullPolicy string

ImagePullPolicy Optional. Defaults to 'IfNotPresent'. When set to 'Always', the image is pulled every time. When set to 'Never', the image must already exist on the device.

const (
	PullAlways       ImagePullPolicy = "Always"
	PullIfNotPresent ImagePullPolicy = "IfNotPresent"
	PullNever        ImagePullPolicy = "Never"
)

Defines values for ImagePullPolicy.

type ImageVolumeProviderSpec

type ImageVolumeProviderSpec struct {
	// Image Describes the source of an OCI-compliant image or artifact.
	Image ImageVolumeSource `json:"image"`
}

ImageVolumeProviderSpec defines model for ImageVolumeProviderSpec.

type ImageVolumeSource

type ImageVolumeSource struct {
	// PullPolicy Optional. Defaults to 'IfNotPresent'. When set to 'Always', the image is pulled every time. When set to 'Never', the image must already exist on the device.
	PullPolicy *ImagePullPolicy `json:"pullPolicy,omitempty"`

	// Reference Reference to an OCI-compliant image or artifact in a registry. This may be a container image or another type of OCI artifact, as long as it conforms to the OCI image specification.
	Reference string `json:"reference"`
}

ImageVolumeSource Describes the source of an OCI-compliant image or artifact.

type InlineApplicationProviderSpec

type InlineApplicationProviderSpec struct {
	// Inline A list of application content.
	Inline []ApplicationContent `json:"inline"`

	// Volumes List of application volumes.
	Volumes *[]ApplicationVolume `json:"volumes,omitempty"`
}

InlineApplicationProviderSpec defines model for InlineApplicationProviderSpec.

func (InlineApplicationProviderSpec) Validate

func (a InlineApplicationProviderSpec) Validate(appType AppType, fleetTemplate bool) []error

type InlineConfigProviderSpec

type InlineConfigProviderSpec struct {
	// Inline A list of files to create on the device.
	Inline []FileSpec `json:"inline"`

	// Name The name of the config provider.
	Name string `json:"name"`
}

InlineConfigProviderSpec defines model for InlineConfigProviderSpec.

func (InlineConfigProviderSpec) Validate

func (c InlineConfigProviderSpec) Validate(fleetTemplate bool) []error

type InternalTaskFailedDetails

type InternalTaskFailedDetails struct {
	// DetailType The type of detail for discriminator purposes.
	DetailType InternalTaskFailedDetailsDetailType `json:"detailType"`

	// ErrorMessage The error message describing the failure.
	ErrorMessage string `json:"errorMessage"`

	// OriginalEvent Event represents a single event that occurred in the system.
	OriginalEvent Event `json:"originalEvent"`

	// RetryCount Number of times the task has been retried.
	RetryCount *int `json:"retryCount,omitempty"`
}

InternalTaskFailedDetails defines model for InternalTaskFailedDetails.

type InternalTaskFailedDetailsDetailType

type InternalTaskFailedDetailsDetailType string

InternalTaskFailedDetailsDetailType The type of detail for discriminator purposes.

const (
	InternalTaskFailed InternalTaskFailedDetailsDetailType = "InternalTaskFailed"
)

Defines values for InternalTaskFailedDetailsDetailType.

type InternalTaskPermanentlyFailedDetails

type InternalTaskPermanentlyFailedDetails struct {
	// DetailType The type of detail for discriminator purposes.
	DetailType InternalTaskPermanentlyFailedDetailsDetailType `json:"detailType"`

	// ErrorMessage The error message describing the permanent failure.
	ErrorMessage string `json:"errorMessage"`

	// OriginalEvent Event represents a single event that occurred in the system.
	OriginalEvent Event `json:"originalEvent"`

	// RetryCount Number of times the task was retried before being marked as permanently failed.
	RetryCount int `json:"retryCount"`
}

InternalTaskPermanentlyFailedDetails defines model for InternalTaskPermanentlyFailedDetails.

type InternalTaskPermanentlyFailedDetailsDetailType

type InternalTaskPermanentlyFailedDetailsDetailType string

InternalTaskPermanentlyFailedDetailsDetailType The type of detail for discriminator purposes.

const (
	InternalTaskPermanentlyFailed InternalTaskPermanentlyFailedDetailsDetailType = "InternalTaskPermanentlyFailed"
)

Defines values for InternalTaskPermanentlyFailedDetailsDetailType.

type K8sProviderSpec

type K8sProviderSpec struct {
	// ApiUrl The internal Kubernetes API URL.
	ApiUrl string `json:"apiUrl"`

	// DisplayName Human-readable display name for the provider.
	DisplayName *string `json:"displayName,omitempty"`

	// Enabled Whether this K8s provider is enabled.
	Enabled *bool `json:"enabled,omitempty"`

	// OrganizationAssignment AuthOrganizationAssignment defines how users from this auth provider are assigned to organizations.
	OrganizationAssignment AuthOrganizationAssignment `json:"organizationAssignment"`

	// ProviderType The type of authentication provider.
	ProviderType K8sProviderSpecProviderType `json:"providerType"`

	// RbacNs The RBAC namespace for permissions.
	RbacNs *string `json:"rbacNs,omitempty"`

	// RoleAssignment AuthRoleAssignment defines how roles are assigned to users from this auth provider.
	RoleAssignment AuthRoleAssignment `json:"roleAssignment"`
}

K8sProviderSpec K8sProviderSpec describes a Kubernetes/OpenShift provider configuration.

type K8sProviderSpecProviderType

type K8sProviderSpecProviderType string

K8sProviderSpecProviderType The type of authentication provider.

const (
	K8s K8sProviderSpecProviderType = "k8s"
)

Defines values for K8sProviderSpecProviderType.

type KubernetesSecretProviderSpec

type KubernetesSecretProviderSpec struct {
	// Name The name of the config provider.
	Name string `json:"name"`

	// SecretRef The reference to a Kubernetes secret.
	SecretRef struct {
		// MountPath Path in the device's file system at which the secret should be mounted.
		MountPath string `json:"mountPath"`

		// Name The name of the secret.
		Name string `json:"name"`

		// Namespace The namespace of the secret.
		Namespace string `json:"namespace"`
	} `json:"secretRef"`
}

KubernetesSecretProviderSpec defines model for KubernetesSecretProviderSpec.

func (KubernetesSecretProviderSpec) Validate

func (c KubernetesSecretProviderSpec) Validate(fleetTemplate bool) []error

type LabelList

type LabelList = []string

LabelList A list of distinct labels, where each item is formatted as "key=value".

type LabelSelector

type LabelSelector struct {
	// MatchExpressions A list of match expressions.
	MatchExpressions *MatchExpressions `json:"matchExpressions,omitempty"`

	// MatchLabels A map of {key,value} pairs.
	MatchLabels *map[string]string `json:"matchLabels,omitempty"`
}

LabelSelector A label selector is a label query over a set of resources. The result of matchLabels and matchExpressions are ANDed. Empty/null label selectors match nothing.

func (*LabelSelector) Validate

func (l *LabelSelector) Validate() []error

type ListAuthProvidersParams

type ListAuthProvidersParams struct {
	// Continue An optional parameter to query more results from the server. The value of the paramter must match the value of the 'continue' field in the previous list response.
	Continue *string `form:"continue,omitempty" json:"continue,omitempty"`

	// LabelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything.
	LabelSelector *string `form:"labelSelector,omitempty" json:"labelSelector,omitempty"`

	// FieldSelector A selector to restrict the list of returned objects by their fields, supporting operators like '=', '==', and '!=' (e.g., "key1=value1,key2!=value2").
	FieldSelector *string `form:"fieldSelector,omitempty" json:"fieldSelector,omitempty"`

	// Limit The maximum number of results returned in the list response. The server will set the 'continue' field in the list response if more results exist. The continue value may then be specified as parameter in a subsequent query.
	Limit *int32 `form:"limit,omitempty" json:"limit,omitempty"`
}

ListAuthProvidersParams defines parameters for ListAuthProviders.

type ListCertificateSigningRequestsParams

type ListCertificateSigningRequestsParams struct {
	// Continue An optional parameter to query more results from the server. The value of the paramter must match the value of the 'continue' field in the previous list response.
	Continue *string `form:"continue,omitempty" json:"continue,omitempty"`

	// LabelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything.
	LabelSelector *string `form:"labelSelector,omitempty" json:"labelSelector,omitempty"`

	// FieldSelector A selector to restrict the list of returned objects by their fields, supporting operators like '=', '==', and '!=' (e.g., "key1=value1,key2!=value2").
	FieldSelector *string `form:"fieldSelector,omitempty" json:"fieldSelector,omitempty"`

	// Limit The maximum number of results returned in the list response. The server will set the 'continue' field in the list response if more results exist. The continue value may then be specified as parameter in a subsequent query.
	Limit *int32 `form:"limit,omitempty" json:"limit,omitempty"`
}

ListCertificateSigningRequestsParams defines parameters for ListCertificateSigningRequests.

type ListDevicesParams

type ListDevicesParams struct {
	// Continue An optional parameter to query more results from the server. The value of the paramter must match the value of the 'continue' field in the previous list response.
	Continue *string `form:"continue,omitempty" json:"continue,omitempty"`

	// LabelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything.
	LabelSelector *string `form:"labelSelector,omitempty" json:"labelSelector,omitempty"`

	// FieldSelector A selector to restrict the list of returned objects by their fields, supporting operators like '=', '==', and '!=' (e.g., "key1=value1,key2!=value2").
	FieldSelector *string `form:"fieldSelector,omitempty" json:"fieldSelector,omitempty"`

	// Limit The maximum number of results returned in the list response. The server will set the 'continue' field in the list response if more results exist. The continue value may then be specified as parameter in a subsequent query.
	Limit *int32 `form:"limit,omitempty" json:"limit,omitempty"`

	// SummaryOnly A boolean flag to include only a summary of the devices. When set to true, the response will contain only the summary information. Only the 'owner' and 'labelSelector' parameters are supported when 'summaryOnly' is true.
	SummaryOnly *bool `form:"summaryOnly,omitempty" json:"summaryOnly,omitempty"`
}

ListDevicesParams defines parameters for ListDevices.

type ListEnrollmentRequestsParams

type ListEnrollmentRequestsParams struct {
	// Continue An optional parameter to query more results from the server. The value of the paramter must match the value of the 'continue' field in the previous list response.
	Continue *string `form:"continue,omitempty" json:"continue,omitempty"`

	// LabelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything.
	LabelSelector *string `form:"labelSelector,omitempty" json:"labelSelector,omitempty"`

	// FieldSelector A selector to restrict the list of returned objects by their fields, supporting operators like '=', '==', and '!=' (e.g., "key1=value1,key2!=value2").
	FieldSelector *string `form:"fieldSelector,omitempty" json:"fieldSelector,omitempty"`

	// Limit The maximum number of results returned in the list response. The server will set the 'continue' field in the list response if more results exist. The continue value may then be specified as parameter in a subsequent query.
	Limit *int32 `form:"limit,omitempty" json:"limit,omitempty"`
}

ListEnrollmentRequestsParams defines parameters for ListEnrollmentRequests.

type ListEventsParams

type ListEventsParams struct {
	// FieldSelector A selector to restrict the list of returned objects by their fields, supporting operators like '=', '==', and '!=' (e.g., "key1=value1,key2!=value2").
	FieldSelector *string `form:"fieldSelector,omitempty" json:"fieldSelector,omitempty"`

	// Order Sort order for the results by timestamp. Defaults to 'desc' (newest first).
	Order *ListEventsParamsOrder `form:"order,omitempty" json:"order,omitempty"`

	// Limit The maximum number of events to return in the response.
	Limit *int32 `form:"limit,omitempty" json:"limit,omitempty"`

	// Continue An optional parameter to query more results from the server. The value of the paramter must match the value of the 'continue' field in the previous list response.
	Continue *string `form:"continue,omitempty" json:"continue,omitempty"`
}

ListEventsParams defines parameters for ListEvents.

type ListEventsParamsOrder

type ListEventsParamsOrder string

ListEventsParamsOrder defines parameters for ListEvents.

const (
	Asc  ListEventsParamsOrder = "asc"
	Desc ListEventsParamsOrder = "desc"
)

Defines values for ListEventsParamsOrder.

type ListFleetsParams

type ListFleetsParams struct {
	// Continue An optional parameter to query more results from the server. The value of the paramter must match the value of the 'continue' field in the previous list response.
	Continue *string `form:"continue,omitempty" json:"continue,omitempty"`

	// LabelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything.
	LabelSelector *string `form:"labelSelector,omitempty" json:"labelSelector,omitempty"`

	// FieldSelector A selector to restrict the list of returned objects by their fields, supporting operators like '=', '==', and '!=' (e.g., "key1=value1,key2!=value2").
	FieldSelector *string `form:"fieldSelector,omitempty" json:"fieldSelector,omitempty"`

	// Limit The maximum number of results returned in the list response. The server will set the 'continue' field in the list response if more results exist. The continue value may then be specified as parameter in a subsequent query.
	Limit *int32 `form:"limit,omitempty" json:"limit,omitempty"`

	// AddDevicesSummary Include a summary of the devices in the fleet.
	AddDevicesSummary *bool `form:"addDevicesSummary,omitempty" json:"addDevicesSummary,omitempty"`
}

ListFleetsParams defines parameters for ListFleets.

type ListLabelsParams

type ListLabelsParams struct {
	// Kind The type of resource to retrieve labels from.
	Kind ListLabelsParamsKind `form:"kind" json:"kind"`

	// LabelSelector A filter to retrieve labels only from resources that match the given label selector.
	LabelSelector *string `form:"labelSelector,omitempty" json:"labelSelector,omitempty"`

	// FieldSelector A filter to retrieve labels only from resources that match the given field selector.
	FieldSelector *string `form:"fieldSelector,omitempty" json:"fieldSelector,omitempty"`

	// Limit The maximum number of distinct labels to return in the response.
	Limit *int32 `form:"limit,omitempty" json:"limit,omitempty"`
}

ListLabelsParams defines parameters for ListLabels.

type ListLabelsParamsKind

type ListLabelsParamsKind string

ListLabelsParamsKind defines parameters for ListLabels.

const (
	ListLabelsParamsKindDevice ListLabelsParamsKind = "Device"
)

Defines values for ListLabelsParamsKind.

type ListMeta

type ListMeta struct {
	// Continue May be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message.
	Continue *string `json:"continue,omitempty"`

	// RemainingItemCount The number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact.
	RemainingItemCount *int64 `json:"remainingItemCount,omitempty"`
}

ListMeta ListMeta describes metadata that synthetic resources must have, including lists and various status objects. A resource may have only one of {ObjectMeta, ListMeta}.

type ListOrganizationsParams

type ListOrganizationsParams struct {
	// FieldSelector A selector to restrict the list of returned objects by their fields, supporting operators like '=', '==', and '!=' (e.g., "key1=value1,key2!=value2").
	FieldSelector *string `form:"fieldSelector,omitempty" json:"fieldSelector,omitempty"`
}

ListOrganizationsParams defines parameters for ListOrganizations.

type ListRepositoriesParams

type ListRepositoriesParams struct {
	// Continue An optional parameter to query more results from the server. The value of the paramter must match the value of the 'continue' field in the previous list response.
	Continue *string `form:"continue,omitempty" json:"continue,omitempty"`

	// LabelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything.
	LabelSelector *string `form:"labelSelector,omitempty" json:"labelSelector,omitempty"`

	// FieldSelector A selector to restrict the list of returned objects by their fields, supporting operators like '=', '==', and '!=' (e.g., "key1=value1,key2!=value2").
	FieldSelector *string `form:"fieldSelector,omitempty" json:"fieldSelector,omitempty"`

	// Limit The maximum number of results returned in the list response. The server will set the 'continue' field in the list response if more results exist. The continue value may then be specified as parameter in a subsequent query.
	Limit *int32 `form:"limit,omitempty" json:"limit,omitempty"`
}

ListRepositoriesParams defines parameters for ListRepositories.

type ListResourceSyncsParams

type ListResourceSyncsParams struct {
	// Continue An optional parameter to query more results from the server. The value of the paramter must match the value of the 'continue' field in the previous list response.
	Continue *string `form:"continue,omitempty" json:"continue,omitempty"`

	// LabelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything.
	LabelSelector *string `form:"labelSelector,omitempty" json:"labelSelector,omitempty"`

	// FieldSelector A selector to restrict the list of returned objects by their fields, supporting operators like '=', '==', and '!=' (e.g., "key1=value1,key2!=value2").
	FieldSelector *string `form:"fieldSelector,omitempty" json:"fieldSelector,omitempty"`

	// Limit The maximum number of results returned in the list response. The server will set the 'continue' field in the list response if more results exist. The continue value may then be specified as parameter in a subsequent query.
	Limit *int32 `form:"limit,omitempty" json:"limit,omitempty"`
}

ListResourceSyncsParams defines parameters for ListResourceSyncs.

type ListTemplateVersionsParams

type ListTemplateVersionsParams struct {
	// Continue An optional parameter to query more results from the server. The value of the paramter must match the value of the 'continue' field in the previous list response.
	Continue *string `form:"continue,omitempty" json:"continue,omitempty"`

	// LabelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything.
	LabelSelector *string `form:"labelSelector,omitempty" json:"labelSelector,omitempty"`

	// FieldSelector A selector to restrict the list of returned objects by their fields, supporting operators like '=', '==', and '!=' (e.g., "key1=value1,key2!=value2").
	FieldSelector *string `form:"fieldSelector,omitempty" json:"fieldSelector,omitempty"`

	// Limit The maximum number of results returned in the list response. The server will set the 'continue' field in the list response if more results exist. The continue value may then be specified as parameter in a subsequent query.
	Limit *int32 `form:"limit,omitempty" json:"limit,omitempty"`
}

ListTemplateVersionsParams defines parameters for ListTemplateVersions.

type MatchExpression

type MatchExpression struct {
	// Key The label key that the selector applies to.
	Key string `json:"key"`

	// Operator The operation to apply when matching.
	Operator MatchExpressionOperator `json:"operator"`

	// Values The list of values to match.
	Values *[]string `json:"values,omitempty"`
}

MatchExpression defines model for MatchExpression.

func (MatchExpression) String

func (e MatchExpression) String() string

String converts a MatchExpression into its string representation. Example formats: - Exists: "key" - DoesNotExist: "!key" - In: "key in (val1, val2)" - NotIn: "key notin (val1, val2)"

type MatchExpressionOperator

type MatchExpressionOperator string

MatchExpressionOperator The operation to apply when matching.

const (
	DoesNotExist MatchExpressionOperator = "DoesNotExist"
	Exists       MatchExpressionOperator = "Exists"
	In           MatchExpressionOperator = "In"
	NotIn        MatchExpressionOperator = "NotIn"
)

Defines values for MatchExpressionOperator.

type MatchExpressions

type MatchExpressions = []MatchExpression

MatchExpressions A list of match expressions.

type MemoryResourceMonitorSpec

type MemoryResourceMonitorSpec struct {
	// AlertRules Array of alert rules. Only one alert per severity is allowed.
	AlertRules []ResourceAlertRule `json:"alertRules"`

	// MonitorType The type of resource to monitor.
	MonitorType string `json:"monitorType"`

	// SamplingInterval Duration between monitor samples. Format: positive integer followed by 's' for seconds, 'm' for minutes, 'h' for hours.
	SamplingInterval string `json:"samplingInterval"`
}

MemoryResourceMonitorSpec defines model for MemoryResourceMonitorSpec.

type MountVolumeProviderSpec

type MountVolumeProviderSpec struct {
	// Mount Mount configuration for a volume.
	Mount VolumeMount `json:"mount"`
}

MountVolumeProviderSpec Named volume mount configuration.

type OAuth2ProviderSpec

type OAuth2ProviderSpec struct {
	// AuthorizationUrl The OAuth2 authorization endpoint URL.
	AuthorizationUrl string `json:"authorizationUrl"`

	// ClientId The OAuth2 client ID.
	ClientId string `json:"clientId"`

	// ClientSecret The OAuth2 client secret.
	ClientSecret *string `json:"clientSecret,omitempty"`

	// DisplayName Human-readable display name for the provider.
	DisplayName *string `json:"displayName,omitempty"`

	// Enabled Whether this OAuth2 provider is enabled.
	Enabled *bool `json:"enabled,omitempty"`

	// Issuer The OAuth2 issuer identifier (used for issuer identification in tokens).
	Issuer *string `json:"issuer,omitempty"`

	// OrganizationAssignment AuthOrganizationAssignment defines how users from this auth provider are assigned to organizations.
	OrganizationAssignment AuthOrganizationAssignment `json:"organizationAssignment"`

	// ProviderType The type of authentication provider.
	ProviderType OAuth2ProviderSpecProviderType `json:"providerType"`

	// RoleAssignment AuthRoleAssignment defines how roles are assigned to users from this auth provider.
	RoleAssignment AuthRoleAssignment `json:"roleAssignment"`

	// Scopes List of OAuth2 scopes to request.
	Scopes *[]string `json:"scopes,omitempty"`

	// TokenUrl The OAuth2 token endpoint URL.
	TokenUrl string `json:"tokenUrl"`

	// UserinfoUrl The OAuth2 userinfo endpoint URL.
	UserinfoUrl string `json:"userinfoUrl"`

	// UsernameClaim JSON path to the username claim in the userinfo response as an array of path segments (e.g., ["preferred_username"], ["email"], ["sub"]).
	UsernameClaim *[]string `json:"usernameClaim,omitempty"`
}

OAuth2ProviderSpec OAuth2ProviderSpec describes an OAuth2 provider configuration.

func (OAuth2ProviderSpec) Validate

func (o OAuth2ProviderSpec) Validate(ctx context.Context) []error

type OAuth2ProviderSpecProviderType

type OAuth2ProviderSpecProviderType string

OAuth2ProviderSpecProviderType The type of authentication provider.

const (
	Oauth2 OAuth2ProviderSpecProviderType = "oauth2"
)

Defines values for OAuth2ProviderSpecProviderType.

type OIDCProviderSpec

type OIDCProviderSpec struct {
	// ClientId The OIDC client ID.
	ClientId string `json:"clientId"`

	// ClientSecret The OIDC client secret.
	ClientSecret *string `json:"clientSecret,omitempty"`

	// DisplayName Human-readable display name for the provider.
	DisplayName *string `json:"displayName,omitempty"`

	// Enabled Whether this OIDC provider is enabled.
	Enabled *bool `json:"enabled,omitempty"`

	// Issuer The OIDC issuer URL (e.g., https://accounts.google.com).
	Issuer string `json:"issuer"`

	// OrganizationAssignment AuthOrganizationAssignment defines how users from this auth provider are assigned to organizations.
	OrganizationAssignment AuthOrganizationAssignment `json:"organizationAssignment"`

	// ProviderType The type of authentication provider.
	ProviderType OIDCProviderSpecProviderType `json:"providerType"`

	// RoleAssignment AuthRoleAssignment defines how roles are assigned to users from this auth provider.
	RoleAssignment AuthRoleAssignment `json:"roleAssignment"`

	// Scopes List of OIDC scopes to request.
	Scopes *[]string `json:"scopes,omitempty"`

	// UsernameClaim JSON path to the username claim in the JWT token as an array of path segments (e.g., ["preferred_username"], ["email"], ["sub"]).
	UsernameClaim *[]string `json:"usernameClaim,omitempty"`
}

OIDCProviderSpec OIDCProviderSpec describes an OIDC provider configuration.

func (OIDCProviderSpec) Validate

func (o OIDCProviderSpec) Validate(ctx context.Context) []error

type OIDCProviderSpecProviderType

type OIDCProviderSpecProviderType string

OIDCProviderSpecProviderType The type of authentication provider.

const (
	Oidc OIDCProviderSpecProviderType = "oidc"
)

Defines values for OIDCProviderSpecProviderType.

type ObjectMeta

type ObjectMeta struct {
	// Annotations Properties set by the service.
	Annotations *map[string]string `json:"annotations,omitempty"`

	// CreationTimestamp The time the object was created.
	CreationTimestamp *time.Time `json:"creationTimestamp,omitempty"`

	// DeletionTimestamp The time the object will be deleted.
	DeletionTimestamp *time.Time `json:"deletionTimestamp,omitempty"`

	// Generation A sequence number representing a specific generation of the desired state. Populated by the system. Read-only.
	Generation *int64 `json:"generation,omitempty"`

	// Labels Map of string keys and values that can be used to organize and categorize (scope and select) objects.
	Labels *map[string]string `json:"labels,omitempty"`

	// Name The name of the object.
	Name *string `json:"name,omitempty"`

	// Owner A resource that owns this resource, in "kind/name" format.
	Owner *string `json:"owner,omitempty"`

	// ResourceVersion An opaque string that identifies the server's internal version of an object.
	ResourceVersion *string `json:"resourceVersion,omitempty"`
}

ObjectMeta ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create.

type ObjectReference

type ObjectReference struct {
	// Kind Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds.
	Kind string `json:"kind"`

	// Name The name of the referenced object.
	Name string `json:"name"`
}

ObjectReference A reference to a resource.

type OpenShiftProviderSpec

type OpenShiftProviderSpec struct {
	// AuthorizationUrl The OAuth2 authorization endpoint URL.
	AuthorizationUrl *string `json:"authorizationUrl,omitempty"`

	// ClientId The OAuth2 client ID.
	ClientId *string `json:"clientId,omitempty"`

	// ClientSecret The OAuth2 client secret.
	ClientSecret *string `json:"clientSecret,omitempty"`

	// ClusterControlPlaneUrl The OpenShift cluster control plane URL.
	ClusterControlPlaneUrl *string `json:"clusterControlPlaneUrl,omitempty"`

	// DisplayName Human-readable display name for the provider.
	DisplayName *string `json:"displayName,omitempty"`

	// Enabled Whether this OpenShift provider is enabled.
	Enabled *bool `json:"enabled,omitempty"`

	// Issuer The OAuth2 issuer identifier (used for issuer identification in tokens).
	Issuer *string `json:"issuer,omitempty"`

	// ProviderType The type of authentication provider.
	ProviderType OpenShiftProviderSpecProviderType `json:"providerType"`

	// Scopes List of OAuth2 scopes to request.
	Scopes *[]string `json:"scopes,omitempty"`

	// TokenUrl The OAuth2 token endpoint URL.
	TokenUrl *string `json:"tokenUrl,omitempty"`
}

OpenShiftProviderSpec OpenShiftProviderSpec describes an OpenShift OAuth provider configuration.

type OpenShiftProviderSpecProviderType

type OpenShiftProviderSpecProviderType string

OpenShiftProviderSpecProviderType The type of authentication provider.

const (
	Openshift OpenShiftProviderSpecProviderType = "openshift"
)

Defines values for OpenShiftProviderSpecProviderType.

type Organization

type Organization struct {
	// ApiVersion APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources.
	ApiVersion string `json:"apiVersion"`

	// Kind Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds.
	Kind string `json:"kind"`

	// Metadata ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create.
	Metadata ObjectMeta `json:"metadata"`

	// Spec OrganizationSpec describes an organization.
	Spec *OrganizationSpec `json:"spec,omitempty"`
}

Organization defines model for Organization.

type OrganizationList

type OrganizationList struct {
	// ApiVersion APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources.
	ApiVersion string `json:"apiVersion"`

	// Items List of Organizations.
	Items []Organization `json:"items"`

	// Kind Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds.
	Kind string `json:"kind"`

	// Metadata ListMeta describes metadata that synthetic resources must have, including lists and various status objects. A resource may have only one of {ObjectMeta, ListMeta}.
	Metadata ListMeta `json:"metadata"`
}

OrganizationList OrganizationList is a list of Organizations.

type OrganizationSpec

type OrganizationSpec struct {
	// DisplayName Human readable name shown to users.
	DisplayName *string `json:"displayName,omitempty"`

	// ExternalId External ID of the organization.
	ExternalId *string `json:"externalId,omitempty"`
}

OrganizationSpec OrganizationSpec describes an organization.

type PatchAuthProviderApplicationJSONPatchPlusJSONRequestBody

type PatchAuthProviderApplicationJSONPatchPlusJSONRequestBody = PatchRequest

PatchAuthProviderApplicationJSONPatchPlusJSONRequestBody defines body for PatchAuthProvider for application/json-patch+json ContentType.

type PatchCertificateSigningRequestApplicationJSONPatchPlusJSONRequestBody

type PatchCertificateSigningRequestApplicationJSONPatchPlusJSONRequestBody = PatchRequest

PatchCertificateSigningRequestApplicationJSONPatchPlusJSONRequestBody defines body for PatchCertificateSigningRequest for application/json-patch+json ContentType.

type PatchDeviceApplicationJSONPatchPlusJSONRequestBody

type PatchDeviceApplicationJSONPatchPlusJSONRequestBody = PatchRequest

PatchDeviceApplicationJSONPatchPlusJSONRequestBody defines body for PatchDevice for application/json-patch+json ContentType.

type PatchDeviceStatusApplicationJSONPatchPlusJSONRequestBody

type PatchDeviceStatusApplicationJSONPatchPlusJSONRequestBody = PatchRequest

PatchDeviceStatusApplicationJSONPatchPlusJSONRequestBody defines body for PatchDeviceStatus for application/json-patch+json ContentType.

type PatchEnrollmentRequestApplicationJSONPatchPlusJSONRequestBody

type PatchEnrollmentRequestApplicationJSONPatchPlusJSONRequestBody = PatchRequest

PatchEnrollmentRequestApplicationJSONPatchPlusJSONRequestBody defines body for PatchEnrollmentRequest for application/json-patch+json ContentType.

type PatchEnrollmentRequestStatusApplicationJSONPatchPlusJSONRequestBody

type PatchEnrollmentRequestStatusApplicationJSONPatchPlusJSONRequestBody = PatchRequest

PatchEnrollmentRequestStatusApplicationJSONPatchPlusJSONRequestBody defines body for PatchEnrollmentRequestStatus for application/json-patch+json ContentType.

type PatchFleetApplicationJSONPatchPlusJSONRequestBody

type PatchFleetApplicationJSONPatchPlusJSONRequestBody = PatchRequest

PatchFleetApplicationJSONPatchPlusJSONRequestBody defines body for PatchFleet for application/json-patch+json ContentType.

type PatchFleetStatusApplicationJSONPatchPlusJSONRequestBody

type PatchFleetStatusApplicationJSONPatchPlusJSONRequestBody = PatchRequest

PatchFleetStatusApplicationJSONPatchPlusJSONRequestBody defines body for PatchFleetStatus for application/json-patch+json ContentType.

type PatchRepositoryApplicationJSONPatchPlusJSONRequestBody

type PatchRepositoryApplicationJSONPatchPlusJSONRequestBody = PatchRequest

PatchRepositoryApplicationJSONPatchPlusJSONRequestBody defines body for PatchRepository for application/json-patch+json ContentType.

type PatchRequest

type PatchRequest = []struct {
	// Op The operation to perform.
	Op PatchRequestOp `json:"op"`

	// Path A JSON Pointer path.
	Path string `json:"path"`

	// Value The value to add or replace.
	Value *interface{} `json:"value,omitempty"`
}

PatchRequest defines model for PatchRequest.

type PatchRequestOp

type PatchRequestOp string

PatchRequestOp The operation to perform.

const (
	Add     PatchRequestOp = "add"
	Remove  PatchRequestOp = "remove"
	Replace PatchRequestOp = "replace"
	Test    PatchRequestOp = "test"
)

Defines values for PatchRequestOp.

type PatchResourceSyncApplicationJSONPatchPlusJSONRequestBody

type PatchResourceSyncApplicationJSONPatchPlusJSONRequestBody = PatchRequest

PatchResourceSyncApplicationJSONPatchPlusJSONRequestBody defines body for PatchResourceSync for application/json-patch+json ContentType.

type Percentage

type Percentage = string

Percentage Percentage is the string format representing percentage string.

type Permission

type Permission struct {
	// Operations List of allowed operations (e.g., "get", "list", "create", "update", "patch", "delete", "*" for all operations).
	Operations []string `json:"operations"`

	// Resource The resource (e.g., "devices", "fleets", "*" for all resources).
	Resource string `json:"resource"`
}

Permission A permission defining allowed operations on a resource.

type PermissionList

type PermissionList struct {
	// Permissions List of permissions available to the user.
	Permissions []Permission `json:"permissions"`
}

PermissionList List of available permissions for a user.

type ReferencedRepositoryUpdatedDetails

type ReferencedRepositoryUpdatedDetails struct {
	// DetailType The type of detail for discriminator purposes.
	DetailType ReferencedRepositoryUpdatedDetailsDetailType `json:"detailType"`

	// Repository The name of the repository that was updated.
	Repository string `json:"repository"`
}

ReferencedRepositoryUpdatedDetails defines model for ReferencedRepositoryUpdatedDetails.

type ReferencedRepositoryUpdatedDetailsDetailType

type ReferencedRepositoryUpdatedDetailsDetailType string

ReferencedRepositoryUpdatedDetailsDetailType The type of detail for discriminator purposes.

const (
	ReferencedRepositoryUpdated ReferencedRepositoryUpdatedDetailsDetailType = "ReferencedRepositoryUpdated"
)

Defines values for ReferencedRepositoryUpdatedDetailsDetailType.

type RelativePath

type RelativePath struct {
	// Path A relative file path on the system. Note that any existing file will be overwritten.
	Path *string `json:"path,omitempty"`
}

RelativePath Represents a relative file path.

type ReplaceAuthProviderJSONRequestBody

type ReplaceAuthProviderJSONRequestBody = AuthProvider

ReplaceAuthProviderJSONRequestBody defines body for ReplaceAuthProvider for application/json ContentType.

type ReplaceCertificateSigningRequestJSONRequestBody

type ReplaceCertificateSigningRequestJSONRequestBody = CertificateSigningRequest

ReplaceCertificateSigningRequestJSONRequestBody defines body for ReplaceCertificateSigningRequest for application/json ContentType.

type ReplaceDeviceJSONRequestBody

type ReplaceDeviceJSONRequestBody = Device

ReplaceDeviceJSONRequestBody defines body for ReplaceDevice for application/json ContentType.

type ReplaceDeviceStatusJSONRequestBody

type ReplaceDeviceStatusJSONRequestBody = Device

ReplaceDeviceStatusJSONRequestBody defines body for ReplaceDeviceStatus for application/json ContentType.

type ReplaceEnrollmentRequestJSONRequestBody

type ReplaceEnrollmentRequestJSONRequestBody = EnrollmentRequest

ReplaceEnrollmentRequestJSONRequestBody defines body for ReplaceEnrollmentRequest for application/json ContentType.

type ReplaceEnrollmentRequestStatusJSONRequestBody

type ReplaceEnrollmentRequestStatusJSONRequestBody = EnrollmentRequest

ReplaceEnrollmentRequestStatusJSONRequestBody defines body for ReplaceEnrollmentRequestStatus for application/json ContentType.

type ReplaceFleetJSONRequestBody

type ReplaceFleetJSONRequestBody = Fleet

ReplaceFleetJSONRequestBody defines body for ReplaceFleet for application/json ContentType.

type ReplaceFleetStatusJSONRequestBody

type ReplaceFleetStatusJSONRequestBody = Fleet

ReplaceFleetStatusJSONRequestBody defines body for ReplaceFleetStatus for application/json ContentType.

type ReplaceRepositoryJSONRequestBody

type ReplaceRepositoryJSONRequestBody = Repository

ReplaceRepositoryJSONRequestBody defines body for ReplaceRepository for application/json ContentType.

type ReplaceResourceSyncJSONRequestBody

type ReplaceResourceSyncJSONRequestBody = ResourceSync

ReplaceResourceSyncJSONRequestBody defines body for ReplaceResourceSync for application/json ContentType.

type RepoSpecType

type RepoSpecType string

RepoSpecType RepoSpecType is the type of the repository.

const (
	Git  RepoSpecType = "git"
	Http RepoSpecType = "http"
)

Defines values for RepoSpecType.

type Repository

type Repository struct {
	// ApiVersion APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources.
	ApiVersion string `json:"apiVersion"`

	// Kind Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds.
	Kind string `json:"kind"`

	// Metadata ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create.
	Metadata ObjectMeta `json:"metadata"`

	// Spec RepositorySpec describes a configuration repository.
	Spec RepositorySpec `json:"spec"`

	// Status RepositoryStatus represents information about the status of a repository.
	Status *RepositoryStatus `json:"status,omitempty"`
}

Repository Repository represents a Git repository or an HTTP endpoint.

func (*Repository) HideSensitiveData

func (r *Repository) HideSensitiveData() error

func (*Repository) Validate

func (r *Repository) Validate() []error

func (*Repository) ValidateUpdate

func (r *Repository) ValidateUpdate(newObj *Repository) []error

ValidateUpdate ensures immutable fields are unchanged for Repository.

type RepositoryList

type RepositoryList struct {
	// ApiVersion APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources.
	ApiVersion string `json:"apiVersion"`

	// Items List of repositories.
	Items []Repository `json:"items"`

	// Kind Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds.
	Kind string `json:"kind"`

	// Metadata ListMeta describes metadata that synthetic resources must have, including lists and various status objects. A resource may have only one of {ObjectMeta, ListMeta}.
	Metadata ListMeta `json:"metadata"`
}

RepositoryList RepositoryList is a list of Repositories.

func (*RepositoryList) HideSensitiveData

func (r *RepositoryList) HideSensitiveData() error

type RepositorySpec

type RepositorySpec struct {
	// contains filtered or unexported fields
}

RepositorySpec RepositorySpec describes a configuration repository.

func (RepositorySpec) AsGenericRepoSpec

func (t RepositorySpec) AsGenericRepoSpec() (GenericRepoSpec, error)

AsGenericRepoSpec returns the union data inside the RepositorySpec as a GenericRepoSpec

func (RepositorySpec) AsHttpRepoSpec

func (t RepositorySpec) AsHttpRepoSpec() (HttpRepoSpec, error)

AsHttpRepoSpec returns the union data inside the RepositorySpec as a HttpRepoSpec

func (RepositorySpec) AsSshRepoSpec

func (t RepositorySpec) AsSshRepoSpec() (SshRepoSpec, error)

AsSshRepoSpec returns the union data inside the RepositorySpec as a SshRepoSpec

func (*RepositorySpec) FromGenericRepoSpec

func (t *RepositorySpec) FromGenericRepoSpec(v GenericRepoSpec) error

FromGenericRepoSpec overwrites any union data inside the RepositorySpec as the provided GenericRepoSpec

func (*RepositorySpec) FromHttpRepoSpec

func (t *RepositorySpec) FromHttpRepoSpec(v HttpRepoSpec) error

FromHttpRepoSpec overwrites any union data inside the RepositorySpec as the provided HttpRepoSpec

func (*RepositorySpec) FromSshRepoSpec

func (t *RepositorySpec) FromSshRepoSpec(v SshRepoSpec) error

FromSshRepoSpec overwrites any union data inside the RepositorySpec as the provided SshRepoSpec

func (RepositorySpec) GetGenericRepoSpec

func (t RepositorySpec) GetGenericRepoSpec() (GenericRepoSpec, error)

func (RepositorySpec) GetHttpRepoSpec

func (t RepositorySpec) GetHttpRepoSpec() (HttpRepoSpec, error)

func (RepositorySpec) GetRepoURL

func (t RepositorySpec) GetRepoURL() (string, error)

loose decoder is fine here as all repo specs have `repo` field

func (RepositorySpec) GetSshRepoSpec

func (t RepositorySpec) GetSshRepoSpec() (SshRepoSpec, error)

func (RepositorySpec) MarshalJSON

func (t RepositorySpec) MarshalJSON() ([]byte, error)

func (*RepositorySpec) MergeGenericRepoSpec

func (t *RepositorySpec) MergeGenericRepoSpec(v GenericRepoSpec) error

MergeGenericRepoSpec performs a merge with any union data inside the RepositorySpec, using the provided GenericRepoSpec

func (*RepositorySpec) MergeHttpRepoSpec

func (t *RepositorySpec) MergeHttpRepoSpec(v HttpRepoSpec) error

MergeHttpRepoSpec performs a merge with any union data inside the RepositorySpec, using the provided HttpRepoSpec

func (*RepositorySpec) MergeSshRepoSpec

func (t *RepositorySpec) MergeSshRepoSpec(v SshRepoSpec) error

MergeSshRepoSpec performs a merge with any union data inside the RepositorySpec, using the provided SshRepoSpec

func (*RepositorySpec) UnmarshalJSON

func (t *RepositorySpec) UnmarshalJSON(b []byte) error

type RepositoryStatus

type RepositoryStatus struct {
	// Conditions Current state of the repository.
	Conditions []Condition `json:"conditions"`
}

RepositoryStatus RepositoryStatus represents information about the status of a repository.

type ResourceAlertRule

type ResourceAlertRule struct {
	// Description A human-readable description of the alert.
	Description string `json:"description"`

	// Duration Duration is the time over which the average usage is observed before alerting. Format: positive integer followed by 's' for seconds, 'm' for minutes, 'h' for hours.
	Duration string `json:"duration"`

	// Percentage The percentage of usage that triggers the alert.
	Percentage float32 `json:"percentage"`

	// Severity Severity of the alert.
	Severity ResourceAlertSeverityType `json:"severity"`
}

ResourceAlertRule defines model for ResourceAlertRule.

func (ResourceAlertRule) Validate

func (r ResourceAlertRule) Validate(specSampleInterval string) []error

type ResourceAlertSeverityType

type ResourceAlertSeverityType string

ResourceAlertSeverityType Severity of the alert.

const (
	ResourceAlertSeverityTypeCritical ResourceAlertSeverityType = "Critical"
	ResourceAlertSeverityTypeInfo     ResourceAlertSeverityType = "Info"
	ResourceAlertSeverityTypeWarning  ResourceAlertSeverityType = "Warning"
)

Defines values for ResourceAlertSeverityType.

type ResourceKind

type ResourceKind string

ResourceKind Resource types exposed via the API.

const (
	ResourceKindAuthProvider              ResourceKind = "AuthProvider"
	ResourceKindCertificateSigningRequest ResourceKind = "CertificateSigningRequest"
	ResourceKindDevice                    ResourceKind = "Device"
	ResourceKindEnrollmentRequest         ResourceKind = "EnrollmentRequest"
	ResourceKindFleet                     ResourceKind = "Fleet"
	ResourceKindRepository                ResourceKind = "Repository"
	ResourceKindResourceSync              ResourceKind = "ResourceSync"
	ResourceKindTemplateVersion           ResourceKind = "TemplateVersion"
)

Defines values for ResourceKind.

type ResourceMonitor

type ResourceMonitor struct {
	// contains filtered or unexported fields
}

ResourceMonitor defines model for ResourceMonitor.

func (ResourceMonitor) AsCpuResourceMonitorSpec

func (t ResourceMonitor) AsCpuResourceMonitorSpec() (CpuResourceMonitorSpec, error)

AsCpuResourceMonitorSpec returns the union data inside the ResourceMonitor as a CpuResourceMonitorSpec

func (ResourceMonitor) AsDiskResourceMonitorSpec

func (t ResourceMonitor) AsDiskResourceMonitorSpec() (DiskResourceMonitorSpec, error)

AsDiskResourceMonitorSpec returns the union data inside the ResourceMonitor as a DiskResourceMonitorSpec

func (ResourceMonitor) AsMemoryResourceMonitorSpec

func (t ResourceMonitor) AsMemoryResourceMonitorSpec() (MemoryResourceMonitorSpec, error)

AsMemoryResourceMonitorSpec returns the union data inside the ResourceMonitor as a MemoryResourceMonitorSpec

func (ResourceMonitor) Discriminator

func (t ResourceMonitor) Discriminator() (string, error)

func (*ResourceMonitor) FromCpuResourceMonitorSpec

func (t *ResourceMonitor) FromCpuResourceMonitorSpec(v CpuResourceMonitorSpec) error

FromCpuResourceMonitorSpec overwrites any union data inside the ResourceMonitor as the provided CpuResourceMonitorSpec

func (*ResourceMonitor) FromDiskResourceMonitorSpec

func (t *ResourceMonitor) FromDiskResourceMonitorSpec(v DiskResourceMonitorSpec) error

FromDiskResourceMonitorSpec overwrites any union data inside the ResourceMonitor as the provided DiskResourceMonitorSpec

func (*ResourceMonitor) FromMemoryResourceMonitorSpec

func (t *ResourceMonitor) FromMemoryResourceMonitorSpec(v MemoryResourceMonitorSpec) error

FromMemoryResourceMonitorSpec overwrites any union data inside the ResourceMonitor as the provided MemoryResourceMonitorSpec

func (ResourceMonitor) MarshalJSON

func (t ResourceMonitor) MarshalJSON() ([]byte, error)

func (*ResourceMonitor) MergeCpuResourceMonitorSpec

func (t *ResourceMonitor) MergeCpuResourceMonitorSpec(v CpuResourceMonitorSpec) error

MergeCpuResourceMonitorSpec performs a merge with any union data inside the ResourceMonitor, using the provided CpuResourceMonitorSpec

func (*ResourceMonitor) MergeDiskResourceMonitorSpec

func (t *ResourceMonitor) MergeDiskResourceMonitorSpec(v DiskResourceMonitorSpec) error

MergeDiskResourceMonitorSpec performs a merge with any union data inside the ResourceMonitor, using the provided DiskResourceMonitorSpec

func (*ResourceMonitor) MergeMemoryResourceMonitorSpec

func (t *ResourceMonitor) MergeMemoryResourceMonitorSpec(v MemoryResourceMonitorSpec) error

MergeMemoryResourceMonitorSpec performs a merge with any union data inside the ResourceMonitor, using the provided MemoryResourceMonitorSpec

func (*ResourceMonitor) UnmarshalJSON

func (t *ResourceMonitor) UnmarshalJSON(b []byte) error

func (ResourceMonitor) Validate

func (r ResourceMonitor) Validate() []error

func (ResourceMonitor) ValueByDiscriminator

func (t ResourceMonitor) ValueByDiscriminator() (interface{}, error)

type ResourceMonitorSpec

type ResourceMonitorSpec struct {
	// AlertRules Array of alert rules. Only one alert per severity is allowed.
	AlertRules []ResourceAlertRule `json:"alertRules"`

	// SamplingInterval Duration between monitor samples. Format: positive integer followed by 's' for seconds, 'm' for minutes, 'h' for hours.
	SamplingInterval string `json:"samplingInterval"`
}

ResourceMonitorSpec Specification for monitoring a resource.

type ResourceSync

type ResourceSync struct {
	// ApiVersion APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources.
	ApiVersion string `json:"apiVersion"`

	// Kind Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds.
	Kind string `json:"kind"`

	// Metadata ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create.
	Metadata ObjectMeta `json:"metadata"`

	// Spec ResourceSyncSpec describes the file(s) to sync from a repository.
	Spec ResourceSyncSpec `json:"spec"`

	// Status ResourceSyncStatus represents information about the status of a ResourceSync.
	Status *ResourceSyncStatus `json:"status,omitempty"`
}

ResourceSync ResourceSync represents a reference to one or more files in a repository to sync to resource definitions.

func (ResourceSync) Validate

func (r ResourceSync) Validate() []error

func (*ResourceSync) ValidateUpdate

func (rs *ResourceSync) ValidateUpdate(newObj *ResourceSync) []error

ValidateUpdate ensures immutable fields are unchanged for ResourceSync.

type ResourceSyncCompletedDetails

type ResourceSyncCompletedDetails struct {
	// ChangeCount Number of changes introduced by this ResourceSync update.
	ChangeCount int `json:"changeCount"`

	// CommitHash Hash of the last commit.
	CommitHash string `json:"commitHash"`

	// DetailType The type of detail for discriminator purposes.
	DetailType ResourceSyncCompletedDetailsDetailType `json:"detailType"`

	// ErrorCount Number of errors encountered by this ResourceSync update.
	ErrorCount int `json:"errorCount"`
}

ResourceSyncCompletedDetails defines model for ResourceSyncCompletedDetails.

type ResourceSyncCompletedDetailsDetailType

type ResourceSyncCompletedDetailsDetailType string

ResourceSyncCompletedDetailsDetailType The type of detail for discriminator purposes.

const (
	ResourceSyncCompleted ResourceSyncCompletedDetailsDetailType = "ResourceSyncCompleted"
)

Defines values for ResourceSyncCompletedDetailsDetailType.

type ResourceSyncList

type ResourceSyncList struct {
	// ApiVersion APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources.
	ApiVersion string `json:"apiVersion"`

	// Items List of resourcesync.
	Items []ResourceSync `json:"items"`

	// Kind Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds.
	Kind string `json:"kind"`

	// Metadata ListMeta describes metadata that synthetic resources must have, including lists and various status objects. A resource may have only one of {ObjectMeta, ListMeta}.
	Metadata ListMeta `json:"metadata"`
}

ResourceSyncList defines model for ResourceSyncList.

type ResourceSyncSpec

type ResourceSyncSpec struct {
	// Path The path of a file or directory in the repository. If a directory, the directory should contain only resource definitions with no subdirectories. Each file should contain the definition of one or more resources.
	Path string `json:"path"`

	// Repository The name of the repository resource to use as the sync source.
	Repository string `json:"repository"`

	// TargetRevision The desired revision in the repository.
	TargetRevision string `json:"targetRevision"`
}

ResourceSyncSpec ResourceSyncSpec describes the file(s) to sync from a repository.

type ResourceSyncStatus

type ResourceSyncStatus struct {
	// Conditions Current state of a resourcesync.
	Conditions []Condition `json:"conditions"`

	// ObservedCommit The last commit hash that was synced.
	ObservedCommit *string `json:"observedCommit,omitempty"`

	// ObservedGeneration The last generation that was synced.
	ObservedGeneration *int64 `json:"observedGeneration,omitempty"`
}

ResourceSyncStatus ResourceSyncStatus represents information about the status of a ResourceSync.

type ResourceUpdatedDetails

type ResourceUpdatedDetails struct {
	// DetailType The type of detail for discriminator purposes.
	DetailType ResourceUpdatedDetailsDetailType `json:"detailType"`

	// NewOwner The new owner (if applicable).
	NewOwner *string `json:"newOwner"`

	// PreviousOwner The previous owner (if applicable).
	PreviousOwner *string `json:"previousOwner"`

	// UpdatedFields List of fields that were updated in the resource.
	UpdatedFields []ResourceUpdatedDetailsUpdatedFields `json:"updatedFields"`
}

ResourceUpdatedDetails defines model for ResourceUpdatedDetails.

type ResourceUpdatedDetailsDetailType

type ResourceUpdatedDetailsDetailType string

ResourceUpdatedDetailsDetailType The type of detail for discriminator purposes.

const (
	ResourceUpdated ResourceUpdatedDetailsDetailType = "ResourceUpdated"
)

Defines values for ResourceUpdatedDetailsDetailType.

type ResourceUpdatedDetailsUpdatedFields

type ResourceUpdatedDetailsUpdatedFields string

ResourceUpdatedDetailsUpdatedFields defines model for ResourceUpdatedDetails.UpdatedFields.

const (
	Labels       ResourceUpdatedDetailsUpdatedFields = "labels"
	Owner        ResourceUpdatedDetailsUpdatedFields = "owner"
	Spec         ResourceUpdatedDetailsUpdatedFields = "spec"
	SpecSelector ResourceUpdatedDetailsUpdatedFields = "spec.selector"
	SpecTemplate ResourceUpdatedDetailsUpdatedFields = "spec.template"
)

Defines values for ResourceUpdatedDetailsUpdatedFields.

type ResumeDevicesJSONRequestBody

type ResumeDevicesJSONRequestBody = DeviceResumeRequest

ResumeDevicesJSONRequestBody defines body for ResumeDevices for application/json ContentType.

type RolloutBatchCompletionReport

type RolloutBatchCompletionReport struct {
	BatchName         string `json:"batchName"`
	SuccessPercentage int64  `json:"successPercentage"`
	Total             int64  `json:"total"`
	Successful        int64  `json:"successful"`
	Failed            int64  `json:"failed"`
	TimedOut          int64  `json:"timedOut"`
}

type RolloutDeviceSelection

type RolloutDeviceSelection struct {
	// contains filtered or unexported fields
}

RolloutDeviceSelection Describes how to select devices for rollout.

func (RolloutDeviceSelection) AsBatchSequence

func (t RolloutDeviceSelection) AsBatchSequence() (BatchSequence, error)

AsBatchSequence returns the union data inside the RolloutDeviceSelection as a BatchSequence

func (RolloutDeviceSelection) Discriminator

func (t RolloutDeviceSelection) Discriminator() (string, error)

func (*RolloutDeviceSelection) FromBatchSequence

func (t *RolloutDeviceSelection) FromBatchSequence(v BatchSequence) error

FromBatchSequence overwrites any union data inside the RolloutDeviceSelection as the provided BatchSequence

func (RolloutDeviceSelection) MarshalJSON

func (t RolloutDeviceSelection) MarshalJSON() ([]byte, error)

func (*RolloutDeviceSelection) MergeBatchSequence

func (t *RolloutDeviceSelection) MergeBatchSequence(v BatchSequence) error

MergeBatchSequence performs a merge with any union data inside the RolloutDeviceSelection, using the provided BatchSequence

func (*RolloutDeviceSelection) UnmarshalJSON

func (t *RolloutDeviceSelection) UnmarshalJSON(b []byte) error

func (*RolloutDeviceSelection) Validate

func (r *RolloutDeviceSelection) Validate() []error

func (RolloutDeviceSelection) ValueByDiscriminator

func (t RolloutDeviceSelection) ValueByDiscriminator() (interface{}, error)

type RolloutPolicy

type RolloutPolicy struct {
	// DefaultUpdateTimeout The maximum duration allowed for the action to complete. The duration should be specified as a positive integer followed by a time unit. Supported time units are: `s` for seconds, `m` for minutes, `h` for hours.
	DefaultUpdateTimeout *Duration `json:"defaultUpdateTimeout,omitempty"`

	// DeviceSelection Describes how to select devices for rollout.
	DeviceSelection *RolloutDeviceSelection `json:"deviceSelection,omitempty"`

	// DisruptionBudget DisruptionBudget defines the level of allowed disruption when rollout is in progress.
	DisruptionBudget *DisruptionBudget `json:"disruptionBudget,omitempty"`

	// SuccessThreshold Percentage is the string format representing percentage string.
	SuccessThreshold *Percentage `json:"successThreshold,omitempty"`
}

RolloutPolicy RolloutPolicy is the rollout policy of the fleet.

func (*RolloutPolicy) Validate

func (r *RolloutPolicy) Validate() []error

type RolloutStrategy

type RolloutStrategy string

RolloutStrategy The strategy of choice for device selection in rollout policy.

const (
	RolloutStrategyBatchSequence RolloutStrategy = "BatchSequence"
)

Defines values for RolloutStrategy.

type SecureString

type SecureString string

func (SecureString) GoString

func (s SecureString) GoString() string

GoString implements fmt.GoStringer interface (used by %#v)

func (SecureString) MarshalJSON

func (s SecureString) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler interface

func (SecureString) String

func (s SecureString) String() string

String implements fmt.Stringer interface, used by fmt.Println, fmt.Printf, etc.

func (SecureString) Value

func (s SecureString) Value() string

type SensitiveDataHider

type SensitiveDataHider interface {
	HideSensitiveData() error
}

type SshConfig

type SshConfig struct {
	// PrivateKeyPassphrase The passphrase for sshPrivateKey.
	PrivateKeyPassphrase *string `json:"privateKeyPassphrase,omitempty"`

	// SkipServerVerification Skip remote server verification.
	SkipServerVerification *bool `json:"skipServerVerification,omitempty"`

	// SshPrivateKey Base64 encoded private SSH key.
	SshPrivateKey *string `json:"sshPrivateKey,omitempty"`
}

SshConfig Configuration for SSH transport.

type SshRepoSpec

type SshRepoSpec struct {
	// SshConfig Configuration for SSH transport.
	SshConfig SshConfig `json:"sshConfig"`

	// Type RepoSpecType is the type of the repository.
	Type RepoSpecType `json:"type"`

	// Url The SSH Git repository URL to clone from.
	Url string `json:"url"`
}

SshRepoSpec defines model for SshRepoSpec.

type Status

type Status struct {
	// ApiVersion APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources.
	ApiVersion string `json:"apiVersion"`

	// Code Suggested HTTP return code for this status, 0 if not set.
	Code int32 `json:"code"`

	// Kind Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds.
	Kind string `json:"kind"`

	// Message A human-readable description of the status of this operation.
	Message string `json:"message"`

	// Reason A machine-readable description of why this operation is in the "Failure" status. If this value is empty there is no information available. A Reason clarifies an HTTP status code but does not override it.
	Reason string `json:"reason"`

	// Status Status of the operation. One of: "Success" or "Failure". More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status.
	Status string `json:"status"`
}

Status Status is a return value for calls that don't return other objects.

func NewFailureStatus

func NewFailureStatus(code int32, reason string, message string) Status

func NewSuccessStatus

func NewSuccessStatus(code int32, reason string, message string) Status

func StatusAuthNotConfigured

func StatusAuthNotConfigured(message string) Status

func StatusBadRequest

func StatusBadRequest(message string) Status

func StatusConflict

func StatusConflict(message string) Status

func StatusCreated

func StatusCreated() Status

func StatusForbidden

func StatusForbidden(message string) Status

func StatusInternalServerError

func StatusInternalServerError(message string) Status

func StatusNoContent

func StatusNoContent() Status

func StatusNotImplemented

func StatusNotImplemented(message string) Status

func StatusOK

func StatusOK() Status

func StatusResourceNotFound

func StatusResourceNotFound(kind, name string) Status

func StatusResourceVersionConflict

func StatusResourceVersionConflict(message string) Status

func StatusTooManyRequests

func StatusTooManyRequests(message string) Status

func StatusUnauthorized

func StatusUnauthorized(message string) Status

type SystemdActiveStateType

type SystemdActiveStateType string

SystemdActiveStateType The high-level unit activation state.

const (
	SystemdActiveStateActivating   SystemdActiveStateType = "activating"
	SystemdActiveStateActive       SystemdActiveStateType = "active"
	SystemdActiveStateDeactivating SystemdActiveStateType = "deactivating"
	SystemdActiveStateFailed       SystemdActiveStateType = "failed"
	SystemdActiveStateInactive     SystemdActiveStateType = "inactive"
	SystemdActiveStateMaintenance  SystemdActiveStateType = "maintenance"
	SystemdActiveStateRefreshing   SystemdActiveStateType = "refreshing"
	SystemdActiveStateReloading    SystemdActiveStateType = "reloading"
	SystemdActiveStateUnknown      SystemdActiveStateType = "unknown"
)

Defines values for SystemdActiveStateType.

func (SystemdActiveStateType) Validate

func (s SystemdActiveStateType) Validate() error

type SystemdEnableStateType

type SystemdEnableStateType string

SystemdEnableStateType The enable state of the unit file.

const (
	SystemdEnableStateAlias          SystemdEnableStateType = "alias"
	SystemdEnableStateBad            SystemdEnableStateType = "bad"
	SystemdEnableStateDisabled       SystemdEnableStateType = "disabled"
	SystemdEnableStateEmpty          SystemdEnableStateType = ""
	SystemdEnableStateEnabled        SystemdEnableStateType = "enabled"
	SystemdEnableStateEnabledRuntime SystemdEnableStateType = "enabled-runtime"
	SystemdEnableStateGenerated      SystemdEnableStateType = "generated"
	SystemdEnableStateIndirect       SystemdEnableStateType = "indirect"
	SystemdEnableStateLinked         SystemdEnableStateType = "linked"
	SystemdEnableStateLinkedRuntime  SystemdEnableStateType = "linked-runtime"
	SystemdEnableStateMasked         SystemdEnableStateType = "masked"
	SystemdEnableStateMaskedRuntime  SystemdEnableStateType = "masked-runtime"
	SystemdEnableStateStatic         SystemdEnableStateType = "static"
	SystemdEnableStateTransient      SystemdEnableStateType = "transient"
	SystemdEnableStateUnknown        SystemdEnableStateType = "unknown"
)

Defines values for SystemdEnableStateType.

func (SystemdEnableStateType) Validate

func (s SystemdEnableStateType) Validate() error

type SystemdLoadStateType

type SystemdLoadStateType string

SystemdLoadStateType The load state of the unit file.

const (
	SystemdLoadStateBadSetting SystemdLoadStateType = "bad-setting"
	SystemdLoadStateError      SystemdLoadStateType = "error"
	SystemdLoadStateLoaded     SystemdLoadStateType = "loaded"
	SystemdLoadStateMasked     SystemdLoadStateType = "masked"
	SystemdLoadStateMerged     SystemdLoadStateType = "merged"
	SystemdLoadStateNotFound   SystemdLoadStateType = "not-found"
	SystemdLoadStateStub       SystemdLoadStateType = "stub"
	SystemdLoadStateUnknown    SystemdLoadStateType = "unknown"
)

Defines values for SystemdLoadStateType.

func (SystemdLoadStateType) Validate

func (s SystemdLoadStateType) Validate() error

type SystemdUnitStatus

type SystemdUnitStatus struct {
	// ActiveState The high-level unit activation state.
	ActiveState SystemdActiveStateType `json:"activeState"`

	// Description The human-readable description for the unit.
	Description string `json:"description"`

	// EnableState The enable state of the unit file.
	EnableState SystemdEnableStateType `json:"enableState"`

	// LoadState The load state of the unit file.
	LoadState SystemdLoadStateType `json:"loadState"`

	// SubState The low-level, unit-type-specific state.
	SubState string `json:"subState"`

	// Unit The unit name (e.g., "sshd.service").
	Unit string `json:"unit"`
}

SystemdUnitStatus defines model for SystemdUnitStatus.

type TemplateVersion

type TemplateVersion struct {
	// ApiVersion APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources.
	ApiVersion string `json:"apiVersion"`

	// Kind Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds.
	Kind string `json:"kind"`

	// Metadata ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create.
	Metadata ObjectMeta `json:"metadata"`

	// Spec TemplateVersionSpec describes a version of a device template.
	Spec TemplateVersionSpec `json:"spec"`

	// Status TemplateVersionStatus represents information about the status of a template version.
	Status *TemplateVersionStatus `json:"status,omitempty"`
}

TemplateVersion TemplateVersion represents a version of a template.

func (TemplateVersion) Validate

func (tv TemplateVersion) Validate() []error

type TemplateVersionList

type TemplateVersionList struct {
	// ApiVersion APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources.
	ApiVersion string `json:"apiVersion"`

	// Items List of TemplateVersions.
	Items []TemplateVersion `json:"items"`

	// Kind Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds.
	Kind string `json:"kind"`

	// Metadata ListMeta describes metadata that synthetic resources must have, including lists and various status objects. A resource may have only one of {ObjectMeta, ListMeta}.
	Metadata ListMeta `json:"metadata"`
}

TemplateVersionList TemplateVersionList is a list of TemplateVersions.

type TemplateVersionSpec

type TemplateVersionSpec struct {
	// Fleet The fleet whose template this refers to.
	Fleet string `json:"fleet"`
}

TemplateVersionSpec TemplateVersionSpec describes a version of a device template.

type TemplateVersionStatus

type TemplateVersionStatus struct {
	// Applications List of application providers.
	Applications *[]ApplicationProviderSpec `json:"applications,omitempty"`

	// Conditions Current state of the device.
	Conditions []Condition `json:"conditions"`

	// Config List of config providers.
	Config *[]ConfigProviderSpec `json:"config,omitempty"`

	// Consoles The list of active console sessions.
	Consoles *[]DeviceConsole `json:"consoles,omitempty"`

	// Decommissioning Metadata about a device decommissioning request.
	Decommissioning *DeviceDecommission `json:"decommissioning,omitempty"`

	// Os DeviceOsSpec describes the target OS for the device.
	Os *DeviceOsSpec `json:"os,omitempty"`

	// Resources Array of resource monitor configurations.
	Resources *[]ResourceMonitor `json:"resources,omitempty"`

	// Systemd The systemd services to monitor.
	Systemd *struct {
		// MatchPatterns A list of match patterns.
		MatchPatterns *[]string `json:"matchPatterns,omitempty"`
	} `json:"systemd,omitempty"`

	// UpdatePolicy Specifies the policy for managing device updates, including when updates should be downloaded and applied.
	UpdatePolicy *DeviceUpdatePolicySpec `json:"updatePolicy,omitempty"`

	// UpdatedAt The time at which the template was last updated.
	UpdatedAt *time.Time `json:"updatedAt,omitempty"`
}

TemplateVersionStatus defines model for TemplateVersionStatus.

type TerminalSize

type TerminalSize struct {
	Width  uint16
	Height uint16
}

This structure was copied from remotecommand.TerminalSize in order to avoid inclusion of the package by the agent

type TimeZone

type TimeZone = string

TimeZone Time zone identifiers follow the IANA format AREA/LOCATION, where AREA represents a continent or ocean, and LOCATION specifies a particular site within that area, for example America/New_York, Europe/Paris. Only unambiguous 3-character time zones are supported ("GMT", "UTC").

type TokenRequest

type TokenRequest struct {
	// ClientId OAuth2 client identifier.
	ClientId string `form:"client_id" json:"client_id"`

	// Code Authorization code for authorization_code grant.
	Code *string `form:"code,omitempty" json:"code"`

	// CodeVerifier PKCE code verifier.
	CodeVerifier *string `form:"code_verifier,omitempty" json:"code_verifier"`

	// GrantType OAuth2 grant type.
	GrantType TokenRequestGrantType `form:"grant_type" json:"grant_type"`

	// RedirectUri OAuth2 redirect URI (required for authorization_code grant if included in authorization request).
	RedirectUri *string `form:"redirect_uri,omitempty" json:"redirect_uri"`

	// RefreshToken Refresh token for refresh_token grant.
	RefreshToken *string `form:"refresh_token,omitempty" json:"refresh_token"`

	// Scope OAuth2 scope.
	Scope *string `form:"scope,omitempty" json:"scope"`
}

TokenRequest OAuth2 token request

type TokenRequestGrantType

type TokenRequestGrantType string

TokenRequestGrantType OAuth2 grant type.

const (
	AuthorizationCode TokenRequestGrantType = "authorization_code"
	RefreshToken      TokenRequestGrantType = "refresh_token"
)

Defines values for TokenRequestGrantType.

type TokenResponse

type TokenResponse struct {
	// AccessToken OAuth2 access token.
	AccessToken *string `json:"access_token,omitempty"`

	// Error OAuth2 error code.
	Error *string `json:"error,omitempty"`

	// ErrorDescription OAuth2 error description.
	ErrorDescription *string `json:"error_description,omitempty"`

	// ExpiresIn Token expiration time in seconds.
	ExpiresIn *int `json:"expires_in,omitempty"`

	// IdToken OIDC ID token (JWT). Present when using OIDC with openid scope.
	IdToken *string `json:"id_token,omitempty"`

	// RefreshToken OAuth2 refresh token.
	RefreshToken *string `json:"refresh_token,omitempty"`

	// TokenType Token type.
	TokenType *TokenResponseTokenType `json:"token_type,omitempty"`
}

TokenResponse OAuth2 token response

type TokenResponseTokenType

type TokenResponseTokenType string

TokenResponseTokenType Token type.

const (
	Bearer TokenResponseTokenType = "Bearer"
)

Defines values for TokenResponseTokenType.

type UpdateCertificateSigningRequestApprovalJSONRequestBody

type UpdateCertificateSigningRequestApprovalJSONRequestBody = CertificateSigningRequest

UpdateCertificateSigningRequestApprovalJSONRequestBody defines body for UpdateCertificateSigningRequestApproval for application/json ContentType.

type UpdateSchedule

type UpdateSchedule struct {
	// At Cron expression format for scheduling times.
	// The format is `* * * * *`: - Minutes: `*` matches 0-59. - Hours: `*` matches 0-23. - Day of Month: `*` matches 1-31. - Month: `*` matches 1-12. - Day of Week: `*` matches 0-6.
	// Supported operators: - `*`: Matches any value (e.g., `*` in hours matches every hour). - `-`: Range (e.g., `0-8` for 12 AM to 8 AM). - `,`: List (e.g., `1,12` for 1st and 12th minute). - `/`: Step (e.g., `*/12` for every 12th minute). - Single value (e.g., `8` matches the 8th minute).
	// Example: `* 0-8,16-23 * * *`.
	At CronExpression `json:"at"`

	// StartGraceDuration The maximum duration allowed for the action to complete. The duration should be specified as a positive integer followed by a time unit. Supported time units are: `s` for seconds, `m` for minutes, `h` for hours.
	StartGraceDuration *Duration `json:"startGraceDuration,omitempty"`

	// TimeZone Time zone identifiers follow the IANA format AREA/LOCATION, where AREA represents a continent or ocean, and LOCATION specifies a particular site within that area, for example America/New_York, Europe/Paris. Only unambiguous 3-character time zones are supported ("GMT", "UTC").
	TimeZone *TimeZone `json:"timeZone,omitempty"`
}

UpdateSchedule Defines the schedule for automatic downloading and updates, including timing and optional timeout.

func (UpdateSchedule) Validate

func (u UpdateSchedule) Validate() []error

type UpdateState

type UpdateState string
const (
	// The agent is validating the desired device spec and downloading
	// dependencies. No changes have been made to the device's configuration
	// yet.
	UpdateStatePreparing UpdateState = "Preparing"
	//  The agent has validated the desired spec, downloaded all dependencies,
	//  and is ready to update. No changes have been made to the device's
	//  configuration yet.
	UpdateStateReadyToUpdate UpdateState = "ReadyToUpdate"
	// The agent has started the update transaction and is writing the update to
	// disk.
	UpdateStateApplyingUpdate UpdateState = "ApplyingUpdate"
	// The agent initiated a reboot required to activate the new OS image and configuration.
	UpdateStateRebooting UpdateState = "Rebooting"
	// The agent has successfully completed the update and the device is
	// conforming to its device spec. Note that the device's update status may
	// still be reported as `OutOfDate` if the device spec is not yet at the
	// same version as the fleet's device template
	UpdateStateUpdated UpdateState = "Updated"
	// The agent has canceled the update because the desired spec was reverted
	// to the current spec before the update process started.
	UpdateStateCanceled UpdateState = "Canceled"
	// The agent failed to apply the desired spec and will not retry. The
	// device's OS image and configuration have been rolled back to the
	// pre-update version and have been activated
	UpdateStateError UpdateState = "Error"
	// The agent has detected an error and is rolling back to the pre-update OS
	// image and configuration.
	UpdateStateRollingBack UpdateState = "RollingBack"
	// The agent failed to apply the desired spec and will retry. The device's
	// OS image and configuration have been rolled back to the pre-update
	// version and have been activated.
	UpdateStateRetrying UpdateState = "Retrying"
)

type UserInfoResponse

type UserInfoResponse struct {
	// Error Error code.
	Error *string `json:"error,omitempty"`

	// Name Full name.
	Name *string `json:"name,omitempty"`

	// Organizations User organizations.
	Organizations *[]Organization `json:"organizations,omitempty"`

	// PreferredUsername Preferred username.
	PreferredUsername *string `json:"preferred_username,omitempty"`

	// Sub Subject identifier.
	Sub *string `json:"sub,omitempty"`
}

UserInfoResponse OIDC UserInfo response

type Validator

type Validator interface {
	Validate() []error
}

type Version

type Version struct {
	// Version Git version of the service.
	Version string `json:"version"`
}

Version defines model for Version.

type VolumeMount

type VolumeMount struct {
	// Path Mount path in the container with support for options.
	Path string `json:"path"`
}

VolumeMount Mount configuration for a volume.

Directories

Path Synopsis
Package v1beta1 provides primitives to interact with the openapi HTTP API.
Package v1beta1 provides primitives to interact with the openapi HTTP API.
Package pam_issuer provides primitives to interact with the PAM Issuer openapi HTTP API.
Package pam_issuer provides primitives to interact with the PAM Issuer openapi HTTP API.

Jump to

Keyboard shortcuts

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