-
Notifications
You must be signed in to change notification settings - Fork 14
/
principal.go
32 lines (26 loc) · 977 Bytes
/
principal.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
// Copyright © 2019, Oracle and/or its affiliates.
package ociauth
import "github.com/oracle/oci-go-sdk/v59/common"
// Do not edit this file. This is based on standard OCI GO SDK format
// Stores a list of claims of a Principal
type Claim struct {
Key *string `json:"key"`
Value *string `json:"value"`
Issuer *string `json:"issuer"`
}
// Prints the values of pointers in Claim,
// producing a human friendly string for an struct with pointers. Useful when debugging the values of a struct.
func (m Claim) String() string {
return common.PointerString(m)
}
// Stores the details about a Principal
type Principal struct {
TenantId *string `json:"tenantId"`
SubjectId *string `json:"subjectId"`
Claims []Claim `json:"claims"`
}
// Prints the values of pointers in Principal,
// producing a human friendly string for an struct with pointers. Useful when debugging the values of a struct.
func (m Principal) String() string {
return common.PointerString(m)
}