Documentation ¶
Index ¶
- func GetOAuthToken(auth *OAuth2) (string, error)
- func GetUUID() (string, error)
- func Tar(repoDir string, files map[string]uint32) (*io.PipeReader, <-chan *SendReport)
- type CheckReport
- type CheckStatus
- type Checker
- type FioToken
- type OAuth2
- type OAuth2Token
- type OAuthToken
- type OSTreeHub
- type OSTreeHubAccessor
- type OSTreeInfo
- type Puller
- type Pusher
- type RepoFile
- type Report
- type SendReport
- type Status
- type SyncReport
- type Token
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetOAuthToken ¶
func Tar ¶
func Tar(repoDir string, files map[string]uint32) (*io.PipeReader, <-chan *SendReport)
Types ¶
type CheckReport ¶
type CheckStatus ¶
type Checker ¶
type Checker interface { OSTreeHubAccessor Check(corId string) error Wait() (*CheckReport, error) }
func NewCheckerNoAuth ¶
func NewCheckerWithToken ¶
type OAuth2Token ¶
type OAuth2Token string
func (OAuth2Token) SetAuthHeader ¶
func (t OAuth2Token) SetAuthHeader(req *http.Request)
type OAuthToken ¶
type OSTreeHub ¶
func ExtractUrlAndFactory ¶
type OSTreeHubAccessor ¶
type OSTreeInfo ¶
type OSTreeInfo struct { Auth OAuth2 `json:"oauth2"` NoAuth bool `json:"no_auth"` Server struct { URL string `json:"server"` } `json:"ostree"` }
func ParseCredArchive ¶
func ParseCredArchive(credZip string) (*OSTreeInfo, error)
type Puller ¶
type Puller interface { OSTreeHubAccessor Pull(commitHash string, corId string) error }
func NewPullerNoAuth ¶
func NewPullerWithToken ¶
type Pusher ¶
type Pusher interface { OSTreeHubAccessor Push(corId string) error Wait() (*Report, error) UpdateSummary() error }
func NewPusherNoAuth ¶
func NewPusherWithToken ¶
type Report ¶
type Report struct { Checked uint Sent SendReport Synced SyncReport }
type SendReport ¶
type Status ¶
type Status struct { Check <-chan uint Send <-chan *SendReport Sync <-chan *SyncReport }
type SyncReport ¶
Click to show internal directories.
Click to hide internal directories.