MCPcopy Create free account
hub / github.com/aws/aws-node-termination-handler / SetFormatVersion

Function SetFormatVersion

pkg/logging/versioned.go:95–107  ·  view source on GitHub ↗
(version int)

Source from the content-addressed store, hash-verified

93} = versionedMsgsV1{}
94
95func SetFormatVersion(version int) error {
96 switch version {
97 case 1:
98 VersionedMsgs = versionedMsgsV1{}
99 return nil
100 case 2:
101 VersionedMsgs = versionedMsgsV2{}
102 return nil
103 default:
104 VersionedMsgs = versionedMsgsV1{}
105 return fmt.Errorf("unrecognized log format version: %d, using version 1", version)
106 }
107}

Callers 1

mainFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected