Documentation
¶
Index ¶
- Variables
- func CacheDir() (string, error)
- func CheckExeFile(rcloneFile string, originalData []byte) error
- func CreateHash(key string) string
- func Decrypt(data []byte, password *memguard.Enclave) []byte
- func Encrypt(data []byte, password *memguard.Enclave) []byte
- func ExePath() (string, error)
- func Execute()
- func MountVolume(instance string, remotePath string, localPath string, configPath string, ...) (*exec.Cmd, chan error, string, error)
- func PrepareRclone() error
- func RandomState() string
- func RcloneLogErrors(logPath string, fromLine int) chan RcloneLogErrorMsg
- func RcloneLogRotate(logPath string)
- func WriteReport(mainErr interface{})
- type AssumeRoleWithWebIdentityResponse
- type AssumedRoleUser
- type ClientResponse
- type GetInputWrapper
- type IAMClientConfig
- type IAMCreds
- type IAMProvider
- type InitClientConfig
- type RCloneStruct
- type RcloneLogErrorMsg
- type RefreshTokenStruct
- type Server
- type WebIdentityResult
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func CheckExeFile ¶ added in v1.0.6
func CreateHash ¶
func MountVolume ¶
func PrepareRclone ¶
func PrepareRclone() error
func RcloneLogErrors ¶ added in v1.0.5
func RcloneLogErrors(logPath string, fromLine int) chan RcloneLogErrorMsg
func RcloneLogRotate ¶ added in v1.3.1
func RcloneLogRotate(logPath string)
func WriteReport ¶ added in v1.1.0
func WriteReport(mainErr interface{})
Types ¶
type AssumeRoleWithWebIdentityResponse ¶
type AssumeRoleWithWebIdentityResponse struct {
XMLName xml.Name `xml:"https://sts.amazonaws.com/doc/2011-06-15/ AssumeRoleWithWebIdentityResponse" json:"-"`
Result WebIdentityResult `xml:"AssumeRoleWithWebIdentityResult"`
ResponseMetadata struct {
RequestID string `xml:"RequestId,omitempty"`
} `xml:"ResponseMetadata,omitempty"`
}
AssumeRoleWithWebIdentityResponse the struct of the STS WebIdentity call response.
type AssumedRoleUser ¶
AssumedRoleUser - The identifiers for the temporary security credentials that the operation returns. Please also see https://docs.aws.amazon.com/goto/WebAPI/sts-2011-06-15/AssumedRoleUser
type ClientResponse ¶
type GetInputWrapper ¶
func (*GetInputWrapper) GetInputString ¶
func (t *GetInputWrapper) GetInputString(question string, def string) (text string, err error)
func (*GetInputWrapper) GetPassword ¶
type IAMClientConfig ¶
type IAMProvider ¶
type IAMProvider struct {
StsEndpoint string
HTTPClient *http.Client
Token string
Creds *AssumeRoleWithWebIdentityResponse
RefreshTokenRenew int
}
IAMProvider credential provider for oidc.
func (*IAMProvider) Retrieve ¶
func (t *IAMProvider) Retrieve() (credentials.Value, error)
Retrieve credentials.
type InitClientConfig ¶
type InitClientConfig struct {
ConfDir string
ClientConfig IAMClientConfig
Scanner GetInputWrapper
HTTPClient http.Client
IAMServer string
ClientTemplate string
NoPWD bool
}
func (*InitClientConfig) InitClient ¶
func (t *InitClientConfig) InitClient(instance string) (endpoint string, clientResponse ClientResponse, passwd *memguard.Enclave, err error)
type RcloneLogErrorMsg ¶ added in v1.2.4
type RefreshTokenStruct ¶
type Server ¶
type Server struct {
Client InitClientConfig
Instance string
S3Endpoint string
RemotePath string
LocalPath string
Endpoint string
CurClientResponse ClientResponse
RefreshTokenRenew int
NoModtime bool
ReadOnly bool
MountNewFlags string
TryRemount bool
// contains filtered or unexported fields
}
Server ..
func (*Server) RefreshToken ¶ added in v1.0.8
func (*Server) UpdateTokenLoop ¶
type WebIdentityResult ¶
type WebIdentityResult struct {
AssumedRoleUser AssumedRoleUser `xml:",omitempty"`
Audience string `xml:",omitempty"`
Credentials auth.Credentials `xml:",omitempty"`
PackedPolicySize int `xml:",omitempty"`
Provider string `xml:",omitempty"`
SubjectFromWebIdentityToken string `xml:",omitempty"`
}
WebIdentityResult - Contains the response to a successful AssumeRoleWithWebIdentity request, including temporary credentials that can be used to make MinIO API requests.
Click to show internal directories.
Click to hide internal directories.