Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type APIApprovalState ¶
type APIApprovalState int
APIApprovalState covers the various options for API approval annotation states
const ( // APIApprovalInvalid means the annotation doesn't have an expected value APIApprovalInvalid APIApprovalState = iota // APIApproved if the annotation has a URL (this means the API is approved) APIApproved // APIApprovalBypassed if the annotation starts with "unapproved" indicating that for whatever reason the API isn't approved, but we should allow its creation APIApprovalBypassed // APIApprovalMissing means the annotation is empty APIApprovalMissing )
func GetAPIApprovalState ¶
func GetAPIApprovalState(annotations map[string]string) (state APIApprovalState, reason string)
GetAPIApprovalState returns the state of the API approval and reason for that state
Click to show internal directories.
Click to hide internal directories.