Documentation
¶
Index ¶
- Constants
- func Fallback(str ...string) string
- func GetRegistryURL(registry *string, registryAuth *builder.RegistryAuth) string
- func GetRegistryURLProto(registry *string, registryAuth *agent.DeployRequest_RegistryAuth) string
- func JoinV(separator string, items ...string) string
- func MapAppsettingsToEnv(in *string) (map[string]string, error)
- func ReadConfig[T craneConfig.Configuration | dagentConfig.Configuration](cfg *T) error
- func RemoveJSONComment(strIn []byte) []byte
- type EmptyImageError
- type ImageURI
- type InvalidImageURIError
- type MultiColonRegistryURIError
Constants ¶
View Source
const PartCountAfterSplitByColon = 2
Variables ¶
This section is empty.
Functions ¶
func GetRegistryURL ¶
func GetRegistryURL(registry *string, registryAuth *builder.RegistryAuth) string
func GetRegistryURLProto ¶
func GetRegistryURLProto(registry *string, registryAuth *agent.DeployRequest_RegistryAuth) string
func ReadConfig ¶
func ReadConfig[T craneConfig.Configuration | dagentConfig.Configuration](cfg *T) error
func RemoveJSONComment ¶
Types ¶
type EmptyImageError ¶
type EmptyImageError struct{}
func (*EmptyImageError) Error ¶
func (e *EmptyImageError) Error() string
type ImageURI ¶
func ImageURIFromString ¶
ImageURIFromString results in an image that is split respectively imageName can be fully qualified or dockerhub image name plus tag
func (*ImageURI) StringNoTag ¶
type InvalidImageURIError ¶
type InvalidImageURIError struct {
Image string
}
func (*InvalidImageURIError) Error ¶
func (e *InvalidImageURIError) Error() string
type MultiColonRegistryURIError ¶
type MultiColonRegistryURIError struct{}
func (*MultiColonRegistryURIError) Error ¶
func (e *MultiColonRegistryURIError) Error() string
Click to show internal directories.
Click to hide internal directories.