{"modulePath":"github.com/osapi-io/osapi","version":"v0.2.0","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package file\n\nPackage file provides node-targeted file deploy API handlers.\n\n## Functions\n\n```go\nfunc Handler(\n\tlogger *slog.Logger,\n\tjobClient client.JobClient,\n\tsigningKey string,\n\tcustomRoles map[string][]string,\n) []func(e *echo.Echo)\n```\nHandler returns node file deploy route registration functions.\n\n## Types\n\n```go\ntype File struct {\n\t// JobClient provides job-based operations for file deploy operations.\n\tJobClient client.JobClient\n\t// contains filtered or unexported fields\n}\n```\nFile implementation of the node file deploy APIs operations.\n\n```go\nfunc New(\n\tlogger *slog.Logger,\n\tjobClient client.JobClient,\n) *File\n```\nNew factory to create a new instance.\n\n```go\nfunc (s *File) PostNodeFileDeploy(\n\tctx context.Context,\n\trequest gen.PostNodeFileDeployRequestObject,\n) (gen.PostNodeFileDeployResponseObject, error)\n```\nPostNodeFileDeploy post the node file deploy API endpoint.\n\n```go\nfunc (s *File) PostNodeFileStatus(\n\tctx context.Context,\n\trequest gen.PostNodeFileStatusRequestObject,\n) (gen.PostNodeFileStatusResponseObject, error)\n```\nPostNodeFileStatus post the node file status API endpoint.\n\n```go\nfunc (s *File) PostNodeFileUndeploy(\n\tctx context.Context,\n\trequest gen.PostNodeFileUndeployRequestObject,\n) (gen.PostNodeFileUndeployResponseObject, error)\n```\nPostNodeFileUndeploy post the node file undeploy API endpoint.\n\n","path":"github.com/osapi-io/osapi/internal/controller/api/node/file","name":"file","synopsis":"Package file provides node-targeted file deploy API handlers.","isRedistributable":true}
