github.com/kubernetes-incubator/kube-aws@v0.16.4/pkg/api/custom_systemd_unit_dropin.go (about) 1 package api 2 3 import ( 4 "strings" 5 ) 6 7 type CustomSystemdUnitDropIn struct { 8 Name string `yaml:"name"` 9 Content string `yaml:"content"` 10 } 11 12 func (c CustomSystemdUnitDropIn) ContentArray() []string { 13 trimmedContent := strings.TrimRight(c.Content, "\n") 14 return strings.Split(trimmedContent, "\n") 15 }