model

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2020 License: MPL-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Software Name : Remote Key Server Version: 0.9.0 SPDX-FileCopyrightText: Copyright (c) 2020 Orange SPDX-License-Identifier: MPL-2.0

This software is distributed under the Mozilla Public License 2.0, the text of which is available at https://www.mozilla.org/en-US/MPL/2.0/ or see the "LICENSE" file for more details.

Author: Glenn Feunteun, Celine Nicolas

Software Name : Remote Key Server Version: 0.9.0 SPDX-FileCopyrightText: Copyright (c) 2020 Orange SPDX-License-Identifier: MPL-2.0

This software is distributed under the Mozilla Public License 2.0, the text of which is available at https://www.mozilla.org/en-US/MPL/2.0/ or see the "LICENSE" file for more details.

Author: Glenn Feunteun, Celine Nicolas

Software Name : Remote Key Server Version: 0.9.0 SPDX-FileCopyrightText: Copyright (c) 2020 Orange SPDX-License-Identifier: MPL-2.0

This software is distributed under the Mozilla Public License 2.0, the text of which is available at https://www.mozilla.org/en-US/MPL/2.0/ or see the "LICENSE" file for more details.

Author: Glenn Feunteun, Celine Nicolas

Software Name : Remote Key Server Version: 0.9.0 SPDX-FileCopyrightText: Copyright (c) 2020 Orange SPDX-License-Identifier: MPL-2.0

This software is distributed under the Mozilla Public License 2.0, the text of which is available at https://www.mozilla.org/en-US/MPL/2.0/ or see the "LICENSE" file for more details.

Author: Glenn Feunteun, Celine Nicolas

Software Name : Remote Key Server Version: 0.9.0 SPDX-FileCopyrightText: Copyright (c) 2020 Orange SPDX-License-Identifier: MPL-2.0

This software is distributed under the Mozilla Public License 2.0, the text of which is available at https://www.mozilla.org/en-US/MPL/2.0/ or see the "LICENSE" file for more details.

Author: Glenn Feunteun, Celine Nicolas

Software Name : Remote Key Server Version: 0.9.0 SPDX-FileCopyrightText: Copyright (c) 2020 Orange SPDX-License-Identifier: MPL-2.0

This software is distributed under the Mozilla Public License 2.0, the text of which is available at https://www.mozilla.org/en-US/MPL/2.0/ or see the "LICENSE" file for more details.

Author: Glenn Feunteun, Celine Nicolas

Software Name : Remote Key Server Version: 0.9.0 SPDX-FileCopyrightText: Copyright (c) 2020 Orange SPDX-License-Identifier: MPL-2.0

This software is distributed under the Mozilla Public License 2.0, the text of which is available at https://www.mozilla.org/en-US/MPL/2.0/ or see the "LICENSE" file for more details.

Author: Glenn Feunteun, Celine Nicolas

Index

Constants

View Source
const RKSVersion = "0.9.0"

Variables

This section is empty.

Functions

func MetricsHandler

func MetricsHandler(router http.Handler) http.Handler

Types

type AdminCredentials

type AdminCredentials struct {
	Login    string `json:"login"`
	Password string `json:"password"`
}

type AdminToken

type AdminToken struct {
	AdminToken string `json:"adminToken,omitempty"`
}

type GroupPassword

type GroupPassword struct {
	Password string `json:"password"`
}

type GroupRegInfo

type GroupRegInfo struct {
	CallbackURL       string `json:"callbackURL"`
	OauthURL          string `json:"oauthURL"`
	OauthClientID     string `json:"oauthClientID"`
	OauthClientSecret string `json:"oauthClientSecret"`
}

type GroupSecrets

type GroupSecrets struct {
	Secrets []string `json:"secrets"`
}

type GroupToken

type GroupToken struct {
	GroupToken string `json:"groupToken,omitempty"`
}

type NodeInfo

type NodeInfo struct {
	NodeId string `json:"nodeId"`
}

type NodeToken

type NodeToken struct {
	NodeToken string `json:"nodeToken,omitempty"`
	Ttl       int    `json:"ttl,omitempty"`
}

type RksError

type RksError struct {
	WrappedError error
	Message      string
	Code         int
}

func (RksError) Error

func (err RksError) Error() string

func (RksError) HandleErr

func (err RksError) HandleErr(ctx context.Context, w http.ResponseWriter)

type Secret

type Secret struct {
	Data SecretData `json:"data,omitempty" mapstructure:"data"`
}

type SecretData

type SecretData struct {
	Meta        SecretDataMeta `json:"meta,omitempty" mapstructure:"meta"`
	Certificate string         `json:"certificate,omitempty" mapstructure:"certificate"`
	PrivateKey  string         `json:"private_key,omitempty" mapstructure:"private_key"`
}

type SecretDataMeta

type SecretDataMeta struct {
	Ttl int32 `json:"ttl,omitempty" mapstructure:"ttl"`
}

type TokenAuth

type TokenAuth struct {
	ClientToken string `json:"client_token,omitempty"`
}

For internal use

Jump to

Keyboard shortcuts

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