git

package module
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 15, 2025 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CacheExpires

func CacheExpires(r *http.Response) time.Time

CacheExpires helper function to determine remaining time before repeating a request.

func IsNil

func IsNil(i interface{}) bool

IsNil checks if an input is nil

func NewConfiguration

func NewConfiguration() *config.Configuration

NewConfiguration returns a new Configuration object

func ParameterValueToString

func ParameterValueToString(obj interface{}, key string) string

func PtrBool

func PtrBool(v bool) *bool

PtrBool is a helper routine that returns a pointer to given boolean value.

func PtrFloat32

func PtrFloat32(v float32) *float32

PtrFloat32 is a helper routine that returns a pointer to given float value.

func PtrFloat64

func PtrFloat64(v float64) *float64

PtrFloat64 is a helper routine that returns a pointer to given float value.

func PtrInt

func PtrInt(v int) *int

PtrInt is a helper routine that returns a pointer to given integer value.

func PtrInt32

func PtrInt32(v int32) *int32

PtrInt32 is a helper routine that returns a pointer to given integer value.

func PtrInt64

func PtrInt64(v int64) *int64

PtrInt64 is a helper routine that returns a pointer to given integer value.

func PtrString

func PtrString(v string) *string

PtrString is a helper routine that returns a pointer to given string value.

func PtrTime

func PtrTime(v time.Time) *time.Time

PtrTime is helper routine that returns a pointer to given Time value.

Types

type APIClient

type APIClient struct {
	// contains filtered or unexported fields
}

APIClient manages communication with the STACKIT Git API API v1beta.0.3 In most cases there should be only one, shared, APIClient.

func NewAPIClient

func NewAPIClient(opts ...config.ConfigurationOption) (*APIClient, error)

NewAPIClient creates a new API client. Optionally receives configuration options

func (*APIClient) GetConfig

func (c *APIClient) GetConfig() *config.Configuration

Allow modification of underlying config for alternate implementations and testing Caution: modifying the configuration while live can cause data races and potentially unwanted behavior

func (*APIClient) ListInstances

func (a *APIClient) ListInstances(ctx context.Context, projectId string) ApiListInstancesRequest

ListInstances: STACKIT Git instances exist within a project, and a project may have zero or more instances. This endpoint allows a user with read-access to a project to list all instances that exist within the specified project.

Returns a list of all STACKIT Git instances within the project.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param projectId The STACKIT portal project UUID the STACKIT Git instance is part of.
@return ApiListInstancesRequest

func (*APIClient) ListInstancesExecute

func (a *APIClient) ListInstancesExecute(ctx context.Context, projectId string) (*ListInstances, error)

type ApiListInstancesRequest

type ApiListInstancesRequest struct {
	// contains filtered or unexported fields
}

func (ApiListInstancesRequest) Execute

type DefaultApiService

type DefaultApiService service

DefaultApiService DefaultApi service

type Instance

type Instance struct {
	// The date and time the creation of the STACKIT GIT instance was triggered.
	// REQUIRED
	Created InstanceGetCreatedAttributeType `json:"created"`
	// A auto generated unique id which identifies the STACKIT GIT instances.
	// REQUIRED
	Id InstanceGetIdAttributeType `json:"id"`
	// A user chosen name to distinguish multiple STACKIT GIT instances.
	// REQUIRED
	Name InstanceGetNameAttributeType `json:"name"`
	// The current state of the STACKIT GIT instance.
	// REQUIRED
	State InstanceGetStateAttributeType `json:"state"`
	// The URL for reaching the STACKIT GIT instance.
	// REQUIRED
	Url InstanceGetUrlAttributeType `json:"url"`
	// The current version of STACKIT GIT deployed to the instance.
	// REQUIRED
	Version InstanceGetVersionAttributeType `json:"version"`
}

Instance Describes a STACKIT Git instance.

func NewInstance

NewInstance instantiates a new Instance object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewInstanceWithDefaults

func NewInstanceWithDefaults() *Instance

NewInstanceWithDefaults instantiates a new Instance object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*Instance) GetCreated

func (o *Instance) GetCreated() (ret InstanceGetCreatedRetType)

GetCreated returns the Created field value

func (*Instance) GetCreatedOk

func (o *Instance) GetCreatedOk() (ret InstanceGetCreatedRetType, ok bool)

GetCreatedOk returns a tuple with the Created field value and a boolean to check if the value has been set.

func (*Instance) GetId

func (o *Instance) GetId() (ret InstanceGetIdRetType)

GetId returns the Id field value

func (*Instance) GetIdOk

func (o *Instance) GetIdOk() (ret InstanceGetIdRetType, ok bool)

GetIdOk returns a tuple with the Id field value and a boolean to check if the value has been set.

func (*Instance) GetName

func (o *Instance) GetName() (ret InstanceGetNameRetType)

GetName returns the Name field value

func (*Instance) GetNameOk

func (o *Instance) GetNameOk() (ret InstanceGetNameRetType, ok bool)

GetNameOk returns a tuple with the Name field value and a boolean to check if the value has been set.

func (*Instance) GetState

func (o *Instance) GetState() (ret InstanceGetStateRetType)

GetState returns the State field value

func (*Instance) GetStateOk

func (o *Instance) GetStateOk() (ret InstanceGetStateRetType, ok bool)

GetStateOk returns a tuple with the State field value and a boolean to check if the value has been set.

func (*Instance) GetUrl

func (o *Instance) GetUrl() (ret InstanceGetUrlRetType)

GetUrl returns the Url field value

func (*Instance) GetUrlOk

func (o *Instance) GetUrlOk() (ret InstanceGetUrlRetType, ok bool)

GetUrlOk returns a tuple with the Url field value and a boolean to check if the value has been set.

func (*Instance) GetVersion

func (o *Instance) GetVersion() (ret InstanceGetVersionRetType)

GetVersion returns the Version field value

func (*Instance) GetVersionOk

func (o *Instance) GetVersionOk() (ret InstanceGetVersionRetType, ok bool)

GetVersionOk returns a tuple with the Version field value and a boolean to check if the value has been set.

func (*Instance) SetCreated

func (o *Instance) SetCreated(v InstanceGetCreatedRetType)

SetCreated sets field value

func (*Instance) SetId

func (o *Instance) SetId(v InstanceGetIdRetType)

SetId sets field value

func (*Instance) SetName

func (o *Instance) SetName(v InstanceGetNameRetType)

SetName sets field value

func (*Instance) SetState

func (o *Instance) SetState(v InstanceGetStateRetType)

SetState sets field value

func (*Instance) SetUrl

func (o *Instance) SetUrl(v InstanceGetUrlRetType)

SetUrl sets field value

func (*Instance) SetVersion

func (o *Instance) SetVersion(v InstanceGetVersionRetType)

SetVersion sets field value

func (Instance) ToMap

func (o Instance) ToMap() (map[string]interface{}, error)

type InstanceGetCreatedArgType

type InstanceGetCreatedArgType = time.Time

type InstanceGetCreatedAttributeType

type InstanceGetCreatedAttributeType = *time.Time

isDateTime

type InstanceGetCreatedRetType

type InstanceGetCreatedRetType = time.Time

type InstanceGetIdArgType

type InstanceGetIdArgType = string

type InstanceGetIdAttributeType

type InstanceGetIdAttributeType = *string

isNotNullableString

type InstanceGetIdRetType

type InstanceGetIdRetType = string

type InstanceGetNameArgType

type InstanceGetNameArgType = string

type InstanceGetNameAttributeType

type InstanceGetNameAttributeType = *string

isNotNullableString

type InstanceGetNameRetType

type InstanceGetNameRetType = string

type InstanceGetStateArgType

type InstanceGetStateArgType = string

type InstanceGetStateAttributeType

type InstanceGetStateAttributeType = *string

isEnumRef

type InstanceGetStateRetType

type InstanceGetStateRetType = string

type InstanceGetUrlArgType

type InstanceGetUrlArgType = string

type InstanceGetUrlAttributeType

type InstanceGetUrlAttributeType = *string

isNotNullableString

type InstanceGetUrlRetType

type InstanceGetUrlRetType = string

type InstanceGetVersionArgType

type InstanceGetVersionArgType = string

type InstanceGetVersionAttributeType

type InstanceGetVersionAttributeType = *string

isNotNullableString

type InstanceGetVersionRetType

type InstanceGetVersionRetType = string

type InternalServerErrorResponse

type InternalServerErrorResponse struct {
	Error InternalServerErrorResponseGetErrorAttributeType `json:"error,omitempty"`
}

InternalServerErrorResponse Internal server error.

func NewInternalServerErrorResponse

func NewInternalServerErrorResponse() *InternalServerErrorResponse

NewInternalServerErrorResponse instantiates a new InternalServerErrorResponse object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewInternalServerErrorResponseWithDefaults

func NewInternalServerErrorResponseWithDefaults() *InternalServerErrorResponse

NewInternalServerErrorResponseWithDefaults instantiates a new InternalServerErrorResponse object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*InternalServerErrorResponse) GetError

GetError returns the Error field value if set, zero value otherwise.

func (*InternalServerErrorResponse) GetErrorOk

GetErrorOk returns a tuple with the Error field value if set, nil otherwise and a boolean to check if the value has been set.

func (*InternalServerErrorResponse) HasError

func (o *InternalServerErrorResponse) HasError() bool

HasError returns a boolean if a field has been set.

func (*InternalServerErrorResponse) SetError

SetError gets a reference to the given string and assigns it to the Error field.

func (InternalServerErrorResponse) ToMap

func (o InternalServerErrorResponse) ToMap() (map[string]interface{}, error)

type InternalServerErrorResponseGetErrorArgType

type InternalServerErrorResponseGetErrorArgType = string

type InternalServerErrorResponseGetErrorAttributeType

type InternalServerErrorResponseGetErrorAttributeType = *string

isNotNullableString

type InternalServerErrorResponseGetErrorRetType

type InternalServerErrorResponseGetErrorRetType = string

type ListInstances

type ListInstances struct {
	// REQUIRED
	Instances ListInstancesGetInstancesAttributeType `json:"instances"`
}

ListInstances A list of STACKIT Git instances.

func NewListInstances

func NewListInstances(instances ListInstancesGetInstancesArgType) *ListInstances

NewListInstances instantiates a new ListInstances object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewListInstancesWithDefaults

func NewListInstancesWithDefaults() *ListInstances

NewListInstancesWithDefaults instantiates a new ListInstances object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*ListInstances) GetInstances

func (o *ListInstances) GetInstances() (ret ListInstancesGetInstancesRetType)

GetInstances returns the Instances field value

func (*ListInstances) GetInstancesOk

func (o *ListInstances) GetInstancesOk() (ret ListInstancesGetInstancesRetType, ok bool)

GetInstancesOk returns a tuple with the Instances field value and a boolean to check if the value has been set.

func (*ListInstances) SetInstances

SetInstances sets field value

func (ListInstances) ToMap

func (o ListInstances) ToMap() (map[string]interface{}, error)

type ListInstancesGetInstancesArgType

type ListInstancesGetInstancesArgType = []Instance

type ListInstancesGetInstancesAttributeType

type ListInstancesGetInstancesAttributeType = *[]Instance

isArray

type ListInstancesGetInstancesRetType

type ListInstancesGetInstancesRetType = []Instance

type MappedNullable

type MappedNullable interface {
	ToMap() (map[string]interface{}, error)
}

type NullableBool

type NullableBool struct {
	// contains filtered or unexported fields
}

func NewNullableBool

func NewNullableBool(val *bool) *NullableBool

func (NullableBool) Get

func (v NullableBool) Get() *bool

func (NullableBool) IsSet

func (v NullableBool) IsSet() bool

func (NullableBool) MarshalJSON

func (v NullableBool) MarshalJSON() ([]byte, error)

func (*NullableBool) Set

func (v *NullableBool) Set(val *bool)

func (*NullableBool) UnmarshalJSON

func (v *NullableBool) UnmarshalJSON(src []byte) error

func (*NullableBool) Unset

func (v *NullableBool) Unset()

type NullableFloat32

type NullableFloat32 struct {
	// contains filtered or unexported fields
}

func NewNullableFloat32

func NewNullableFloat32(val *float32) *NullableFloat32

func (NullableFloat32) Get

func (v NullableFloat32) Get() *float32

func (NullableFloat32) IsSet

func (v NullableFloat32) IsSet() bool

func (NullableFloat32) MarshalJSON

func (v NullableFloat32) MarshalJSON() ([]byte, error)

func (*NullableFloat32) Set

func (v *NullableFloat32) Set(val *float32)

func (*NullableFloat32) UnmarshalJSON

func (v *NullableFloat32) UnmarshalJSON(src []byte) error

func (*NullableFloat32) Unset

func (v *NullableFloat32) Unset()

type NullableFloat64

type NullableFloat64 struct {
	// contains filtered or unexported fields
}

func NewNullableFloat64

func NewNullableFloat64(val *float64) *NullableFloat64

func (NullableFloat64) Get

func (v NullableFloat64) Get() *float64

func (NullableFloat64) IsSet

func (v NullableFloat64) IsSet() bool

func (NullableFloat64) MarshalJSON

func (v NullableFloat64) MarshalJSON() ([]byte, error)

func (*NullableFloat64) Set

func (v *NullableFloat64) Set(val *float64)

func (*NullableFloat64) UnmarshalJSON

func (v *NullableFloat64) UnmarshalJSON(src []byte) error

func (*NullableFloat64) Unset

func (v *NullableFloat64) Unset()

type NullableInstance

type NullableInstance struct {
	// contains filtered or unexported fields
}

func NewNullableInstance

func NewNullableInstance(val *Instance) *NullableInstance

func (NullableInstance) Get

func (v NullableInstance) Get() *Instance

func (NullableInstance) IsSet

func (v NullableInstance) IsSet() bool

func (NullableInstance) MarshalJSON

func (v NullableInstance) MarshalJSON() ([]byte, error)

func (*NullableInstance) Set

func (v *NullableInstance) Set(val *Instance)

func (*NullableInstance) UnmarshalJSON

func (v *NullableInstance) UnmarshalJSON(src []byte) error

func (*NullableInstance) Unset

func (v *NullableInstance) Unset()

type NullableInt

type NullableInt struct {
	// contains filtered or unexported fields
}

func NewNullableInt

func NewNullableInt(val *int) *NullableInt

func (NullableInt) Get

func (v NullableInt) Get() *int

func (NullableInt) IsSet

func (v NullableInt) IsSet() bool

func (NullableInt) MarshalJSON

func (v NullableInt) MarshalJSON() ([]byte, error)

func (*NullableInt) Set

func (v *NullableInt) Set(val *int)

func (*NullableInt) UnmarshalJSON

func (v *NullableInt) UnmarshalJSON(src []byte) error

func (*NullableInt) Unset

func (v *NullableInt) Unset()

type NullableInt32

type NullableInt32 struct {
	// contains filtered or unexported fields
}

func NewNullableInt32

func NewNullableInt32(val *int32) *NullableInt32

func (NullableInt32) Get

func (v NullableInt32) Get() *int32

func (NullableInt32) IsSet

func (v NullableInt32) IsSet() bool

func (NullableInt32) MarshalJSON

func (v NullableInt32) MarshalJSON() ([]byte, error)

func (*NullableInt32) Set

func (v *NullableInt32) Set(val *int32)

func (*NullableInt32) UnmarshalJSON

func (v *NullableInt32) UnmarshalJSON(src []byte) error

func (*NullableInt32) Unset

func (v *NullableInt32) Unset()

type NullableInt64

type NullableInt64 struct {
	// contains filtered or unexported fields
}

func NewNullableInt64

func NewNullableInt64(val *int64) *NullableInt64

func (NullableInt64) Get

func (v NullableInt64) Get() *int64

func (NullableInt64) IsSet

func (v NullableInt64) IsSet() bool

func (NullableInt64) MarshalJSON

func (v NullableInt64) MarshalJSON() ([]byte, error)

func (*NullableInt64) Set

func (v *NullableInt64) Set(val *int64)

func (*NullableInt64) UnmarshalJSON

func (v *NullableInt64) UnmarshalJSON(src []byte) error

func (*NullableInt64) Unset

func (v *NullableInt64) Unset()

type NullableInternalServerErrorResponse

type NullableInternalServerErrorResponse struct {
	// contains filtered or unexported fields
}

func (NullableInternalServerErrorResponse) Get

func (NullableInternalServerErrorResponse) IsSet

func (NullableInternalServerErrorResponse) MarshalJSON

func (v NullableInternalServerErrorResponse) MarshalJSON() ([]byte, error)

func (*NullableInternalServerErrorResponse) Set

func (*NullableInternalServerErrorResponse) UnmarshalJSON

func (v *NullableInternalServerErrorResponse) UnmarshalJSON(src []byte) error

func (*NullableInternalServerErrorResponse) Unset

type NullableListInstances

type NullableListInstances struct {
	// contains filtered or unexported fields
}

func NewNullableListInstances

func NewNullableListInstances(val *ListInstances) *NullableListInstances

func (NullableListInstances) Get

func (NullableListInstances) IsSet

func (v NullableListInstances) IsSet() bool

func (NullableListInstances) MarshalJSON

func (v NullableListInstances) MarshalJSON() ([]byte, error)

func (*NullableListInstances) Set

func (v *NullableListInstances) Set(val *ListInstances)

func (*NullableListInstances) UnmarshalJSON

func (v *NullableListInstances) UnmarshalJSON(src []byte) error

func (*NullableListInstances) Unset

func (v *NullableListInstances) Unset()

type NullableString

type NullableString struct {
	// contains filtered or unexported fields
}

func NewNullableString

func NewNullableString(val *string) *NullableString

func (NullableString) Get

func (v NullableString) Get() *string

func (NullableString) IsSet

func (v NullableString) IsSet() bool

func (NullableString) MarshalJSON

func (v NullableString) MarshalJSON() ([]byte, error)

func (*NullableString) Set

func (v *NullableString) Set(val *string)

func (*NullableString) UnmarshalJSON

func (v *NullableString) UnmarshalJSON(src []byte) error

func (*NullableString) Unset

func (v *NullableString) Unset()

type NullableTime

type NullableTime struct {
	// contains filtered or unexported fields
}

func NewNullableTime

func NewNullableTime(val *time.Time) *NullableTime

func (NullableTime) Get

func (v NullableTime) Get() *time.Time

func (NullableTime) IsSet

func (v NullableTime) IsSet() bool

func (NullableTime) MarshalJSON

func (v NullableTime) MarshalJSON() ([]byte, error)

func (*NullableTime) Set

func (v *NullableTime) Set(val *time.Time)

func (*NullableTime) UnmarshalJSON

func (v *NullableTime) UnmarshalJSON(src []byte) error

func (*NullableTime) Unset

func (v *NullableTime) Unset()

type NullableUnauthorizedResponse

type NullableUnauthorizedResponse struct {
	// contains filtered or unexported fields
}

func NewNullableUnauthorizedResponse

func NewNullableUnauthorizedResponse(val *UnauthorizedResponse) *NullableUnauthorizedResponse

func (NullableUnauthorizedResponse) Get

func (NullableUnauthorizedResponse) IsSet

func (NullableUnauthorizedResponse) MarshalJSON

func (v NullableUnauthorizedResponse) MarshalJSON() ([]byte, error)

func (*NullableUnauthorizedResponse) Set

func (*NullableUnauthorizedResponse) UnmarshalJSON

func (v *NullableUnauthorizedResponse) UnmarshalJSON(src []byte) error

func (*NullableUnauthorizedResponse) Unset

func (v *NullableUnauthorizedResponse) Unset()

type NullableValue

type NullableValue[T any] struct {
	// contains filtered or unexported fields
}

func (NullableValue[T]) Get

func (v NullableValue[T]) Get() *T

func (NullableValue[T]) IsSet

func (v NullableValue[T]) IsSet() bool

func (*NullableValue[T]) Set

func (v *NullableValue[T]) Set(val *T)

func (*NullableValue[T]) Unset

func (v *NullableValue[T]) Unset()

type UnauthorizedResponse

type UnauthorizedResponse struct {
	Error UnauthorizedResponseGetErrorAttributeType `json:"error,omitempty"`
}

UnauthorizedResponse The request could not be authorized.

func NewUnauthorizedResponse

func NewUnauthorizedResponse() *UnauthorizedResponse

NewUnauthorizedResponse instantiates a new UnauthorizedResponse object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewUnauthorizedResponseWithDefaults

func NewUnauthorizedResponseWithDefaults() *UnauthorizedResponse

NewUnauthorizedResponseWithDefaults instantiates a new UnauthorizedResponse object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*UnauthorizedResponse) GetError

GetError returns the Error field value if set, zero value otherwise.

func (*UnauthorizedResponse) GetErrorOk

GetErrorOk returns a tuple with the Error field value if set, nil otherwise and a boolean to check if the value has been set.

func (*UnauthorizedResponse) HasError

func (o *UnauthorizedResponse) HasError() bool

HasError returns a boolean if a field has been set.

func (*UnauthorizedResponse) SetError

SetError gets a reference to the given string and assigns it to the Error field.

func (UnauthorizedResponse) ToMap

func (o UnauthorizedResponse) ToMap() (map[string]interface{}, error)

type UnauthorizedResponseGetErrorArgType

type UnauthorizedResponseGetErrorArgType = string

type UnauthorizedResponseGetErrorAttributeType

type UnauthorizedResponseGetErrorAttributeType = *string

isNotNullableString

type UnauthorizedResponseGetErrorRetType

type UnauthorizedResponseGetErrorRetType = string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL