util

package
v1.7.50 Latest Latest
Warning

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

Go to latest
Published: May 27, 2018 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package util provides utility types and functions for zpe-updater.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Exists

func Exists(name string) bool

Exists checks if the file with the given name exists or not.

func ToCanonicalString

func ToCanonicalString(obj interface{}) (string, error)

Types

type Assertion

type Assertion struct {
	Action   string `json:"action,omitempty"`
	Effect   string `json:"effect,omitempty"`
	Id       int64  `json:"id,omitempty"`
	Resource string `json:"resource,omitempty"`
	Role     string `json:"role,omitempty"`
}

type AssertionEffect

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

type DomainSignedPolicyData

type DomainSignedPolicyData struct {
	KeyId            string            `json:"keyId"`
	Signature        string            `json:"signature"`
	SignedPolicyData *SignedPolicyData `json:"signedPolicyData"`
}

type Policy

type Policy struct {
	Assertions []*Assertion   `json:"assertions,omitempty"`
	Modified   *rdl.Timestamp `json:"modified,omitempty"`
	Name       string         `json:"name,omitempty"`
}

type PolicyData

type PolicyData struct {
	Domain   string    `json:"domain,omitempty"`
	Policies []*Policy `json:"policies,omitempty"`
}

type SignedPolicyData

type SignedPolicyData struct {
	Expires      *rdl.Timestamp `json:"expires"`
	Modified     *rdl.Timestamp `json:"modified"`
	PolicyData   *PolicyData    `json:"policyData"`
	ZmsKeyId     string         `json:"zmsKeyId"`
	ZmsSignature string         `json:"zmsSignature"`
}

Jump to

Keyboard shortcuts

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