{"modulePath":"github.com/mlrun/controller","version":"v0.0.0-20220829123749-5ec74ad0118c","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package builder\n\nCopyright 2019 Iguazio Systems Ltd.\n\nLicensed under the Apache License, Version 2.0 (the \"License\") with an addition restriction as set forth herein. You may not use this file except in compliance with the License. You may obtain a copy of the License at [http://www.apache.org/licenses/LICENSE-2.0](http://www.apache.org/licenses/LICENSE-2.0).\n\nUnless required by applicable law or agreed to in writing, software distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.\n\nIn addition, you may not use the software for any purposes that are illegal under applicable law, and the grant of the foregoing license under the Apache 2.0 license is conditioned upon your compliance with such restriction.\n\nCopyright 2019 Iguazio Systems Ltd.\n\nLicensed under the Apache License, Version 2.0 (the \"License\") with an addition restriction as set forth herein. You may not use this file except in compliance with the License. You may obtain a copy of the License at [http://www.apache.org/licenses/LICENSE-2.0](http://www.apache.org/licenses/LICENSE-2.0).\n\nUnless required by applicable law or agreed to in writing, software distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.\n\nIn addition, you may not use the software for any purposes that are illegal under applicable law, and the grant of the foregoing license under the Apache 2.0 license is conditioned upon your compliance with such restriction.\n\n## Functions\n\n```go\nfunc InitBuildCtx(opts Opts) error\n```\n\n```go\nfunc NewService()\n```\nNewService initializes a new service.\n\n```go\nfunc SplitUrl(url string) (path, branch, subdir string)\n```\n\n## Types\n\n```go\ntype FileSource struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (s *FileSource) CodePath() string\n```\n\n```go\nfunc (s *FileSource) Download() error\n```\n\n```go\ntype GitSource struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (g *GitSource) CodePath() string\n```\n\n```go\nfunc (g *GitSource) Download() error\n```\n\n```go\ntype Opts struct {\n\tVerbose   []bool `short:\"v\" long:\"verbose\" description:\"Show verbose debug information\"`\n\tSource    string `short:\"s\" long:\"source\" description:\"Source repo/path\"`\n\tLocalPath string `short:\"l\" long:\"local\" description:\"Local target path\" required:\"true\"`\n}\n```\n\n```go\ntype SourceConfig struct {\n\tSource    string\n\tLocalPath string\n\tUser      string\n\tPassword  string\n\t// contains filtered or unexported fields\n}\n```\n\n```go\ntype SourceRepo interface {\n\tDownload() error\n\tCodePath() string\n}\n```\n\n```go\nfunc GetSourceRepo(cfg *SourceConfig) (SourceRepo, error)\n```\n\n```go\nfunc NewFileSource(cfg *SourceConfig) (SourceRepo, error)\n```\n\n```go\nfunc NewGitSource(u *url.URL, cfg *SourceConfig) (SourceRepo, error)\n```\n\n","path":"github.com/mlrun/controller/pkg/builder","name":"builder","synopsis":"","isRedistributable":true}
