Documentation ¶
Index ¶
- Variables
- func Clean(secretPath string) string
- func FromRingName(name string) csov1.RingLevel
- func FromStageName(name string) csov1.QualityLevel
- func Interpret(secret *csov1.Secret, templates map[csov1.RingLevel]string, w io.Writer) error
- func Pack(secretPath string, value interface{}) (*csov1.Secret, error)
- func Text() map[csov1.RingLevel]string
- func ToRingName(lvl csov1.RingLevel) string
- func ToStageName(lvl csov1.QualityLevel) string
- func Validate(path string) error
- type Ring
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // RingMeta represents R0 secrets RingMeta Ring = &ring{ level: 0, name: "Meta", prefix: ringMeta, pathBuilderFunc: func(ring Ring, values ...string) (string, error) { return csoPath("meta/%s/%s", 2, values...) }, } // RingInfra represents R1 secrets RingInfra = &ring{ level: 1, name: "Infrastructure", prefix: ringInfra, pathBuilderFunc: func(ring Ring, values ...string) (string, error) { return csoPath("infra/%s/%s/%s/%s/%s", 5, values...) }, } // RingPlatform repsents R2 secrets RingPlatform = &ring{ level: 2, name: "Platform", prefix: ringPlatform, pathBuilderFunc: func(ring Ring, values ...string) (string, error) { return csoPath("platform/%s/%s/%s/%s/%s", 5, values...) }, } // RingProduct represents R3 secrets RingProduct = &ring{ level: 3, name: "Product", prefix: ringProduct, pathBuilderFunc: func(ring Ring, values ...string) (string, error) { return csoPath("product/%s/%s/%s/%s", 4, values...) }, } // RingApplication represents R4 secrets RingApplication = &ring{ level: 4, name: "Application", prefix: ringApp, pathBuilderFunc: func(ring Ring, values ...string) (string, error) { return csoPath("app/%s/%s/%s/%s/%s/%s", 6, values...) }, } // RingArtifact represents R5 secrets RingArtifact = &ring{ level: 5, name: "Artifact", prefix: ringArtifact, pathBuilderFunc: func(ring Ring, values ...string) (string, error) { return csoPath("artifact/%s/%s/%s", 3, values...) }, } )
Functions ¶
func FromRingName ¶
FromRingName returns the ring level object according to given name
func FromStageName ¶
func FromStageName(name string) csov1.QualityLevel
FromStageName returns the stage level object from given name
func ToRingName ¶
ToRingName returns the ring level name
func ToStageName ¶
func ToStageName(lvl csov1.QualityLevel) string
ToStageName return the stage name
Types ¶
Click to show internal directories.
Click to hide internal directories.