{"modulePath":"github.com/181192/ops-cli","version":"v0.1.20","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package fileprocessor\n\n## Types\n\n```go\ntype File struct {\n\tPath string\n\tData []byte\n}\n```\nFile represents the contents and the path to a file\n\n```go\ntype FileProcessor interface {\n\tProcessFile(file File) (File, error)\n}\n```\nFileProcessor can process a template file and produce an output file\n\n```go\ntype GoTemplateProcessor struct {\n\tParams TemplateParameters\n}\n```\nGoTemplateProcessor is a FileProcessor that executes Go Templates\n\n```go\nfunc (p *GoTemplateProcessor) ProcessFile(file File) (File, error)\n```\nProcessFile takes a template file and executes the template applying the TemplateParameters\n\n```go\ntype NoOpTemplateProcessor struct{}\n```\nNoOpTemplateProcessor is a FileProcessor that does no operations on templated files and ignore them from output\n\n```go\nfunc (p *NoOpTemplateProcessor) ProcessFile(file File) (File, error)\n```\nProcessFile takes a template file and executes the template applying the TemplateParameters\n\n```go\ntype TemplateParameters struct {\n\tClusterName               string\n\tLocation                  string\n\tLoadBalancerIP            string\n\tLoadBalancerResourceGroup string\n}\n```\nTemplateParameters represents the API variables that can be used to template a profile. This set of variables will be applied to the go template files found. Templates filenames must end in .templ\n\n```go\nfunc NewTemplateParameters(clusterConfig *api.ClusterConfig) TemplateParameters\n```\nNewTemplateParameters creates a set of variables for templating given a ClusterConfig object\n\n","path":"github.com/181192/ops-cli/pkg/gitops/fileprocessor","name":"fileprocessor","synopsis":"","isRedistributable":true}
