Skip to content
This repository has been archived by the owner on Dec 21, 2019. It is now read-only.

Commit

Permalink
style: Apply go fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
tazjin committed Aug 4, 2017
1 parent d7569ab commit a159b71
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions context/context.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ import (

type ResourceSet struct {
// Name of the resource set. This can be used in include/exclude statements during kontemplate runs.
Name string `json:"name"`
Name string `json:"name"`

// Path to the folder containing the files for this resource set. This defaults to the value of the 'name' field
// if unset.
Path string `json:"path"`
Path string `json:"path"`

// Values to include when interpolating resources from this resource set.
Values map[string]interface{} `json:"values"`
Expand All @@ -22,24 +22,24 @@ type ResourceSet struct {
Include []ResourceSet `json:"include"`

// Parent resource set for flattened resource sets. Should not be manually specified.
Parent string
Parent string
}

type Context struct {
// The name of the kubectl context
Name string `json:"context"`
Name string `json:"context"`

// Global variables that should be accessible by all resource sets
Global map[string]interface{} `json:"global"`
Global map[string]interface{} `json:"global"`

// File names of YAML or JSON files including extra variables that should be globally accessible
VariableImports []string `json:"import"`
VariableImports []string `json:"import"`

// The resource sets to include in this context
ResourceSets []ResourceSet `json:"include"`
ResourceSets []ResourceSet `json:"include"`

// This field represents the absolute path to the context base directory and should not be manually specified.
BaseDir string
BaseDir string
}

type ContextLoadingError struct {
Expand Down

0 comments on commit a159b71

Please sign in to comment.