Documentation ¶
Index ¶
- func AccessControlValueStringToGitlab(from string) *gitlab.AccessControlValue
- func AccessControlValueV1alpha1ToGitlab(from *v1alpha1.AccessControlValue) *gitlab.AccessControlValue
- func ContainerExpirationPolicyAttributesV1alpha1ToGitlab(from *v1alpha1.ContainerExpirationPolicyAttributes) *gitlab.ContainerExpirationPolicyAttributes
- func IsBoolEqualToBoolPtr(bp *bool, b bool) bool
- func IsIntEqualToIntPtr(ip *int, i int) bool
- func IsResponseNotFound(res *gitlab.Response) bool
- func IsStringEqualToStringPtr(sp *string, s string) bool
- func LateInitializeAccessControlValue(in *v1alpha1.AccessControlValue, from gitlab.AccessControlValue) *v1alpha1.AccessControlValue
- func LateInitializeMergeMethodValue(in *v1alpha1.MergeMethodValue, from gitlab.MergeMethodValue) *v1alpha1.MergeMethodValue
- func LateInitializeStringPtr(in *string, from string) *string
- func LateInitializeVisibilityValue(in *v1alpha1.VisibilityValue, from gitlab.VisibilityValue) *v1alpha1.VisibilityValue
- func MergeMethodStringToGitlab(from string) *gitlab.MergeMethodValue
- func MergeMethodV1alpha1ToGitlab(from *v1alpha1.MergeMethodValue) *gitlab.MergeMethodValue
- func NewClient(c Config) *gitlab.Client
- func StringToPtr(s string) *string
- func TimeToMetaTime(t *time.Time) *metav1.Time
- func VisibilityValueStringToGitlab(from string) *gitlab.VisibilityValue
- func VisibilityValueV1alpha1ToGitlab(from *v1alpha1.VisibilityValue) *gitlab.VisibilityValue
- type Config
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AccessControlValueStringToGitlab ¶
func AccessControlValueStringToGitlab(from string) *gitlab.AccessControlValue
AccessControlValueStringToGitlab converts string to *gitlab.AccessControlValue
func AccessControlValueV1alpha1ToGitlab ¶
func AccessControlValueV1alpha1ToGitlab(from *v1alpha1.AccessControlValue) *gitlab.AccessControlValue
AccessControlValueV1alpha1ToGitlab converts *v1alpha1.AccessControlValue to *gitlab.AccessControlValue
func ContainerExpirationPolicyAttributesV1alpha1ToGitlab ¶
func ContainerExpirationPolicyAttributesV1alpha1ToGitlab(from *v1alpha1.ContainerExpirationPolicyAttributes) *gitlab.ContainerExpirationPolicyAttributes
ContainerExpirationPolicyAttributesV1alpha1ToGitlab converts *v1alpha1.ContainerExpirationPolicyAttributes to *gitlab.ContainerExpirationPolicyAttributes
func IsBoolEqualToBoolPtr ¶
IsBoolEqualToBoolPtr compares a *bool with bool
func IsIntEqualToIntPtr ¶
IsIntEqualToIntPtr compares an *int with int
func IsResponseNotFound ¶ added in v0.4.0
IsResponseNotFound returns true of Gitlab Response indicates CR was not found
func IsStringEqualToStringPtr ¶ added in v0.4.0
IsStringEqualToStringPtr compares a *string with string
func LateInitializeAccessControlValue ¶
func LateInitializeAccessControlValue(in *v1alpha1.AccessControlValue, from gitlab.AccessControlValue) *v1alpha1.AccessControlValue
LateInitializeAccessControlValue returns in if it's non-nil, otherwise returns from which is the backup for the cases in is nil.
func LateInitializeMergeMethodValue ¶
func LateInitializeMergeMethodValue(in *v1alpha1.MergeMethodValue, from gitlab.MergeMethodValue) *v1alpha1.MergeMethodValue
LateInitializeMergeMethodValue returns in if it's non-nil, otherwise returns from which is the backup for the cases in is nil.
func LateInitializeStringPtr ¶
LateInitializeStringPtr returns `from` if `in` is nil and `from` is non-empty, in other cases it returns `in`.
func LateInitializeVisibilityValue ¶
func LateInitializeVisibilityValue(in *v1alpha1.VisibilityValue, from gitlab.VisibilityValue) *v1alpha1.VisibilityValue
LateInitializeVisibilityValue returns in if it's non-nil, otherwise returns from which is the backup for the cases in is nil.
func MergeMethodStringToGitlab ¶
func MergeMethodStringToGitlab(from string) *gitlab.MergeMethodValue
MergeMethodStringToGitlab converts string to *gitlab.MergeMethodValue
func MergeMethodV1alpha1ToGitlab ¶
func MergeMethodV1alpha1ToGitlab(from *v1alpha1.MergeMethodValue) *gitlab.MergeMethodValue
MergeMethodV1alpha1ToGitlab converts *v1alpha1.MergeMethodValue to *gitlab.MergeMethodValue
func NewClient ¶
NewClient creates new Gitlab Client with provided Gitlab Configurations/Credentials.
func TimeToMetaTime ¶ added in v0.4.0
TimeToMetaTime returns nil if parameter is nil, otherwise metav1.Time value
func VisibilityValueStringToGitlab ¶
func VisibilityValueStringToGitlab(from string) *gitlab.VisibilityValue
VisibilityValueStringToGitlab converts string to *gitlab.VisibilityValue
func VisibilityValueV1alpha1ToGitlab ¶
func VisibilityValueV1alpha1ToGitlab(from *v1alpha1.VisibilityValue) *gitlab.VisibilityValue
VisibilityValueV1alpha1ToGitlab converts *v1alpha1.VisibilityValue to *gitlab.VisibilityValue