-
Notifications
You must be signed in to change notification settings - Fork 796
/
constants.go
57 lines (44 loc) · 1.94 KB
/
constants.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
//go:build go1.18
// +build go1.18
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.
package service
import (
"github.com/Azure/azure-sdk-for-go/sdk/storage/azdatalake/filesystem"
"github.com/Azure/azure-sdk-for-go/sdk/storage/azdatalake/internal/generated_blob"
)
// PublicAccessType defines values for AccessType - private (default) or file or filesystem.
type PublicAccessType = filesystem.PublicAccessType
const (
File PublicAccessType = filesystem.File
FileSystem PublicAccessType = filesystem.FileSystem
)
// StatusType defines values for StatusType
type StatusType = generated_blob.LeaseStatusType
const (
StatusTypeLocked StatusType = generated_blob.LeaseStatusTypeLocked
StatusTypeUnlocked StatusType = generated_blob.LeaseStatusTypeUnlocked
)
// PossibleStatusTypeValues returns the possible values for the StatusType const type.
func PossibleStatusTypeValues() []StatusType {
return generated_blob.PossibleLeaseStatusTypeValues()
}
// DurationType defines values for DurationType
type DurationType = generated_blob.LeaseDurationType
const (
DurationTypeInfinite DurationType = generated_blob.LeaseDurationTypeInfinite
DurationTypeFixed DurationType = generated_blob.LeaseDurationTypeFixed
)
// PossibleDurationTypeValues returns the possible values for the DurationType const type.
func PossibleDurationTypeValues() []DurationType {
return generated_blob.PossibleLeaseDurationTypeValues()
}
// StateType defines values for StateType
type StateType = generated_blob.LeaseStateType
const (
StateTypeAvailable StateType = generated_blob.LeaseStateTypeAvailable
StateTypeLeased StateType = generated_blob.LeaseStateTypeLeased
StateTypeExpired StateType = generated_blob.LeaseStateTypeExpired
StateTypeBreaking StateType = generated_blob.LeaseStateTypeBreaking
StateTypeBroken StateType = generated_blob.LeaseStateTypeBroken
)