keystoneauth

package
v0.0.0-...-a00de0b Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2020 License: BSD-3-Clause Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddUserToGroup

func AddUserToGroup(group_id string, user_id string, token string, keystone_url string) (string, error)

func Backend

func Backend() *backend

Backend returns a private embedded struct of framework.Backend.

func CreateCredential

func CreateCredential(blob string, thetype string, user_id string, project_id string, token string, keystone_url string) ([]string, error)

func CreateDomain

func CreateDomain(name string, description string, enabled bool, token string, keystone_url string) ([]string, error)

func CreateGroup

func CreateGroup(name string, description string, domain_id string, token string, keystone_url string) ([]string, error)

func CreateProject

func CreateProject(name string, description string, domain_id string, enabled bool, is_domain bool, token string, keystone_url string) ([]string, error)

func CreateRegion

func CreateRegion(id string, description string, parentRegionID string, keystoneUrl string, token string) ([]string, error)

func CreateRole

func CreateRole(name string, domain_id string, token string, keystone_url string) ([]string, error)

func CreateUser

func CreateUser(default_project_id string, name string, password string, enabled bool, token string, domain_id string, keystone_url string) ([]string, error)

func DeleteCredential

func DeleteCredential(credential_id string, token string, keystone_url string) (string, error)

func DeleteDomain

func DeleteDomain(domain_id string, token string, keystone_url string) (string, error)

func DeleteGroup

func DeleteGroup(group_id string, token string, keystone_url string) (string, error)

func DeleteProject

func DeleteProject(
	keystone_url string, token string, name string) (string, error)

func DeleteRegion

func DeleteRegion(regionID string, token string, keystoneURL string) (string, error)

func DeleteUser

func DeleteUser(user_id string, token string, keystone_url string) (string, error)

func Factory

func Factory(ctx context.Context, conf *logical.BackendConfig) (logical.Backend, error)

Factory returns a new backend as logical.Backend.

func FactoryType

func FactoryType(backendType logical.BackendType) func(*logical.BackendConfig) (logical.Backend, error)

FactoryType is a wrapper func that allows the Factory func to specify the backend type for the mock backend plugin instance.

func GroupOnDomain

func GroupOnDomain(domain_id string, group_id string, role_id string, token string, keystone_url string) (string, error)

func GroupOnProject

func GroupOnProject(group_id string, project_id string, role_id string, token string, keystone_url string) (string, error)

func ListAllOpenStackUsers

func ListAllOpenStackUsers(
	name string, token string, keystone_url string) (map[string]string, error)

func New

func New() (interface{}, error)

New returns a new backend as an interface. This func is only necessary for builtin backend plugins.

func UserEC2

func UserEC2(user_id string, tenant_id string, token string, keystone_url string) ([]string, error)

func UserOnDomain

func UserOnDomain(user_id string, domain_id string, role_id string, token string, keystone_url string) (string, error)

func UserOnProject

func UserOnProject(user_id string, project_id string, role_id string, token string, keystone_url string) (string, error)

Types

type CCredential

type CCredential struct {
	DomainId  string
	Links     *LinksCredential
	Id        string
	ProjectId string
	Type      string
	UserId    string
}

type CreateResponsStructRegion

type CreateResponsStructRegion struct {
	Region *Region
}

type Create_reponse_struct_credential

type Create_reponse_struct_credential struct {
	CCredential *CCredential
}

type Create_reponse_struct_domain

type Create_reponse_struct_domain struct {
	Domain *Domain
}

type Create_reponse_struct_group

type Create_reponse_struct_group struct {
	Group *Group
}

type Create_reponse_struct_project

type Create_reponse_struct_project struct {
	Project *Project
}

type Create_reponse_struct_role

type Create_reponse_struct_role struct {
	Role *Role
}

type Create_reponse_struct_user

type Create_reponse_struct_user struct {
	User *User
}

type Credential

type Credential struct {
	Access string
	Secret string
}

type Domain

type Domain struct {
	Description string
	Links       *LinksDomain
	Enabled     bool
	Id          string
	Name        string
}

type Group

type Group struct {
	Name        string
	Links       *LinksGroup
	Domain_id   string
	Description string
	Id          string
}

type LinksCredential

type LinksCredential struct {
	Self string
}

type LinksDomain

type LinksDomain struct {
	Self string
}

type LinksGroup

type LinksGroup struct {
	Self string
}

type LinksProject

type LinksProject struct {
	Self string
}

type LinksRegion

type LinksRegion struct {
	Self string
}

type LinksRole

type LinksRole struct {
	Self string
}

type LinksUser

type LinksUser struct {
	Self string
}

type Project

type Project struct {
	Is_domain   bool
	Description string
	Links       *LinksProject
	Enabled     bool
	Id          string
	Domain_id   string
	Name        string
}

type ProjectResponse

type ProjectResponse struct {
	Project []struct {
		Name string `json:"name"`
		Id   string `json:"id"`
	} `json:"projects"`
}

type Region

type Region struct {
	ID             string
	Description    string
	Links          *LinksRegion
	ParentRegionID string
}

Region represents OpenStack region domain model

type Role

type Role struct {
	DomainId string
	Links    *LinksRole
	Id       string
	Name     string
}

type User

type User struct {
	Name      string
	Links     *LinksUser
	Domain_id string
	Enabled   bool
	Id        string
}

type UserEC2response

type UserEC2response struct {
	Credential *Credential
}

type UsersResponse

type UsersResponse struct {
	User []struct {
		Id   string `json:"id"`
		Name string `json:"name"`
	} `json:"users"`
}

Jump to

Keyboard shortcuts

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