Documentation ¶
Index ¶
- Constants
- Variables
- func CreateFileFromStdin() (*os.File, error)
- func GetAllowedArtifactStateEnumValuesAsString() string
- func GetAllowedArtifactTypeEnumValuesAsString() string
- func GetAllowedRoleTypeEnumValuesAsString() string
- func GetArtifactURL(registry *registrymgmtclient.Registry, ...) (artifactURL string, ok bool)
- func GetContentFromFileURL(ctx context.Context, url string) (*os.File, error)
- func GetRoleEnum(role string) registryinstanceclient.RoleType
- func GetRoleLabel(role registryinstanceclient.RoleType) string
- func IsURL(s string) bool
Constants ¶
View Source
const ( ViewerRole = "viewer" ManagerRole = "manager" AdminRole = "admin" )
Variables ¶
View Source
var AllowedArtifactStateEnumValues = []string{
"ENABLED",
"DISABLED",
"DEPRECATED",
}
View Source
var AllowedArtifactTypeEnumValues = []string{
"AVRO",
"PROTOBUF",
"JSON",
"OPENAPI",
"ASYNCAPI",
"GRAPHQL",
"KCONNECT",
"WSDL",
"XSD",
"XML",
}
View Source
var AllowedRoleTypeEnumValues = []string{ ViewerRole, ManagerRole, AdminRole, }
Functions ¶
func CreateFileFromStdin ¶
func GetAllowedArtifactStateEnumValuesAsString ¶ added in v0.29.1
func GetAllowedArtifactStateEnumValuesAsString() string
GetAllowedArtifactTypeEnumValuesAsString gets artifact types as string.
func GetAllowedArtifactTypeEnumValuesAsString ¶
func GetAllowedArtifactTypeEnumValuesAsString() string
GetAllowedArtifactTypeEnumValuesAsString gets artifact types as string.
func GetAllowedRoleTypeEnumValuesAsString ¶ added in v0.31.0
func GetAllowedRoleTypeEnumValuesAsString() string
GetAllowedRoleTypeEnumValuesAsString gets types of roles as string.
func GetArtifactURL ¶ added in v0.36.4
func GetArtifactURL(registry *registrymgmtclient.Registry, metadata *registryinstanceclient.ArtifactMetaData) (artifactURL string, ok bool)
GetArtifactURL takes registry and artifact metadata to build URL to artifact in console
func GetContentFromFileURL ¶ added in v0.38.0
GetContentFromFileURL loads file content from the provided URL
func GetRoleEnum ¶ added in v0.38.0
func GetRoleEnum(role string) registryinstanceclient.RoleType
func GetRoleLabel ¶ added in v0.38.0
func GetRoleLabel(role registryinstanceclient.RoleType) string
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.