Documentation
¶
Index ¶
- Constants
- func CleanUp(filePath string) error
- func ExecWithError() error
- func Execute()
- func GetCaCertUrl() string
- func GetClmURL() string
- func GetDcmGrpcEndpoint() string
- func GetDcmURL() string
- func GetDtcURL() string
- func GetGacURL() string
- func GetHpaPlacementURL() string
- func GetIngressURL() string
- func GetNcmGrpcEndpoint() string
- func GetNcmURL() string
- func GetOrchestratorGrpcEndpoint() string
- func GetOrchestratorURL() string
- func GetOvnactionURL() string
- func GetPolicyURL() string
- func GetResponseOutput() resty.Response
- func GetSfcClientURL() string
- func GetSfcURL() string
- func GetTacURL() string
- func GetURL(anchor string) (string, error)
- func GetWorkflowMgrURL() string
- func HandleError(err error, op string, anchor string) bool
- func InterpolateValueFile(templateString *string, values map[string]string) (string, error)
- func SaveValueFile(fileName string, folder string, valueString *string) (string, error)
- func SetArgs(args []string)
- func SetConfigFilePath(path string)
- func SetDebugFlags()
- func SetDefaultConfiguration()
- func WatchGrpcEndpoint(args ...string)
- type ControllerConfigurations
- type EmcoConfigurations
- type GrpcClient
- type Metadata
- type ResourceContext
- type Resources
- type RestyClient
- func (r RestyClient) RestClientApply(anchor string, body []byte, put bool) (*resty.Response, error)
- func (r RestyClient) RestClientDelete(anchor string, body []byte) (*resty.Response, error)
- func (r RestyClient) RestClientDeleteAnchor(anchor string) (*resty.Response, error)
- func (r RestyClient) RestClientGet(anchor string, body []byte) error
- func (r RestyClient) RestClientGetAnchor(anchor string) error
- func (r RestyClient) RestClientMultipartApply(anchor string, body []byte, file string, put bool) error
- func (r RestyClient) RestClientMultipartApplyMultipleFiles(anchor string, body []byte, files []string, put bool) (*resty.Response, error)
- func (r RestyClient) RestClientMultipartPost(anchor string, body []byte, file string) error
- func (r RestyClient) RestClientMultipartPostMultipleFiles(anchor string, body []byte, files []string) (*resty.Response, error)
- func (r RestyClient) RestClientMultipartPut(anchor string, body []byte, file string) error
- func (r RestyClient) RestClientMultipartPutMultipleFiles(anchor string, body []byte, files []string) (*resty.Response, error)
- func (r RestyClient) RestClientPost(anchor string, body []byte) (*resty.Response, error)
- func (r RestyClient) RestClientPut(anchor string, body []byte) (*resty.Response, error)
Constants ¶
const ( FlagDelete string = "delete" FlagApply string = "apply" )
Variables ¶
This section is empty.
Functions ¶
func ExecWithError ¶
func ExecWithError() error
func Execute ¶
func Execute()
Execute adds all child commands to the root command and sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.
func GetCaCertUrl ¶
func GetCaCertUrl() string
GetCaCertUrl construct the baseUrl for CaCert controller
func GetHpaPlacementURL ¶
func GetHpaPlacementURL() string
GetHpaPlacementURL Url for Hpa Placement controller
func GetOrchestratorGrpcEndpoint ¶
func GetOrchestratorGrpcEndpoint() string
GetOrchestratorGrpcEndpoint gRPC endpoint for Orchestrator
func GetPolicyURL ¶
func GetPolicyURL() string
GetPolicyUrl construct the baseUrl for policy controller
func GetWorkflowMgrURL ¶
func GetWorkflowMgrURL() string
func InterpolateValueFile ¶
func SaveValueFile ¶
func SetDebugFlags ¶
func SetDebugFlags()
func SetDefaultConfiguration ¶
func SetDefaultConfiguration()
SetDefaultConfiguration default configuration if t
func WatchGrpcEndpoint ¶
func WatchGrpcEndpoint(args ...string)
WatchGrpcEndpoint reads the configuration file to get gRPC Endpoint and makes a connection to watch status notifications.
Types ¶
type ControllerConfigurations ¶
ControllerConfigurations exported
type EmcoConfigurations ¶
type EmcoConfigurations struct { Ingress ControllerConfigurations Orchestrator ControllerConfigurations Clm ControllerConfigurations Ncm ControllerConfigurations Dcm ControllerConfigurations Rsync ControllerConfigurations OvnAction ControllerConfigurations Gac ControllerConfigurations Dtc ControllerConfigurations HpaPlacement ControllerConfigurations Sfc ControllerConfigurations SfcClient ControllerConfigurations WorkflowMgr ControllerConfigurations Tac ControllerConfigurations CaCert ControllerConfigurations Policy ControllerConfigurations }
Configurations exported
var Configurations EmcoConfigurations
type GrpcClient ¶
type GrpcClient struct {
// contains filtered or unexported fields
}
GrpcClient to use with CLI
type ResourceContext ¶
type ResourceContext struct {
Anchor string `json:"anchor" yaml:"anchor"`
}
type RestyClient ¶
type RestyClient struct {
// contains filtered or unexported fields
}
RestyClient to use with CLI
var Client RestyClient
func NewRestClientToken ¶
func NewRestClientToken(token string) RestyClient
NewRestClientToken returns a rest client with token
func (RestyClient) RestClientApply ¶
func (r RestyClient) RestClientApply(anchor string, body []byte, put bool) (*resty.Response, error)
RestClientApply to post to server no multipart
func (RestyClient) RestClientDelete ¶
func (r RestyClient) RestClientDelete(anchor string, body []byte) (*resty.Response, error)
RestClientDelete calls rest delete command
func (RestyClient) RestClientDeleteAnchor ¶
func (r RestyClient) RestClientDeleteAnchor(anchor string) (*resty.Response, error)
RestClientDeleteAnchor returns all resource in the input file
func (RestyClient) RestClientGet ¶
func (r RestyClient) RestClientGet(anchor string, body []byte) error
RestClientGet gets resource
func (RestyClient) RestClientGetAnchor ¶
func (r RestyClient) RestClientGetAnchor(anchor string) error
RestClientGetAnchor returns get data from anchor
func (RestyClient) RestClientMultipartApply ¶
func (r RestyClient) RestClientMultipartApply(anchor string, body []byte, file string, put bool) error
RestClientMultipartApply to post to server with multipart
func (RestyClient) RestClientMultipartApplyMultipleFiles ¶
func (r RestyClient) RestClientMultipartApplyMultipleFiles(anchor string, body []byte, files []string, put bool) (*resty.Response, error)
RestClientMultipartApplyMultipleFiles to post to server with multipart
func (RestyClient) RestClientMultipartPost ¶
func (r RestyClient) RestClientMultipartPost(anchor string, body []byte, file string) error
RestClientMultipartPost to post to server with multipart
func (RestyClient) RestClientMultipartPostMultipleFiles ¶
func (r RestyClient) RestClientMultipartPostMultipleFiles(anchor string, body []byte, files []string) (*resty.Response, error)
RestClientMultipartPostMultipleFiles to post to server with multipart
func (RestyClient) RestClientMultipartPut ¶
func (r RestyClient) RestClientMultipartPut(anchor string, body []byte, file string) error
RestClientMultipartPut to post to server with multipart
func (RestyClient) RestClientMultipartPutMultipleFiles ¶
func (r RestyClient) RestClientMultipartPutMultipleFiles(anchor string, body []byte, files []string) (*resty.Response, error)
RestClientMultipartPutMultipleFiles to post to server with multipart
func (RestyClient) RestClientPost ¶
func (r RestyClient) RestClientPost(anchor string, body []byte) (*resty.Response, error)
RestClientPost to post to server no multipart
func (RestyClient) RestClientPut ¶
func (r RestyClient) RestClientPut(anchor string, body []byte) (*resty.Response, error)
RestClientPut to post to server no multipart