-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathConfiguration.swift
More file actions
31 lines (26 loc) · 886 Bytes
/
Configuration.swift
File metadata and controls
31 lines (26 loc) · 886 Bytes
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
/*
* Copyright (c) 2022 Skyflow
*/
// Configure Skyflow, implementation for Skyflow.Configuration
import Foundation
/// Configuration for the Skyflow client.
public struct Configuration {
var vaultID: String
var vaultURL: String
var tokenProvider: TokenProvider
var options: Options?
/**
Configuration for the Skyflow client.
- Parameters:
- vaultID: ID of the vault to connect to.
- vaultURL: URL of the vault to connect to.
- tokenProvider: An implementation of the token provider interface.
- options: Additional options for configuration.
*/
public init(vaultID: String = "", vaultURL: String = "", tokenProvider: TokenProvider, options: Options? = Options()) {
self.vaultID = vaultID
self.vaultURL = vaultURL
self.tokenProvider = tokenProvider
self.options = options
}
}