renoki-co/php-k8s

View on GitHub
src/Contracts/InteractsWithK8sCluster.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php

namespace RenokiCo\PhpK8s\Contracts;

interface InteractsWithK8sCluster
{
    /**
     * Get the path, prefixed by '/', that points to the resources list.
     *
     * @param  bool  $withNamespace
     * @return string
     */
    public function allResourcesPath(bool $withNamespace = true): string;

    /**
     * Get the path, prefixed by '/', that points to the specific resource.
     *
     * @return string
     */
    public function resourcePath(): string;

    /**
     * Get the identifier for the current resource.
     *
     * @return mixed
     */
    public function getIdentifier();
}