MCPcopy Index your code
hub / github.com/zalando/postgres-operator / readDecodedRole

Function readDecodedRole

pkg/controller/util.go:113–119  ·  view source on GitHub ↗
(s string)

Source from the content-addressed store, hash-verified

111}
112
113func readDecodedRole(s string) (*spec.PgUser, error) {
114 var result spec.PgUser
115 if err := yaml.Unmarshal([]byte(s), &result); err != nil {
116 return nil, fmt.Errorf("could not decode yaml role: %v", err)
117 }
118 return &result, nil
119}
120
121var emptyName = (spec.NamespacedName{})
122

Callers 1

getInfrastructureRoleMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected