Documentation ¶
Index ¶
Constants ¶
View Source
const ( MemberTypeUser = "User" MemberTypeGroup = "Group" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Member ¶
type ProjectList ¶
type ProjectList struct {
Projects []Project `yaml:"projects"`
}
func ReadProjects ¶
func ReadProjects(yamlFile string) (*ProjectList, error)
ReadProjects reads the YAML file containing list of projects
type ProjectQuotas ¶
type Reader ¶
type Reader interface { // Returns all clusters in Rancher GetClusters() ([]Entity, error) // Return all namespaces of the cluster GetNamespaces(clusterID string) ([]string, error) // Return all projects in the cluster GetProjects(clusterID string) ([]Entity, error) // Return list of namespaces of the project GetProjectNamespaces(clusterID, projectID string) ([]string, error) // Return LDAP groups binding to the project GetProjectGroups(projectID string) ([]string, error) // Return quotas set in the project, e.g. CPU, memory, storage, etc. GetProjectQuotas(projectID string) (*ProjectQuotas, error) // Return members of project GetProjectMembers(projectID string) ([]Member, error) GetProjectDetail(projectID string) (*Project, error) }
Reader is to query Rancher concepts from Rancher gateway
Click to show internal directories.
Click to hide internal directories.