types

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2022 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Overview

Copyright © 2021 The LitmusChaos Authors

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Account

type Account struct {
	Users    []User `yaml:"users" json:"users"`
	Endpoint string `yaml:"endpoint" json:"endpoint"`
}

type Agent

type Agent struct {
	AgentName      string `json:"clusterName"`
	Mode           string
	Description    string `json:"description,omitempty"`
	PlatformName   string `json:"platformName"`
	ProjectId      string `json:"projectID"`
	ClusterType    string `json:"clusterType"`
	NodeSelector   string `json:"nodeSelector"`
	Tolerations    string
	Namespace      string
	ServiceAccount string
	NsExists       bool
	SAExists       bool
	SkipSSL        bool
}

type AuthInput

type AuthInput struct {
	Endpoint  string
	AccessID  string
	AccessKey string
}

type AuthResponse

type AuthResponse struct {
	AccessToken string `json:"access_token"`
	ExpiresIn   int64  `json:"expires_in"`
	Type        string `json:"type"`
}

type CSV added in v0.2.0

type CSV struct {
	ApiVersion string   `json:"apiVersion"`
	Kind       string   `json:"kind"`
	Metadata   Metadata `json:"metadata"`
	Spec       Spec     `json:"spec"`
}

type Credentials

type Credentials struct {
	Username string
	Token    string
	Endpoint string
}

type Current

type Current struct {
	CurrentAccount string `yaml:"current-account" json:"current-account"`
	CurrentUser    string `yaml:"current-user" json:"current-user"`
}

type LitmuCtlConfig

type LitmuCtlConfig struct {
	Accounts       []Account `yaml:"accounts" json:"accounts"`
	APIVersion     string    `yaml:"apiVersion" json:"apiVersion"`
	CurrentAccount string    `yaml:"current-account" json:"current-account"`
	CurrentUser    string    `yaml:"current-user" json:"current-user"`
	Kind           string    `yaml:"kind" json:"kind"`
}

type Metadata added in v0.2.0

type Metadata struct {
	Name string `json:"name"`
}

type Method

type Method string
const (
	Post Method = "POST"
	Get  Method = "GET"
)

type Spec added in v0.2.0

type Spec struct {
	DisplayName string   `json:"displayName"`
	Experiments []string `json:"experiments"`
}

type Toleration

type Toleration struct {
	Key               string `json:"key"`
	Value             string `json:"value"`
	Operator          string `json:"operator"`
	Effect            string `json:"effect"`
	TolerationSeconds int    `json:"tolerationSeconds"`
}

type UpdateLitmusCtlConfig

type UpdateLitmusCtlConfig struct {
	CurrentAccount string  `yaml:"current-account" json:"current-account"`
	CurrentUser    string  `yaml:"current-user" json:"current-user"`
	Account        Account `yaml:"account" json:"account"`
}

type User

type User struct {
	ExpiresIn string `yaml:"expires_in" json:"expires_in"`
	Token     string `yaml:"token" json:"token"`
	Username  string `yaml:"username" json:"username"`
}

Jump to

Keyboard shortcuts

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