service

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2024 License: Apache-2.0 Imports: 29 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const ClientCertExpiryDays = 365
View Source
const DefaultEnrollmentCertExpirySeconds int32 = 60 * 60 * 24 * 7 // 7 days

Variables

View Source
var (
	ErrorInvalidFieldKey   = errors.New("invalid field filter key")
	ErrorInvalidFieldValue = errors.New("invalid field filter value")
)

Functions

func ApplyJSONPatch

func ApplyJSONPatch[T any](ctx context.Context, obj T, newObj T, patchRequest v1alpha1.PatchRequest, objPath string) error

func ConvertStatusFilterParamsToMap

func ConvertStatusFilterParamsToMap(params []string) (map[string][]string, error)

ConvertStatusFilterParamsToMap converts statusFilter query params to to a validated filterMap map.

func FleetFromReader

func FleetFromReader(r io.Reader) (*v1alpha1.Fleet, error)

func TemplateVersionFromReader

func TemplateVersionFromReader(r io.Reader) (*api.TemplateVersion, error)

Types

type ServiceHandler

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

func NewServiceHandler

func NewServiceHandler(store store.Store, callbackManager tasks.CallbackManager, ca *crypto.CA, log logrus.FieldLogger, consoleGrpcEndpoint string) *ServiceHandler

func (*ServiceHandler) ApproveCertificateSigningRequest

(POST /api/v1/certificatesigningrequests/{name}/approval) NOTE: Approval currently also issues a certificate - this will change in the future based on policy

func (*ServiceHandler) ApproveEnrollmentRequest

(POST /api/v1/enrollmentrequests/{name}/approval)

func (*ServiceHandler) AuthConfig

(GET /api/v1/auth/config)

func (*ServiceHandler) AuthValidate

(GET /api/v1/auth/validate)

func (*ServiceHandler) CreateCertificateSigningRequest

(POST /api/v1/certificatesigningrequests)

func (*ServiceHandler) CreateDevice

(POST /api/v1/devices)

func (*ServiceHandler) CreateEnrollmentRequest

(POST /api/v1/enrollmentrequests)

func (*ServiceHandler) CreateFleet

(POST /api/v1/fleets)

func (*ServiceHandler) CreateRepository

(POST /api/v1/repositories)

func (*ServiceHandler) CreateResourceSync

(POST /api/v1/resourcesyncs)

func (*ServiceHandler) DeleteCertificateSigningRequest

(DELETE /api/v1/certificatesigningrequests/{name})

func (*ServiceHandler) DeleteCertificateSigningRequests

(DELETE /api/v1/certificatesigningrequests)

func (*ServiceHandler) DeleteDevice

(DELETE /api/v1/devices/{name})

func (*ServiceHandler) DeleteDevices

(DELETE /api/v1/devices)

func (*ServiceHandler) DeleteEnrollmentRequest

(DELETE /api/v1/enrollmentrequests/{name})

func (*ServiceHandler) DeleteEnrollmentRequests

(DELETE /api/v1/enrollmentrequests)

func (*ServiceHandler) DeleteFleet

(DELETE /api/v1/fleets/{name})

func (*ServiceHandler) DeleteFleets

(DELETE /api/v1/fleets)

func (*ServiceHandler) DeleteRepositories

(DELETE /api/v1/repositories)

func (*ServiceHandler) DeleteRepository

(DELETE /api/v1/repositories/{name})

func (*ServiceHandler) DeleteResourceSync

(DELETE /api/v1/resourcesyncs/{name})

func (*ServiceHandler) DeleteResourceSyncs

(DELETE /api/v1/resourcesyncs)

func (*ServiceHandler) DeleteTemplateVersion

(DELETE /api/v1/fleets/{fleet}/templateVersions/{name})

func (*ServiceHandler) DeleteTemplateVersions

(DELETE /api/v1/api/v1/fleets/{fleet}/templateVersions)

func (*ServiceHandler) DenyCertificateSigningRequest

(DELETE /api/v1/certificatesigningrequests/{name}/approval)

func (*ServiceHandler) GetRenderedDeviceSpec

(GET /api/v1/devices/{name}/rendered)

func (*ServiceHandler) ListCertificateSigningRequests

(GET /api/v1/certificatesigningrequests)

func (*ServiceHandler) ListDevices

(GET /api/v1/devices)

func (*ServiceHandler) ListEnrollmentRequests

(GET /api/v1/enrollmentrequests)

func (*ServiceHandler) ListFleets

(GET /api/v1/fleets)

func (*ServiceHandler) ListRepositories

(GET /api/v1/repositories)

func (*ServiceHandler) ListResourceSync

(GET /api/v1/resourcesyncs)

func (*ServiceHandler) ListTemplateVersions

(GET /api/v1/api/v1/fleets/{fleet}/templateVersions)

func (*ServiceHandler) PatchCertificateSigningRequest

(PATCH /api/v1/certificatesigningrequests/{name})

func (*ServiceHandler) PatchDevice

(PATCH /api/v1/devices/{name}) Only metadata.labels and spec can be patched. If we try to patch other fields, HTTP 400 Bad Request is returned.

func (*ServiceHandler) PatchFleet

(PATCH /api/v1/fleets/{name}) Only metadata.labels and spec can be patched. If we try to patch other fields, HTTP 400 Bad Request is returned.

func (*ServiceHandler) PatchRepository

(PATCH /api/v1/repositories/{name}) Only metadata.labels and spec can be patched. If we try to patch other fields, HTTP 400 Bad Request is returned.

func (*ServiceHandler) PatchResourceSync

(PATCH /api/v1/resourcesyncs/{name}) Only metadata.labels and spec can be patched. If we try to patch other fields, HTTP 400 Bad Request is returned.

func (*ServiceHandler) ReadCertificateSigningRequest

(GET /api/v1/certificatesigningrequests/{name})

func (*ServiceHandler) ReadDevice

(GET /api/v1/devices/{name})

func (*ServiceHandler) ReadDeviceStatus

(GET /api/v1/devices/{name}/status)

func (*ServiceHandler) ReadEnrollmentRequest

(GET /api/v1/enrollmentrequests/{name})

func (*ServiceHandler) ReadEnrollmentRequestStatus

(GET /api/v1/enrollmentrequests/{name}/status)

func (*ServiceHandler) ReadFleet

(GET /api/v1/fleets/{name})

func (*ServiceHandler) ReadFleetStatus

(GET /api/v1/fleets/{name}/status)

func (*ServiceHandler) ReadRepository

(GET /api/v1/repositories/{name})

func (*ServiceHandler) ReadResourceSync

(GET /api/v1/resourcesyncs/{name})

func (*ServiceHandler) ReadTemplateVersion

(GET /api/v1/fleets/{fleet}/templateVersions/{name})

func (*ServiceHandler) ReplaceCertificateSigningRequest

(PUT /api/v1/certificatesigningrequests/{name})

func (*ServiceHandler) ReplaceDevice

(PUT /api/v1/devices/{name})

func (*ServiceHandler) ReplaceDeviceStatus

(PUT /api/v1/devices/{name}/status)

func (*ServiceHandler) ReplaceEnrollmentRequest

(PUT /api/v1/enrollmentrequests/{name})

func (*ServiceHandler) ReplaceEnrollmentRequestStatus

(PUT /api/v1/enrollmentrequests/{name}/status)

func (*ServiceHandler) ReplaceFleet

(PUT /api/v1/fleets/{name})

func (*ServiceHandler) ReplaceFleetStatus

(PUT /api/v1/fleets/{name}/status)

func (*ServiceHandler) ReplaceRepository

(PUT /api/v1/repositories/{name})

func (*ServiceHandler) ReplaceResourceSync

(PUT /api/v1/resourcesyncs/{name})

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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